blob: 05e70492a3b590bde7f51516bc64f36c92d62ebf [file] [log] [blame]
Problems reported:
parser/patterns/declaredVariable_inPatternAssignment_usingVar:2:11: Variable 'd' can't be declared in a pattern assignment.
[a, var d] = y;
^
beginCompilationUnit(void)
beginMetadataStar(void)
endMetadataStar(0)
beginTopLevelMember(void)
beginTopLevelMethod(, null, null)
handleVoidKeyword(void)
handleIdentifier(f, topLevelFunctionDeclaration)
handleNoTypeVariables(()
beginFormalParameters((, MemberKind.TopLevelMethod)
endFormalParameters(0, (, ), MemberKind.TopLevelMethod)
handleAsyncModifier(null, null)
beginBlockFunctionBody({)
beginPattern({)
handleNoTypeArguments([)
beginPattern([)
handleAssignedVariablePattern(a)
endPattern(a)
beginPattern(,)
handleNoType(var)
handleRecoverableError(Message[Template(PatternAssignmentDeclaresVariable), Variable 'd' can't be declared in a pattern assignment., Try using a preexisting variable or changing the assignment to a pattern variable declaration., {name: d}], d, d)
handleDeclaredVariablePattern(var, d, true)
endPattern(d)
handleListPattern(2, [, ])
endPattern(])
handleIdentifier(y, expression)
handleNoTypeArguments(;)
handleNoArguments(;)
handleSend(y, y)
handlePatternAssignment(=)
handleExpressionStatement([, ;)
endBlockFunctionBody(1, {, })
endTopLevelMethod(void, null, })
endTopLevelDeclaration(})
endCompilationUnit(1, )