5e29849393
There was no need for both of these listener callbacks, because they were always called together. Since `beginCaseExpression` is actually used, it makes sense to keep `endCaseExpression` and get rid of `handleCaseMatch`. Change-Id: I544096b2c2b2814e8cc0c8606455855cb77c9e60 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/264102 Reviewed-by: Jens Johansen <jensj@google.com> Commit-Queue: Paul Berry <paulberry@google.com>
53 lines
2.1 KiB
Plaintext
53 lines
2.1 KiB
Plaintext
beginCompilationUnit(test)
|
|
beginMetadataStar(test)
|
|
endMetadataStar(0)
|
|
beginTopLevelMember(test)
|
|
beginTopLevelMethod(, null, null)
|
|
handleNoType()
|
|
handleIdentifier(test, topLevelFunctionDeclaration)
|
|
handleNoTypeVariables(()
|
|
beginFormalParameters((, MemberKind.TopLevelMethod)
|
|
beginMetadataStar(dynamic)
|
|
endMetadataStar(0)
|
|
beginFormalParameter(dynamic, MemberKind.TopLevelMethod, null, null, null)
|
|
handleIdentifier(dynamic, typeReference)
|
|
handleNoTypeArguments(x)
|
|
handleType(dynamic, null)
|
|
handleIdentifier(x, formalParameterDeclaration)
|
|
handleFormalParameterWithoutValue())
|
|
endFormalParameter(null, null, null, x, null, null, FormalParameterKind.requiredPositional, MemberKind.TopLevelMethod)
|
|
endFormalParameters(1, (, ), MemberKind.TopLevelMethod)
|
|
handleAsyncModifier(null, null)
|
|
beginBlockFunctionBody({)
|
|
beginSwitchStatement(switch)
|
|
handleIdentifier(x, expression)
|
|
handleNoTypeArguments())
|
|
handleNoArguments())
|
|
handleSend(x, ))
|
|
handleParenthesizedCondition((, null, null)
|
|
beginSwitchBlock({)
|
|
beginCaseExpression(case)
|
|
handleIdentifier(Foo, expression)
|
|
handleNoTypeArguments(()
|
|
beginArguments(()
|
|
handleLiteralInt(1)
|
|
endArguments(1, (, ))
|
|
handleSend(Foo, as)
|
|
handleConstantPattern(const)
|
|
beginAsOperatorType(as)
|
|
handleIdentifier(Object, typeReference)
|
|
handleNoTypeArguments(:)
|
|
handleType(Object, null)
|
|
endAsOperatorType(as)
|
|
handleCastPattern(as)
|
|
endCaseExpression(case, null, :)
|
|
beginSwitchCase(0, 1, case)
|
|
handleBreakStatement(false, break, ;)
|
|
endSwitchCase(0, 1, null, null, 1, case, })
|
|
endSwitchBlock(1, {, })
|
|
endSwitchStatement(switch, })
|
|
endBlockFunctionBody(1, {, })
|
|
endTopLevelMethod(test, null, })
|
|
endTopLevelDeclaration()
|
|
endCompilationUnit(1, )
|