benjamn / ast-types

Esprima-compatible implementation of the Mozilla JS Parser API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is "variance"?

octogonz opened this issue · comments

I see this attribute applies to many different AST node types:

variance: K.VarianceKind | "plus" | "minus" | null;

What does it do? What does it look like in the parsed/emitted JavaScript source code?