benjamn / benjamn/ast-types

What is "variance"?

Open
#317 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.2k
Forks
194
Avg merge
22h 43m
Merged PRs (30d)
10

Description

I see this attribute applies to many different AST node types:
```ts
variance: K.VarianceKind | "plus" | "minus" | null;
```
What does it do? What does it look like in the parsed/emitted JavaScript source code?

Contributor guide

No contributing guide indexed for this repository

Research direction

No file or test is named. Start by tracing the variance attribute across the AST node types, then compare representative parsed and emitted JavaScript to determine its effect. Document what the attribute means, where it applies, and what output users should expect.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
compilers
Issue type
Documentation
Difficulty
3/5
Estimated time
Half a day
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.