This commit is contained in:
Brian Ng
2018-05-25 16:53:23 -05:00
committed by GitHub
parent f0283572a5
commit f699f1bbbf
7 changed files with 15 additions and 10 deletions

View File

@@ -115,7 +115,11 @@ export default class State {
classLevel: number;
// Labels in scope.
labels: Array<{ kind: ?("loop" | "switch"), statementStart?: number }>;
labels: Array<{
kind: ?("loop" | "switch"),
name?: ?string,
statementStart?: number,
}>;
// Leading decorators. Last element of the stack represents the decorators in current context.
// Supports nesting of decorators, e.g. @foo(@bar class inner {}) class outer {}
@@ -140,6 +144,7 @@ export default class State {
start: number,
leadingComments: ?Array<N.Comment>,
trailingComments: ?Array<N.Comment>,
type: string,
}>;
commentPreviousNode: N.Node;