808b2512b4
This adds a beginConstructor listener method and calls this before constructor instead of beginMethod. This makes it possible for listeners to fully separate handling of constructors from methods. Change-Id: Ibcbcf76ccb6d97314d395c4c0efcb4f9d073519a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/462140 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
595 lines
41 KiB
Plaintext
595 lines
41 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(ConfigurationService, classOrMixinDeclaration)
|
|
listener: handleNoTypeVariables({)
|
|
listener: beginClassDeclaration(class, null, null, null, null, null, null, null, null, ConfigurationService)
|
|
parseClass(ConfigurationService, class, class, null, ConfigurationService)
|
|
parsePrimaryConstructorOpt(ConfigurationService, null, false)
|
|
listener: handleNoPrimaryConstructor(ConfigurationService, null, false)
|
|
parseClassHeaderOpt(ConfigurationService, class, class)
|
|
parseClassExtendsOpt(ConfigurationService, DeclarationHeaderKind.Class)
|
|
listener: handleNoType(ConfigurationService)
|
|
listener: handleClassExtends(null, 1)
|
|
parseClassWithClauseOpt(ConfigurationService)
|
|
listener: handleClassNoWithClause()
|
|
parseClassOrMixinOrEnumImplementsOpt(ConfigurationService)
|
|
listener: handleImplements(null, 0)
|
|
listener: handleClassHeader(class, class, null)
|
|
parseClassOrMixinOrExtensionBody(ConfigurationService, DeclarationKind.Class, ConfigurationService)
|
|
listener: beginClassOrMixinOrExtensionBody(DeclarationKind.Class, {)
|
|
notEofOrType(CLOSE_CURLY_BRACKET, Configuration)
|
|
parseClassOrMixinOrExtensionOrEnumMemberImpl({, DeclarationKind.Class, ConfigurationService)
|
|
parseMetadataStar({)
|
|
listener: beginMetadataStar(Configuration)
|
|
listener: endMetadataStar(0)
|
|
listener: beginMember()
|
|
parseFields({, null, null, null, null, null, null, null, {, SimpleType(), _configuration, DeclarationKind.Class, ConfigurationService, false)
|
|
listener: beginFields(DeclarationKind.Class, null, null, null, null, null, null, null, {)
|
|
listener: handleIdentifier(Configuration, typeReference)
|
|
listener: handleNoTypeArguments(_configuration)
|
|
listener: handleType(Configuration, null)
|
|
ensureIdentifierPotentiallyRecovered(Configuration, fieldDeclaration, false)
|
|
listener: handleIdentifier(_configuration, fieldDeclaration)
|
|
parseFieldInitializerOpt(_configuration, _configuration, null, null, null, null, null, DeclarationKind.Class, ConfigurationService)
|
|
listener: handleNoFieldInitializer(;)
|
|
listener: endFields(DeclarationKind.Class, null, null, null, null, null, null, null, 1, Configuration, ;)
|
|
listener: endMember()
|
|
notEofOrType(CLOSE_CURLY_BRACKET, ConfigurationService)
|
|
parseClassOrMixinOrExtensionOrEnumMemberImpl(;, DeclarationKind.Class, ConfigurationService)
|
|
parseMetadataStar(;)
|
|
listener: beginMetadataStar(ConfigurationService)
|
|
listener: endMetadataStar(0)
|
|
listener: beginMember()
|
|
isReservedKeyword(()
|
|
parseMethod(;, null, null, null, null, null, null, null, ;, NoType(), null, ConfigurationService, DeclarationKind.Class, ConfigurationService, false)
|
|
listener: beginConstructor(DeclarationKind.Class, null, null, null, null, null, null, ConfigurationService, ConfigurationService)
|
|
listener: handleNoType(;)
|
|
ensureIdentifierPotentiallyRecovered(;, methodDeclaration, false)
|
|
listener: handleIdentifier(ConfigurationService, methodDeclaration)
|
|
parseQualifiedRestOpt(ConfigurationService, methodDeclarationContinuation)
|
|
parseMethodTypeVar(ConfigurationService)
|
|
listener: handleNoTypeVariables(()
|
|
parseGetterOrFormalParameters(ConfigurationService, ConfigurationService, false, MemberKind.NonStaticMethod)
|
|
parseFormalParameters(ConfigurationService, MemberKind.NonStaticMethod)
|
|
parseFormalParametersRest((, MemberKind.NonStaticMethod)
|
|
listener: beginFormalParameters((, MemberKind.NonStaticMethod)
|
|
parseFormalParameter((, FormalParameterKind.requiredPositional, MemberKind.NonStaticMethod)
|
|
parseMetadataStar(()
|
|
listener: beginMetadataStar(Configuration)
|
|
listener: endMetadataStar(0)
|
|
listener: beginFormalParameter(Configuration, MemberKind.NonStaticMethod, null, null, null)
|
|
listener: handleIdentifier(Configuration, typeReference)
|
|
listener: handleNoTypeArguments(configuration)
|
|
listener: handleType(Configuration, null)
|
|
ensureIdentifier(Configuration, formalParameterDeclaration)
|
|
listener: handleIdentifier(configuration, formalParameterDeclaration)
|
|
listener: handleFormalParameterWithoutValue())
|
|
listener: endFormalParameter(null, null, null, null, configuration, null, null, FormalParameterKind.requiredPositional, MemberKind.NonStaticMethod)
|
|
listener: endFormalParameters(1, (, ), MemberKind.NonStaticMethod)
|
|
parseInitializersOpt())
|
|
parseInitializers(:)
|
|
listener: beginInitializers(:)
|
|
parseInitializer(:)
|
|
listener: beginInitializer(assert)
|
|
parseAssert(:, Assert.Initializer)
|
|
listener: beginAssert(assert, Assert.Initializer)
|
|
parseExpression(()
|
|
looksLikeOuterPatternEquals(()
|
|
skipOuterPattern(()
|
|
skipObjectPatternRest(configuration)
|
|
parsePrecedenceExpression((, 1, true, ConstantPatternContext.none)
|
|
parseUnaryExpression((, true, ConstantPatternContext.none)
|
|
parsePrimary((, expression, ConstantPatternContext.none)
|
|
parseSendOrFunctionLiteral((, expression, ConstantPatternContext.none)
|
|
parseSend((, expression, ConstantPatternContext.none)
|
|
ensureIdentifier((, expression)
|
|
listener: handleIdentifier(configuration, expression)
|
|
listener: handleNoTypeArguments(!=)
|
|
parseArgumentsOpt(configuration)
|
|
listener: handleNoArguments(!=)
|
|
listener: handleSend(configuration, configuration)
|
|
listener: beginBinaryExpression(!=)
|
|
parsePrecedenceExpression(!=, 8, true, ConstantPatternContext.none)
|
|
parseUnaryExpression(!=, true, ConstantPatternContext.none)
|
|
parsePrimary(!=, expression, ConstantPatternContext.none)
|
|
parseLiteralNull(!=)
|
|
listener: handleLiteralNull(null)
|
|
listener: endBinaryExpression(!=, null)
|
|
listener: endAssert(assert, Assert.Initializer, (, null, ))
|
|
listener: endInitializer())
|
|
parseInitializer(,)
|
|
listener: beginInitializer(_configuration)
|
|
parseInitializerExpressionRest(,)
|
|
parseExpression(,)
|
|
looksLikeOuterPatternEquals(,)
|
|
skipOuterPattern(,)
|
|
skipObjectPatternRest(_configuration)
|
|
parsePrecedenceExpression(,, 1, true, ConstantPatternContext.none)
|
|
parseUnaryExpression(,, true, ConstantPatternContext.none)
|
|
parsePrimary(,, expression, ConstantPatternContext.none)
|
|
parseSendOrFunctionLiteral(,, expression, ConstantPatternContext.none)
|
|
parseSend(,, expression, ConstantPatternContext.none)
|
|
ensureIdentifier(,, expression)
|
|
listener: handleIdentifier(_configuration, expression)
|
|
listener: handleNoTypeArguments(=)
|
|
parseArgumentsOpt(_configuration)
|
|
listener: handleNoArguments(=)
|
|
listener: handleSend(_configuration, _configuration)
|
|
parsePrecedenceExpression(=, 1, true, ConstantPatternContext.none)
|
|
parseUnaryExpression(=, true, ConstantPatternContext.none)
|
|
parsePrimary(=, expression, ConstantPatternContext.none)
|
|
parseSendOrFunctionLiteral(=, expression, ConstantPatternContext.none)
|
|
parseSend(=, expression, ConstantPatternContext.none)
|
|
ensureIdentifier(=, expression)
|
|
listener: handleIdentifier(configuration, expression)
|
|
listener: handleNoTypeArguments({)
|
|
parseArgumentsOpt(configuration)
|
|
listener: handleNoArguments({)
|
|
listener: handleSend(configuration, configuration)
|
|
listener: handleAssignmentExpression(=, configuration)
|
|
listener: endInitializer(configuration)
|
|
listener: endInitializers(2, :, configuration)
|
|
parseAsyncModifierOpt(configuration)
|
|
listener: handleAsyncModifier(null, null)
|
|
inPlainSync()
|
|
inPlainSync()
|
|
parseFunctionBody(configuration, false, true)
|
|
listener: beginBlockFunctionBody({)
|
|
notEofOrType(CLOSE_CURLY_BRACKET, })
|
|
listener: endBlockFunctionBody(0, {, })
|
|
listener: endConstructor(DeclarationKind.Class, ConfigurationService, (, :, })
|
|
listener: endMember()
|
|
notEofOrType(CLOSE_CURLY_BRACKET, void)
|
|
parseClassOrMixinOrExtensionOrEnumMemberImpl(}, DeclarationKind.Class, ConfigurationService)
|
|
parseMetadataStar(})
|
|
listener: beginMetadataStar(void)
|
|
listener: endMetadataStar(0)
|
|
listener: beginMember()
|
|
parseMethod(}, null, null, null, null, null, null, null, }, VoidType(), set, configuration, DeclarationKind.Class, ConfigurationService, false)
|
|
listener: beginConstructor(DeclarationKind.Class, null, null, null, null, null, set, configuration, ConfigurationService)
|
|
listener: handleVoidKeyword(void)
|
|
ensureIdentifierPotentiallyRecovered(set, methodDeclaration, false)
|
|
listener: handleIdentifier(configuration, methodDeclaration)
|
|
parseQualifiedRestOpt(configuration, methodDeclarationContinuation)
|
|
listener: handleNoTypeVariables(()
|
|
parseGetterOrFormalParameters(configuration, configuration, false, MemberKind.NonStaticMethod)
|
|
parseFormalParameters(configuration, MemberKind.NonStaticMethod)
|
|
parseFormalParametersRest((, MemberKind.NonStaticMethod)
|
|
listener: beginFormalParameters((, MemberKind.NonStaticMethod)
|
|
parseFormalParameter((, FormalParameterKind.requiredPositional, MemberKind.NonStaticMethod)
|
|
parseMetadataStar(()
|
|
listener: beginMetadataStar(Configuration)
|
|
listener: endMetadataStar(0)
|
|
listener: beginFormalParameter(Configuration, MemberKind.NonStaticMethod, null, null, null)
|
|
listener: handleIdentifier(Configuration, typeReference)
|
|
listener: handleNoTypeArguments(configuration)
|
|
listener: handleType(Configuration, null)
|
|
ensureIdentifier(Configuration, formalParameterDeclaration)
|
|
listener: handleIdentifier(configuration, formalParameterDeclaration)
|
|
listener: handleFormalParameterWithoutValue())
|
|
listener: endFormalParameter(null, null, null, null, configuration, null, null, FormalParameterKind.requiredPositional, MemberKind.NonStaticMethod)
|
|
listener: endFormalParameters(1, (, ), MemberKind.NonStaticMethod)
|
|
parseInitializersOpt())
|
|
parseInitializers(:)
|
|
listener: beginInitializers(:)
|
|
parseInitializer(:)
|
|
listener: beginInitializer(assert)
|
|
parseAssert(:, Assert.Initializer)
|
|
listener: beginAssert(assert, Assert.Initializer)
|
|
parseExpression(()
|
|
looksLikeOuterPatternEquals(()
|
|
skipOuterPattern(()
|
|
skipObjectPatternRest(configuration)
|
|
parsePrecedenceExpression((, 1, true, ConstantPatternContext.none)
|
|
parseUnaryExpression((, true, ConstantPatternContext.none)
|
|
parsePrimary((, expression, ConstantPatternContext.none)
|
|
parseSendOrFunctionLiteral((, expression, ConstantPatternContext.none)
|
|
parseSend((, expression, ConstantPatternContext.none)
|
|
ensureIdentifier((, expression)
|
|
listener: handleIdentifier(configuration, expression)
|
|
listener: handleNoTypeArguments(!=)
|
|
parseArgumentsOpt(configuration)
|
|
listener: handleNoArguments(!=)
|
|
listener: handleSend(configuration, configuration)
|
|
listener: beginBinaryExpression(!=)
|
|
parsePrecedenceExpression(!=, 8, true, ConstantPatternContext.none)
|
|
parseUnaryExpression(!=, true, ConstantPatternContext.none)
|
|
parsePrimary(!=, expression, ConstantPatternContext.none)
|
|
parseLiteralNull(!=)
|
|
listener: handleLiteralNull(null)
|
|
listener: endBinaryExpression(!=, null)
|
|
listener: endAssert(assert, Assert.Initializer, (, null, ))
|
|
listener: endInitializer())
|
|
parseInitializer(,)
|
|
listener: beginInitializer(_configuration)
|
|
parseInitializerExpressionRest(,)
|
|
parseExpression(,)
|
|
looksLikeOuterPatternEquals(,)
|
|
skipOuterPattern(,)
|
|
skipObjectPatternRest(_configuration)
|
|
parsePrecedenceExpression(,, 1, true, ConstantPatternContext.none)
|
|
parseUnaryExpression(,, true, ConstantPatternContext.none)
|
|
parsePrimary(,, expression, ConstantPatternContext.none)
|
|
parseSendOrFunctionLiteral(,, expression, ConstantPatternContext.none)
|
|
parseSend(,, expression, ConstantPatternContext.none)
|
|
ensureIdentifier(,, expression)
|
|
listener: handleIdentifier(_configuration, expression)
|
|
listener: handleNoTypeArguments(=)
|
|
parseArgumentsOpt(_configuration)
|
|
listener: handleNoArguments(=)
|
|
listener: handleSend(_configuration, _configuration)
|
|
parsePrecedenceExpression(=, 1, true, ConstantPatternContext.none)
|
|
parseUnaryExpression(=, true, ConstantPatternContext.none)
|
|
parsePrimary(=, expression, ConstantPatternContext.none)
|
|
parseSendOrFunctionLiteral(=, expression, ConstantPatternContext.none)
|
|
parseSend(=, expression, ConstantPatternContext.none)
|
|
ensureIdentifier(=, expression)
|
|
listener: handleIdentifier(configuration, expression)
|
|
listener: handleNoTypeArguments({)
|
|
parseArgumentsOpt(configuration)
|
|
listener: handleNoArguments({)
|
|
listener: handleSend(configuration, configuration)
|
|
listener: handleAssignmentExpression(=, configuration)
|
|
listener: endInitializer(configuration)
|
|
listener: endInitializers(2, :, configuration)
|
|
parseAsyncModifierOpt(configuration)
|
|
listener: handleAsyncModifier(null, null)
|
|
inPlainSync()
|
|
inPlainSync()
|
|
inPlainSync()
|
|
parseFunctionBody(configuration, false, true)
|
|
listener: beginBlockFunctionBody({)
|
|
notEofOrType(CLOSE_CURLY_BRACKET, })
|
|
listener: endBlockFunctionBody(0, {, })
|
|
reportRecoverableError(configuration, ConstructorWithWrongName)
|
|
listener: handleRecoverableError(ConstructorWithWrongName, configuration, configuration)
|
|
reportRecoverableError(set, SetterConstructor)
|
|
listener: handleRecoverableError(SetterConstructor, set, set)
|
|
reportRecoverableError(void, ConstructorWithReturnType)
|
|
listener: handleRecoverableError(ConstructorWithReturnType, void, void)
|
|
listener: endConstructor(DeclarationKind.Class, void, (, :, })
|
|
listener: endMember()
|
|
notEofOrType(CLOSE_CURLY_BRACKET, Configuration)
|
|
parseClassOrMixinOrExtensionOrEnumMemberImpl(}, DeclarationKind.Class, ConfigurationService)
|
|
parseMetadataStar(})
|
|
listener: beginMetadataStar(Configuration)
|
|
listener: endMetadataStar(0)
|
|
listener: beginMember()
|
|
parseMethod(}, null, null, null, null, null, null, null, }, SimpleType(), get, configuration, DeclarationKind.Class, ConfigurationService, false)
|
|
listener: beginConstructor(DeclarationKind.Class, null, null, null, null, null, get, configuration, ConfigurationService)
|
|
listener: handleIdentifier(Configuration, typeReference)
|
|
listener: handleNoTypeArguments(get)
|
|
listener: handleType(Configuration, null)
|
|
ensureIdentifierPotentiallyRecovered(get, methodDeclaration, false)
|
|
listener: handleIdentifier(configuration, methodDeclaration)
|
|
parseQualifiedRestOpt(configuration, methodDeclarationContinuation)
|
|
listener: handleNoTypeVariables(:)
|
|
parseGetterOrFormalParameters(configuration, configuration, false, MemberKind.NonStaticMethod)
|
|
missingParameterMessage(MemberKind.NonStaticMethod)
|
|
reportRecoverableError(configuration, MissingMethodParameters)
|
|
listener: handleRecoverableError(MissingMethodParameters, configuration, configuration)
|
|
rewriter()
|
|
parseFormalParametersRest((, MemberKind.NonStaticMethod)
|
|
listener: beginFormalParameters((, MemberKind.NonStaticMethod)
|
|
listener: endFormalParameters(0, (, ), MemberKind.NonStaticMethod)
|
|
parseInitializersOpt())
|
|
parseInitializers(:)
|
|
listener: beginInitializers(:)
|
|
parseInitializer(:)
|
|
listener: beginInitializer(assert)
|
|
parseAssert(:, Assert.Initializer)
|
|
listener: beginAssert(assert, Assert.Initializer)
|
|
parseExpression(()
|
|
looksLikeOuterPatternEquals(()
|
|
skipOuterPattern(()
|
|
skipObjectPatternRest(_configuration)
|
|
parsePrecedenceExpression((, 1, true, ConstantPatternContext.none)
|
|
parseUnaryExpression((, true, ConstantPatternContext.none)
|
|
parsePrimary((, expression, ConstantPatternContext.none)
|
|
parseSendOrFunctionLiteral((, expression, ConstantPatternContext.none)
|
|
parseSend((, expression, ConstantPatternContext.none)
|
|
ensureIdentifier((, expression)
|
|
listener: handleIdentifier(_configuration, expression)
|
|
listener: handleNoTypeArguments(!=)
|
|
parseArgumentsOpt(_configuration)
|
|
listener: handleNoArguments(!=)
|
|
listener: handleSend(_configuration, _configuration)
|
|
listener: beginBinaryExpression(!=)
|
|
parsePrecedenceExpression(!=, 8, true, ConstantPatternContext.none)
|
|
parseUnaryExpression(!=, true, ConstantPatternContext.none)
|
|
parsePrimary(!=, expression, ConstantPatternContext.none)
|
|
parseLiteralNull(!=)
|
|
listener: handleLiteralNull(null)
|
|
listener: endBinaryExpression(!=, null)
|
|
listener: endAssert(assert, Assert.Initializer, (, null, ))
|
|
listener: endInitializer())
|
|
parseInitializer(,)
|
|
listener: beginInitializer(_configuration)
|
|
parseInitializerExpressionRest(,)
|
|
parseExpression(,)
|
|
looksLikeOuterPatternEquals(,)
|
|
skipOuterPattern(,)
|
|
skipObjectPatternRest(_configuration)
|
|
parsePrecedenceExpression(,, 1, true, ConstantPatternContext.none)
|
|
parseUnaryExpression(,, true, ConstantPatternContext.none)
|
|
parsePrimary(,, expression, ConstantPatternContext.none)
|
|
parseSendOrFunctionLiteral(,, expression, ConstantPatternContext.none)
|
|
parseSend(,, expression, ConstantPatternContext.none)
|
|
ensureIdentifier(,, expression)
|
|
listener: handleIdentifier(_configuration, expression)
|
|
listener: handleNoTypeArguments(=)
|
|
parseArgumentsOpt(_configuration)
|
|
listener: handleNoArguments(=)
|
|
listener: handleSend(_configuration, _configuration)
|
|
parsePrecedenceExpression(=, 1, true, ConstantPatternContext.none)
|
|
parseUnaryExpression(=, true, ConstantPatternContext.none)
|
|
parsePrimary(=, expression, ConstantPatternContext.none)
|
|
parseSendOrFunctionLiteral(=, expression, ConstantPatternContext.none)
|
|
parseSend(=, expression, ConstantPatternContext.none)
|
|
ensureIdentifier(=, expression)
|
|
listener: handleIdentifier(_configuration, expression)
|
|
listener: handleNoTypeArguments(.)
|
|
parseArgumentsOpt(_configuration)
|
|
listener: handleNoArguments(.)
|
|
listener: handleSend(_configuration, _configuration)
|
|
parsePrimary(., expressionContinuation, ConstantPatternContext.none)
|
|
parseSendOrFunctionLiteral(., expressionContinuation, ConstantPatternContext.none)
|
|
parseSend(., expressionContinuation, ConstantPatternContext.none)
|
|
ensureIdentifier(., expressionContinuation)
|
|
listener: handleIdentifier(foo, expressionContinuation)
|
|
listener: handleNoTypeArguments({)
|
|
parseArgumentsOpt(foo)
|
|
listener: handleNoArguments({)
|
|
listener: handleSend(foo, foo)
|
|
listener: handleDotAccess(., foo, false)
|
|
listener: handleAssignmentExpression(=, foo)
|
|
listener: endInitializer(foo)
|
|
listener: endInitializers(2, :, foo)
|
|
parseAsyncModifierOpt(foo)
|
|
listener: handleAsyncModifier(null, null)
|
|
inPlainSync()
|
|
inPlainSync()
|
|
inPlainSync()
|
|
parseFunctionBody(foo, false, true)
|
|
listener: beginBlockFunctionBody({)
|
|
notEofOrType(CLOSE_CURLY_BRACKET, return)
|
|
parseStatement({)
|
|
parseStatementX({)
|
|
parseReturnStatement({)
|
|
listener: beginReturnStatement(return)
|
|
parseExpression(return)
|
|
looksLikeOuterPatternEquals(return)
|
|
skipOuterPattern(return)
|
|
skipObjectPatternRest(_configuration)
|
|
parsePrecedenceExpression(return, 1, true, ConstantPatternContext.none)
|
|
parseUnaryExpression(return, true, ConstantPatternContext.none)
|
|
parsePrimary(return, expression, ConstantPatternContext.none)
|
|
parseSendOrFunctionLiteral(return, expression, ConstantPatternContext.none)
|
|
parseSend(return, expression, ConstantPatternContext.none)
|
|
ensureIdentifier(return, expression)
|
|
listener: handleIdentifier(_configuration, expression)
|
|
listener: handleNoTypeArguments(;)
|
|
parseArgumentsOpt(_configuration)
|
|
listener: handleNoArguments(;)
|
|
listener: handleSend(_configuration, _configuration)
|
|
ensureSemicolon(_configuration)
|
|
listener: endReturnStatement(true, return, ;)
|
|
inGenerator()
|
|
notEofOrType(CLOSE_CURLY_BRACKET, })
|
|
listener: endBlockFunctionBody(1, {, })
|
|
reportRecoverableError(configuration, ConstructorWithWrongName)
|
|
listener: handleRecoverableError(ConstructorWithWrongName, configuration, configuration)
|
|
reportRecoverableError(get, GetterConstructor)
|
|
listener: handleRecoverableError(GetterConstructor, get, get)
|
|
reportRecoverableError(Configuration, ConstructorWithReturnType)
|
|
listener: handleRecoverableError(ConstructorWithReturnType, Configuration, Configuration)
|
|
listener: endConstructor(DeclarationKind.Class, Configuration, (, :, })
|
|
listener: endMember()
|
|
notEofOrType(CLOSE_CURLY_BRACKET, void)
|
|
parseClassOrMixinOrExtensionOrEnumMemberImpl(}, DeclarationKind.Class, ConfigurationService)
|
|
parseMetadataStar(})
|
|
listener: beginMetadataStar(void)
|
|
listener: endMetadataStar(0)
|
|
listener: beginMember()
|
|
parseMethod(}, null, null, null, null, null, null, null, }, VoidType(), null, method, DeclarationKind.Class, ConfigurationService, false)
|
|
listener: beginConstructor(DeclarationKind.Class, null, null, null, null, null, null, method, ConfigurationService)
|
|
listener: handleVoidKeyword(void)
|
|
ensureIdentifierPotentiallyRecovered(void, methodDeclaration, false)
|
|
listener: handleIdentifier(method, methodDeclaration)
|
|
parseQualifiedRestOpt(method, methodDeclarationContinuation)
|
|
parseMethodTypeVar(method)
|
|
listener: handleNoTypeVariables(()
|
|
parseGetterOrFormalParameters(method, method, false, MemberKind.NonStaticMethod)
|
|
parseFormalParameters(method, MemberKind.NonStaticMethod)
|
|
parseFormalParametersRest((, MemberKind.NonStaticMethod)
|
|
listener: beginFormalParameters((, MemberKind.NonStaticMethod)
|
|
listener: endFormalParameters(0, (, ), MemberKind.NonStaticMethod)
|
|
parseInitializersOpt())
|
|
parseInitializers(:)
|
|
listener: beginInitializers(:)
|
|
parseInitializer(:)
|
|
listener: beginInitializer(_configuration)
|
|
parseInitializerExpressionRest(:)
|
|
parseExpression(:)
|
|
looksLikeOuterPatternEquals(:)
|
|
skipOuterPattern(:)
|
|
skipObjectPatternRest(_configuration)
|
|
parsePrecedenceExpression(:, 1, true, ConstantPatternContext.none)
|
|
parseUnaryExpression(:, true, ConstantPatternContext.none)
|
|
parsePrimary(:, expression, ConstantPatternContext.none)
|
|
parseSendOrFunctionLiteral(:, expression, ConstantPatternContext.none)
|
|
parseSend(:, expression, ConstantPatternContext.none)
|
|
ensureIdentifier(:, expression)
|
|
listener: handleIdentifier(_configuration, expression)
|
|
listener: handleNoTypeArguments(=)
|
|
parseArgumentsOpt(_configuration)
|
|
listener: handleNoArguments(=)
|
|
listener: handleSend(_configuration, _configuration)
|
|
parsePrecedenceExpression(=, 1, true, ConstantPatternContext.none)
|
|
parseUnaryExpression(=, true, ConstantPatternContext.none)
|
|
parsePrimary(=, expression, ConstantPatternContext.none)
|
|
parseLiteralNull(=)
|
|
listener: handleLiteralNull(null)
|
|
listener: handleAssignmentExpression(=, null)
|
|
listener: endInitializer(null)
|
|
listener: endInitializers(1, :, null)
|
|
parseAsyncModifierOpt(null)
|
|
listener: handleAsyncModifier(null, null)
|
|
inPlainSync()
|
|
inPlainSync()
|
|
parseFunctionBody(null, false, true)
|
|
listener: beginBlockFunctionBody({)
|
|
notEofOrType(CLOSE_CURLY_BRACKET, })
|
|
listener: endBlockFunctionBody(0, {, })
|
|
reportRecoverableError(method, ConstructorWithWrongName)
|
|
listener: handleRecoverableError(ConstructorWithWrongName, method, method)
|
|
reportRecoverableError(void, ConstructorWithReturnType)
|
|
listener: handleRecoverableError(ConstructorWithReturnType, void, void)
|
|
listener: endConstructor(DeclarationKind.Class, void, (, :, })
|
|
listener: endMember()
|
|
notEofOrType(CLOSE_CURLY_BRACKET, Foo)
|
|
parseClassOrMixinOrExtensionOrEnumMemberImpl(}, DeclarationKind.Class, ConfigurationService)
|
|
parseMetadataStar(})
|
|
listener: beginMetadataStar(Foo)
|
|
listener: endMetadataStar(0)
|
|
listener: beginMember()
|
|
isReservedKeyword(()
|
|
parseMethod(}, null, null, null, null, null, null, null, }, NoType(), null, Foo, DeclarationKind.Class, ConfigurationService, false)
|
|
listener: beginConstructor(DeclarationKind.Class, null, null, null, null, null, null, Foo, ConfigurationService)
|
|
listener: handleNoType(})
|
|
ensureIdentifierPotentiallyRecovered(}, methodDeclaration, false)
|
|
listener: handleIdentifier(Foo, methodDeclaration)
|
|
parseQualifiedRestOpt(Foo, methodDeclarationContinuation)
|
|
parseMethodTypeVar(Foo)
|
|
listener: handleNoTypeVariables(()
|
|
parseGetterOrFormalParameters(Foo, Foo, false, MemberKind.NonStaticMethod)
|
|
parseFormalParameters(Foo, MemberKind.NonStaticMethod)
|
|
parseFormalParametersRest((, MemberKind.NonStaticMethod)
|
|
listener: beginFormalParameters((, MemberKind.NonStaticMethod)
|
|
listener: endFormalParameters(0, (, ), MemberKind.NonStaticMethod)
|
|
parseInitializersOpt())
|
|
parseInitializers(:)
|
|
listener: beginInitializers(:)
|
|
parseInitializer(:)
|
|
listener: beginInitializer(_configuration)
|
|
parseInitializerExpressionRest(:)
|
|
parseExpression(:)
|
|
looksLikeOuterPatternEquals(:)
|
|
skipOuterPattern(:)
|
|
skipObjectPatternRest(_configuration)
|
|
parsePrecedenceExpression(:, 1, true, ConstantPatternContext.none)
|
|
parseUnaryExpression(:, true, ConstantPatternContext.none)
|
|
parsePrimary(:, expression, ConstantPatternContext.none)
|
|
parseSendOrFunctionLiteral(:, expression, ConstantPatternContext.none)
|
|
parseSend(:, expression, ConstantPatternContext.none)
|
|
ensureIdentifier(:, expression)
|
|
listener: handleIdentifier(_configuration, expression)
|
|
listener: handleNoTypeArguments(=)
|
|
parseArgumentsOpt(_configuration)
|
|
listener: handleNoArguments(=)
|
|
listener: handleSend(_configuration, _configuration)
|
|
parsePrecedenceExpression(=, 1, true, ConstantPatternContext.none)
|
|
parseUnaryExpression(=, true, ConstantPatternContext.none)
|
|
parsePrimary(=, expression, ConstantPatternContext.none)
|
|
parseLiteralNull(=)
|
|
listener: handleLiteralNull(null)
|
|
listener: handleAssignmentExpression(=, null)
|
|
listener: endInitializer(null)
|
|
listener: endInitializers(1, :, null)
|
|
parseAsyncModifierOpt(null)
|
|
listener: handleAsyncModifier(null, null)
|
|
inPlainSync()
|
|
inPlainSync()
|
|
parseFunctionBody(null, false, true)
|
|
listener: beginBlockFunctionBody({)
|
|
notEofOrType(CLOSE_CURLY_BRACKET, })
|
|
listener: endBlockFunctionBody(0, {, })
|
|
reportRecoverableError(Foo, ConstructorWithWrongName)
|
|
listener: handleRecoverableError(ConstructorWithWrongName, Foo, Foo)
|
|
listener: endConstructor(DeclarationKind.Class, Foo, (, :, })
|
|
listener: endMember()
|
|
notEofOrType(CLOSE_CURLY_BRACKET, })
|
|
listener: endClassOrMixinOrExtensionBody(DeclarationKind.Class, 6, {, })
|
|
listener: endClassDeclaration(class, })
|
|
listener: endTopLevelDeclaration(})
|
|
parseTopLevelDeclarationImpl(}, DirectiveContext(DirectiveState.Declarations))
|
|
parseMetadataStar(})
|
|
listener: beginMetadataStar(class)
|
|
listener: endMetadataStar(0)
|
|
parseTopLevelKeywordDeclaration(class, }, class, null, null, null, null, DirectiveContext(DirectiveState.Declarations))
|
|
parseClassOrNamedMixinApplication(class, null, null, null, null, null, null, null, null, class)
|
|
listener: beginClassOrMixinOrNamedMixinApplicationPrelude(class)
|
|
ensureIdentifier(class, classOrMixinDeclaration)
|
|
listener: handleIdentifier(Configuration, classOrMixinDeclaration)
|
|
listener: handleNoTypeVariables({)
|
|
listener: beginClassDeclaration(class, null, null, null, null, null, null, null, null, Configuration)
|
|
parseClass(Configuration, class, class, null, Configuration)
|
|
parsePrimaryConstructorOpt(Configuration, null, false)
|
|
listener: handleNoPrimaryConstructor(Configuration, null, false)
|
|
parseClassHeaderOpt(Configuration, class, class)
|
|
parseClassExtendsOpt(Configuration, DeclarationHeaderKind.Class)
|
|
listener: handleNoType(Configuration)
|
|
listener: handleClassExtends(null, 1)
|
|
parseClassWithClauseOpt(Configuration)
|
|
listener: handleClassNoWithClause()
|
|
parseClassOrMixinOrEnumImplementsOpt(Configuration)
|
|
listener: handleImplements(null, 0)
|
|
listener: handleClassHeader(class, class, null)
|
|
parseClassOrMixinOrExtensionBody(Configuration, DeclarationKind.Class, Configuration)
|
|
listener: beginClassOrMixinOrExtensionBody(DeclarationKind.Class, {)
|
|
notEofOrType(CLOSE_CURLY_BRACKET, Configuration)
|
|
parseClassOrMixinOrExtensionOrEnumMemberImpl({, DeclarationKind.Class, Configuration)
|
|
parseMetadataStar({)
|
|
listener: beginMetadataStar(Configuration)
|
|
listener: endMetadataStar(0)
|
|
listener: beginMember()
|
|
parseMethod({, null, null, null, null, null, null, null, {, SimpleType(), get, foo, DeclarationKind.Class, Configuration, false)
|
|
listener: beginMethod(DeclarationKind.Class, null, null, null, null, null, get, foo, Configuration)
|
|
listener: handleIdentifier(Configuration, typeReference)
|
|
listener: handleNoTypeArguments(get)
|
|
listener: handleType(Configuration, null)
|
|
ensureIdentifierPotentiallyRecovered(get, methodDeclaration, false)
|
|
listener: handleIdentifier(foo, methodDeclaration)
|
|
parseQualifiedRestOpt(foo, methodDeclarationContinuation)
|
|
listener: handleNoTypeVariables(=>)
|
|
parseGetterOrFormalParameters(foo, foo, true, MemberKind.NonStaticMethod)
|
|
listener: handleNoFormalParameters(=>, MemberKind.NonStaticMethod)
|
|
parseInitializersOpt(foo)
|
|
listener: handleNoInitializers()
|
|
parseAsyncModifierOpt(foo)
|
|
listener: handleAsyncModifier(null, null)
|
|
inPlainSync()
|
|
inPlainSync()
|
|
inPlainSync()
|
|
parseFunctionBody(foo, false, true)
|
|
parseExpressionFunctionBody(=>, false)
|
|
parseExpression(=>)
|
|
looksLikeOuterPatternEquals(=>)
|
|
skipOuterPattern(=>)
|
|
parsePrecedenceExpression(=>, 1, true, ConstantPatternContext.none)
|
|
parseUnaryExpression(=>, true, ConstantPatternContext.none)
|
|
parsePrimary(=>, expression, ConstantPatternContext.none)
|
|
parseThisExpression(=>, expression)
|
|
listener: handleThisExpression(this, expression)
|
|
ensureSemicolon(this)
|
|
listener: handleExpressionFunctionBody(=>, ;)
|
|
inGenerator()
|
|
listener: endMethod(DeclarationKind.Class, get, Configuration, =>, null, ;)
|
|
listener: endMember()
|
|
notEofOrType(CLOSE_CURLY_BRACKET, })
|
|
listener: endClassOrMixinOrExtensionBody(DeclarationKind.Class, 1, {, })
|
|
listener: endClassDeclaration(class, })
|
|
listener: endTopLevelDeclaration(})
|
|
reportAllErrorTokens(class)
|
|
listener: endCompilationUnit(2, )
|