Files
sdk/pkg/front_end/parser_testcases/patterns/cast_inside_case.dart.expect
T
Jens Johansen e30f60791a [parser] Don't use the next token as the end on handleSend
Change-Id: Ic4bacffab3fdd9d23bea9b1ecd0f2cfdecb82e2e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/399060
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2024-12-05 15:10:34 +00:00

66 lines
2.6 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({)
beginMetadataStar(const)
endMetadataStar(0)
handleNoType(const)
beginVariablesDeclaration(y, null, const)
handleIdentifier(y, localVariableDeclaration)
beginInitializedIdentifier(y)
beginVariableInitializer(=)
handleLiteralInt(1)
endVariableInitializer(=)
endInitializedIdentifier(y)
endVariablesDeclaration(1, ;)
beginSwitchStatement(switch)
handleIdentifier(x, expression)
handleNoTypeArguments())
handleNoArguments())
handleSend(x, x)
handleParenthesizedCondition((, null, null)
beginSwitchBlock({)
beginCaseExpression(case)
beginPattern(case)
beginConstantPattern(null)
handleIdentifier(y, expression)
handleNoTypeArguments(as)
handleNoArguments(as)
handleSend(y, y)
endConstantPattern(null)
beginAsOperatorType(as)
handleIdentifier(int, typeReference)
handleNoTypeArguments(:)
handleType(int, null)
endAsOperatorType(as)
handleCastPattern(as)
endPattern(int)
handleSwitchCaseNoWhenClause(int)
endCaseExpression(case, null, :)
beginSwitchCase(0, 1, case)
handleBreakStatement(false, break, ;)
endSwitchCase(0, 1, null, null, 1, case, ;)
endSwitchBlock(1, {, })
endSwitchStatement(switch, })
endBlockFunctionBody(2, {, })
endTopLevelMethod(test, null, })
endTopLevelDeclaration(})
endCompilationUnit(1, )