d46bd8cf58
This merges endX methods for non-top-level members into endMethod, endConstructor, endFactory and endFields. These methods now have a DeclarationKind parameter that can be used to distinguish them. Change-Id: I458d37a70b6c7839612f7199dad95f9a61e76e7a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/462120 Reviewed-by: Jens Johansen <jensj@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
84 lines
5.1 KiB
Plaintext
84 lines
5.1 KiB
Plaintext
parseUnit(class)
|
|
skipErrorTokens(class)
|
|
listener: beginCompilationUnit(class)
|
|
syntheticPreviousToken(class)
|
|
parseTopLevelDeclarationImpl(, DirectiveContext(DirectiveState.Unknown))
|
|
parseMetadataStar()
|
|
listener: beginMetadataStar(class)
|
|
listener: endMetadataStar(0)
|
|
parseTopLevelKeywordDeclaration(class, , class, null, null, null, null, DirectiveContext(DirectiveState.Unknown))
|
|
parseClassOrNamedMixinApplication(class, null, null, null, null, null, null, null, null, class)
|
|
listener: beginClassOrMixinOrNamedMixinApplicationPrelude(class)
|
|
ensureIdentifier(class, classOrMixinDeclaration)
|
|
listener: handleIdentifier(C, classOrMixinDeclaration)
|
|
listener: handleNoTypeVariables({)
|
|
listener: beginClassDeclaration(class, null, null, null, null, null, null, null, null, C)
|
|
parseClass(C, class, class, null, C)
|
|
parsePrimaryConstructorOpt(C, null, false)
|
|
listener: handleNoPrimaryConstructor(C, null, false)
|
|
parseClassHeaderOpt(C, class, class)
|
|
parseClassExtendsOpt(C, DeclarationHeaderKind.Class)
|
|
listener: handleNoType(C)
|
|
listener: handleClassExtends(null, 1)
|
|
parseClassWithClauseOpt(C)
|
|
listener: handleClassNoWithClause()
|
|
parseClassOrMixinOrEnumImplementsOpt(C)
|
|
listener: handleImplements(null, 0)
|
|
listener: handleClassHeader(class, class, null)
|
|
parseClassOrMixinOrExtensionBody(C, DeclarationKind.Class, C)
|
|
listener: beginClassOrMixinOrExtensionBody(DeclarationKind.Class, {)
|
|
notEofOrType(CLOSE_CURLY_BRACKET, var)
|
|
parseClassOrMixinOrExtensionOrEnumMemberImpl({, DeclarationKind.Class, C)
|
|
parseMetadataStar({)
|
|
listener: beginMetadataStar(var)
|
|
listener: endMetadataStar(0)
|
|
listener: beginMember()
|
|
skipOuterPattern(var)
|
|
reportRecoverableErrorWithEnd((, ), PatternVariableDeclarationOutsideFunctionOrMethod)
|
|
listener: handleRecoverableError(PatternVariableDeclarationOutsideFunctionOrMethod, (, ))
|
|
rewriter()
|
|
rewriter()
|
|
parseFields({, null, null, null, null, null, null, var, var, NoType(), , DeclarationKind.Class, C, true)
|
|
listener: beginFields(DeclarationKind.Class, null, null, null, null, null, null, var, {)
|
|
listener: handleNoType(var)
|
|
ensureIdentifierPotentiallyRecovered(var, fieldDeclaration, true)
|
|
listener: handleIdentifier(, fieldDeclaration)
|
|
parseFieldInitializerOpt(, , null, null, null, null, var, DeclarationKind.Class, C)
|
|
listener: beginFieldInitializer(=)
|
|
parseExpression(=)
|
|
looksLikeOuterPatternEquals(=)
|
|
skipOuterPattern(=)
|
|
parsePrecedenceExpression(=, 1, true, ConstantPatternContext.none)
|
|
parseUnaryExpression(=, true, ConstantPatternContext.none)
|
|
parsePrimary(=, expression, ConstantPatternContext.none)
|
|
parseParenthesizedExpressionFunctionLiteralOrRecordLiteral(=, ConstantPatternContext.none)
|
|
parseParenthesizedExpressionOrRecordLiteral(=, null, ConstantPatternContext.none)
|
|
listener: beginParenthesizedExpressionOrRecordLiteral(()
|
|
parseExpression(()
|
|
looksLikeOuterPatternEquals(()
|
|
skipOuterPattern(()
|
|
parsePrecedenceExpression((, 1, true, ConstantPatternContext.none)
|
|
parseUnaryExpression((, true, ConstantPatternContext.none)
|
|
parsePrimary((, expression, ConstantPatternContext.none)
|
|
parseLiteralInt(()
|
|
listener: handleLiteralInt(0)
|
|
parseExpression(,)
|
|
looksLikeOuterPatternEquals(,)
|
|
skipOuterPattern(,)
|
|
parsePrecedenceExpression(,, 1, true, ConstantPatternContext.none)
|
|
parseUnaryExpression(,, true, ConstantPatternContext.none)
|
|
parsePrimary(,, expression, ConstantPatternContext.none)
|
|
parseLiteralInt(,)
|
|
listener: handleLiteralInt(1)
|
|
ensureCloseParen(1, ()
|
|
listener: endRecordLiteral((, 2, null)
|
|
listener: endFieldInitializer(=, ))
|
|
listener: endFields(DeclarationKind.Class, null, null, null, null, null, null, var, 1, var, ;)
|
|
listener: endMember()
|
|
notEofOrType(CLOSE_CURLY_BRACKET, })
|
|
listener: endClassOrMixinOrExtensionBody(DeclarationKind.Class, 1, {, })
|
|
listener: endClassDeclaration(class, })
|
|
listener: endTopLevelDeclaration(})
|
|
reportAllErrorTokens(class)
|
|
listener: endCompilationUnit(1, )
|