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>
215 lines
9.7 KiB
Plaintext
215 lines
9.7 KiB
Plaintext
beginCompilationUnit(class)
|
|
beginMetadataStar(class)
|
|
endMetadataStar(0)
|
|
beginClassOrMixinOrNamedMixinApplicationPrelude(class)
|
|
handleIdentifier(Foo, classOrMixinDeclaration)
|
|
handleNoTypeVariables({)
|
|
beginClassDeclaration(class, null, null, null, null, null, null, null, null, Foo)
|
|
handleNoPrimaryConstructor(Foo, null, false)
|
|
handleNoType(Foo)
|
|
handleClassExtends(null, 1)
|
|
handleClassNoWithClause()
|
|
handleImplements(null, 0)
|
|
handleClassHeader(class, class, null)
|
|
beginClassOrMixinOrExtensionBody(DeclarationKind.Class, {)
|
|
beginMetadataStar(String)
|
|
endMetadataStar(0)
|
|
beginMember()
|
|
beginFields(DeclarationKind.Class, null, null, null, null, null, null, null, {)
|
|
handleIdentifier(String, typeReference)
|
|
handleNoTypeArguments(?)
|
|
handleType(String, ?)
|
|
handleIdentifier(x, fieldDeclaration)
|
|
handleNoFieldInitializer(;)
|
|
endFields(DeclarationKind.Class, null, null, null, null, null, null, null, 1, String, ;)
|
|
endMember()
|
|
beginMetadataStar(int)
|
|
endMetadataStar(0)
|
|
beginMember()
|
|
beginFields(DeclarationKind.Class, null, null, null, null, null, null, null, ;)
|
|
handleIdentifier(int, typeReference)
|
|
handleNoTypeArguments(y)
|
|
handleType(int, null)
|
|
handleIdentifier(y, fieldDeclaration)
|
|
handleNoFieldInitializer(;)
|
|
endFields(DeclarationKind.Class, null, null, null, null, null, null, null, 1, int, ;)
|
|
endMember()
|
|
beginMetadataStar(Foo)
|
|
endMetadataStar(0)
|
|
beginMember()
|
|
beginConstructor(DeclarationKind.Class, null, null, null, null, null, null, Foo, Foo)
|
|
handleNoType(;)
|
|
handleIdentifier(Foo, methodDeclaration)
|
|
handleNoTypeVariables(()
|
|
beginFormalParameters((, MemberKind.NonStaticMethod)
|
|
beginMetadataStar(Object)
|
|
endMetadataStar(0)
|
|
beginFormalParameter(Object, MemberKind.NonStaticMethod, null, null, null)
|
|
handleIdentifier(Object, typeReference)
|
|
handleNoTypeArguments(?)
|
|
handleType(Object, ?)
|
|
handleIdentifier(o, formalParameterDeclaration)
|
|
handleFormalParameterWithoutValue())
|
|
endFormalParameter(null, null, null, null, o, null, null, FormalParameterKind.requiredPositional, MemberKind.NonStaticMethod)
|
|
endFormalParameters(1, (, ), MemberKind.NonStaticMethod)
|
|
beginInitializers(:)
|
|
beginInitializer(x)
|
|
handleIdentifier(x, expression)
|
|
handleNoTypeArguments(=)
|
|
handleNoArguments(=)
|
|
handleSend(x, x)
|
|
handleIdentifier(o, expression)
|
|
handleNoTypeArguments(!=)
|
|
handleNoArguments(!=)
|
|
handleSend(o, o)
|
|
beginBinaryExpression(!=)
|
|
handleLiteralNull(null)
|
|
endBinaryExpression(!=, null)
|
|
beginConditionalExpression(?)
|
|
handleIdentifier(o, expression)
|
|
handleNoTypeArguments(as)
|
|
handleNoArguments(as)
|
|
handleSend(o, o)
|
|
beginAsOperatorType(as)
|
|
handleIdentifier(String, typeReference)
|
|
handleNoTypeArguments(?)
|
|
handleType(String, ?)
|
|
endAsOperatorType(as)
|
|
handleAsOperator(as)
|
|
handleConditionalExpressionColon()
|
|
handleLiteralNull(null)
|
|
endConditionalExpression(?, :, null)
|
|
handleAssignmentExpression(=, null)
|
|
endInitializer(null)
|
|
beginInitializer(y)
|
|
handleIdentifier(y, expression)
|
|
handleNoTypeArguments(=)
|
|
handleNoArguments(=)
|
|
handleSend(y, y)
|
|
handleLiteralInt(0)
|
|
handleAssignmentExpression(=, 0)
|
|
endInitializer(0)
|
|
endInitializers(2, :, 0)
|
|
handleAsyncModifier(null, null)
|
|
handleEmptyFunctionBody(;)
|
|
endConstructor(DeclarationKind.Class, Foo, (, :, ;)
|
|
endMember()
|
|
beginMetadataStar(void)
|
|
endMetadataStar(0)
|
|
beginMember()
|
|
beginMethod(DeclarationKind.Class, null, null, null, null, null, null, foo, Foo)
|
|
handleVoidKeyword(void)
|
|
handleIdentifier(foo, methodDeclaration)
|
|
handleNoTypeVariables(()
|
|
beginFormalParameters((, MemberKind.NonStaticMethod)
|
|
beginMetadataStar(dynamic)
|
|
endMetadataStar(0)
|
|
beginFormalParameter(dynamic, MemberKind.NonStaticMethod, null, null, null)
|
|
handleIdentifier(dynamic, typeReference)
|
|
handleNoTypeArguments(x)
|
|
handleType(dynamic, null)
|
|
handleIdentifier(x, formalParameterDeclaration)
|
|
handleFormalParameterWithoutValue())
|
|
endFormalParameter(null, null, null, null, x, null, null, FormalParameterKind.requiredPositional, MemberKind.NonStaticMethod)
|
|
endFormalParameters(1, (, ), MemberKind.NonStaticMethod)
|
|
handleNoInitializers()
|
|
handleAsyncModifier(null, null)
|
|
beginBlockFunctionBody({)
|
|
beginIfStatement(if)
|
|
handleIdentifier(x, expression)
|
|
handleNoTypeArguments(is)
|
|
handleNoArguments(is)
|
|
handleSend(x, x)
|
|
beginIsOperatorType(is)
|
|
handleIdentifier(String, typeReference)
|
|
handleNoTypeArguments(?)
|
|
handleType(String, ?)
|
|
endIsOperatorType(is)
|
|
handleIsOperator(is, null)
|
|
beginConditionalExpression(?)
|
|
handleLiteralInt(4)
|
|
handleConditionalExpressionColon()
|
|
handleLiteralInt(2)
|
|
beginBinaryExpression(==)
|
|
handleLiteralInt(4)
|
|
endBinaryExpression(==, 4)
|
|
endConditionalExpression(?, :, 4)
|
|
handleParenthesizedCondition((, null, null)
|
|
beginThenStatement({)
|
|
beginBlock({, BlockKind(statement))
|
|
handleIdentifier(print, expression)
|
|
handleNoTypeArguments(()
|
|
beginArguments(()
|
|
beginLiteralString("hello")
|
|
endLiteralString(0, ))
|
|
endArguments(1, (, ))
|
|
handleSend(print, ))
|
|
handleExpressionStatement(print, ;)
|
|
endBlock(1, {, }, BlockKind(statement))
|
|
endThenStatement({, })
|
|
endIfStatement(if, null, })
|
|
endBlockFunctionBody(1, {, })
|
|
endMethod(DeclarationKind.Class, null, void, (, null, })
|
|
endMember()
|
|
beginMetadataStar(void)
|
|
endMetadataStar(0)
|
|
beginMember()
|
|
beginMethod(DeclarationKind.Class, null, null, null, null, null, null, bar, Foo)
|
|
handleVoidKeyword(void)
|
|
handleIdentifier(bar, methodDeclaration)
|
|
handleNoTypeVariables(()
|
|
beginFormalParameters((, MemberKind.NonStaticMethod)
|
|
beginMetadataStar(dynamic)
|
|
endMetadataStar(0)
|
|
beginFormalParameter(dynamic, MemberKind.NonStaticMethod, null, null, null)
|
|
handleIdentifier(dynamic, typeReference)
|
|
handleNoTypeArguments(x)
|
|
handleType(dynamic, null)
|
|
handleIdentifier(x, formalParameterDeclaration)
|
|
handleFormalParameterWithoutValue())
|
|
endFormalParameter(null, null, null, null, x, null, null, FormalParameterKind.requiredPositional, MemberKind.NonStaticMethod)
|
|
endFormalParameters(1, (, ), MemberKind.NonStaticMethod)
|
|
handleNoInitializers()
|
|
handleAsyncModifier(null, null)
|
|
beginBlockFunctionBody({)
|
|
beginIfStatement(if)
|
|
handleIdentifier(x, expression)
|
|
handleNoTypeArguments(is)
|
|
handleNoArguments(is)
|
|
handleSend(x, x)
|
|
beginIsOperatorType(is)
|
|
handleIdentifier(String, typeReference)
|
|
handleNoTypeArguments(?)
|
|
handleType(String, null)
|
|
endIsOperatorType(is)
|
|
handleIsOperator(is, null)
|
|
beginConditionalExpression(?)
|
|
handleLiteralInt(4)
|
|
handleConditionalExpressionColon()
|
|
handleLiteralInt(2)
|
|
beginBinaryExpression(==)
|
|
handleLiteralInt(4)
|
|
endBinaryExpression(==, 4)
|
|
endConditionalExpression(?, :, 4)
|
|
handleParenthesizedCondition((, null, null)
|
|
beginThenStatement({)
|
|
beginBlock({, BlockKind(statement))
|
|
handleIdentifier(print, expression)
|
|
handleNoTypeArguments(()
|
|
beginArguments(()
|
|
beginLiteralString("hello")
|
|
endLiteralString(0, ))
|
|
endArguments(1, (, ))
|
|
handleSend(print, ))
|
|
handleExpressionStatement(print, ;)
|
|
endBlock(1, {, }, BlockKind(statement))
|
|
endThenStatement({, })
|
|
endIfStatement(if, null, })
|
|
endBlockFunctionBody(1, {, })
|
|
endMethod(DeclarationKind.Class, null, void, (, null, })
|
|
endMember()
|
|
endClassOrMixinOrExtensionBody(DeclarationKind.Class, 5, {, })
|
|
endClassDeclaration(class, })
|
|
endTopLevelDeclaration(})
|
|
endCompilationUnit(1, )
|