blob: 1cbf88f020ea0c6564186c3988dbb9f23b26016a [file] [log] [blame]
Problems reported:
parser/patterns/switchExpression_recovery_illegalFunctionExpressionInGuard:2:21: Expected ',' before this.
_ when () => true => 1,
^^
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({)
handleNoType(_)
handleWildcardPattern(null, _)
endPattern(_)
handleSwitchExpressionCasePattern(_)
beginParenthesizedExpressionOrRecordLiteral(()
endRecordLiteral((, 0, null)
handleLiteralBool(true)
endSwitchExpressionCase(_, when, =>, true)
handleRecoverableError(Message[Template(ExpectedButGot), Expected ',' before this., null, {string: ,}], =>, =>)
beginSwitchExpressionCase()
beginPattern(,)
handleNoType(_)
handleWildcardPattern(null, _)
endPattern(_)
handleSwitchExpressionCasePattern(_)
handleLiteralInt(2)
endSwitchExpressionCase(_, null, =>, 2)
endSwitchExpressionBlock(2, {, })
endSwitchExpression(switch, })
handleExpressionFunctionBody(=>, ;)
endTopLevelMethod(f, null, ;)
endTopLevelDeclaration(;)
endCompilationUnit(1, )