blob: 5896613f1c0080ee73ac1e8e63f4b517981ae562 [file] [log] [blame]
Problems reported:
parser/patterns/switchExpression_recovery_colonInsteadOfArrow:2:4: Expected '=>' before this.
1: 'one',
^
parser/patterns/switchExpression_recovery_colonInsteadOfArrow:3:4: Expected '=>' before this.
2: 'two'
^
beginCompilationUnit(f)
beginMetadataStar(f)
endMetadataStar(0)
beginTopLevelMember(f)
beginTopLevelMethod(, null, null)
handleNoType()
handleIdentifier(f, topLevelFunctionDeclaration)
handleNoTypeVariables(()
beginFormalParameters((, MemberKind.TopLevelMethod)
beginMetadataStar(x)
endMetadataStar(0)
beginFormalParameter(x, MemberKind.TopLevelMethod, null, null, null)
handleNoType(()
handleIdentifier(x, formalParameterDeclaration)
handleFormalParameterWithoutValue())
endFormalParameter(null, null, null, x, null, null, FormalParameterKind.requiredPositional, MemberKind.TopLevelMethod)
endFormalParameters(1, (, ), MemberKind.TopLevelMethod)
handleAsyncModifier(null, null)
beginSwitchExpression(switch)
handleIdentifier(x, expression)
handleNoTypeArguments())
handleNoArguments())
handleSend(x, x)
handleParenthesizedCondition((, null, null)
beginSwitchExpressionBlock({)
beginSwitchExpressionCase()
beginPattern({)
beginConstantPattern(null)
handleLiteralInt(1)
endConstantPattern(null)
endPattern(1)
handleSwitchExpressionCasePattern(1)
handleRecoverableError(Message[ExpectedButGot, Expected '=>' before this., null, {string: =>}], :, :)
beginLiteralString('one')
endLiteralString(0, ,)
endSwitchExpressionCase(1, null, :, 'one')
beginSwitchExpressionCase()
beginPattern(,)
beginConstantPattern(null)
handleLiteralInt(2)
endConstantPattern(null)
endPattern(2)
handleSwitchExpressionCasePattern(2)
handleRecoverableError(Message[ExpectedButGot, Expected '=>' before this., null, {string: =>}], :, :)
beginLiteralString('two')
endLiteralString(0, })
endSwitchExpressionCase(2, null, :, 'two')
endSwitchExpressionBlock(2, {, })
endSwitchExpression(switch, })
handleExpressionFunctionBody(=>, ;)
endTopLevelMethod(f, null, ;)
endTopLevelDeclaration(;)
endCompilationUnit(1, )