@@ -2043,7 +2043,6 @@ export default (superClass: Class<Parser>): Class<Parser> =>
|
||||
|
||||
// add typeParameters if we found them
|
||||
if (typeParameters) {
|
||||
// $FlowFixMe (trying to set '.typeParameters' on an expression)
|
||||
(prop.value || prop).typeParameters = typeParameters;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user