4ee8852d77
* The 'end' token on endLiteralString is now the last token of the string, not the next unrelated token. * Set the offset of StringConcatenation to the start of the string, not the start of the next unrelated token. * The 'end' token on endBinaryPatterns is renamed to 'operatorToken'. Fixes https://github.com/dart-lang/sdk/issues/55690 Tested: Existing Change-Id: Iae788464008594c21e759570a626971d89688033 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/498601 Reviewed-by: Ben Konyi <bkonyi@google.com> Reviewed-by: Daco Harkes <dacoharkes@google.com> Commit-Queue: Jens Johansen <jensj@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>
44 lines
1.6 KiB
Plaintext
44 lines
1.6 KiB
Plaintext
Problems reported:
|
|
|
|
parser/coverage/string3:2:10: Expected ';' after this.
|
|
return """
|
|
^^^^...
|
|
|
|
parser/coverage/string3:2:10: String starting with """ must end with """.
|
|
return """
|
|
^^^^...
|
|
|
|
parser/coverage/string3:1:12: Can't find '}' to match '{'.
|
|
void foo() {
|
|
^
|
|
|
|
beginCompilationUnit(void)
|
|
beginMetadataStar(void)
|
|
endMetadataStar(0)
|
|
beginTopLevelMember(void)
|
|
beginTopLevelMethod(UnmatchedToken({), null, null)
|
|
handleVoidKeyword(void)
|
|
handleIdentifier(foo, topLevelFunctionDeclaration)
|
|
handleNoTypeVariables(()
|
|
beginFormalParameters((, MemberKind.TopLevelMethod)
|
|
endFormalParameters(0, (, ), MemberKind.TopLevelMethod)
|
|
handleAsyncModifier(null, null)
|
|
beginBlockFunctionBody({)
|
|
beginReturnStatement(return)
|
|
beginLiteralString("""
|
|
æbler""")
|
|
endLiteralString(0, """
|
|
æbler""")
|
|
handleRecoverableError(Message[Template(ExpectedAfterButGot), Expected ';' after this., null, {expected: ;}], """
|
|
æbler""", """
|
|
æbler""")
|
|
endReturnStatement(true, return, ;)
|
|
endBlockFunctionBody(1, {, })
|
|
endTopLevelMethod(void, null, })
|
|
endTopLevelDeclaration(})
|
|
handleErrorToken(UnterminatedString("""))
|
|
handleRecoverableError(Message[Template(UnterminatedString), String starting with """ must end with """., null, {openQuote: """, expectedCloseQuote: """}], UnterminatedString("""), UnterminatedString("""))
|
|
handleErrorToken(UnmatchedToken({))
|
|
handleRecoverableError(Message[Template(UnmatchedToken), Can't find '}' to match '{'., null, {expected: }, lexeme: {}], UnmatchedToken({), UnmatchedToken({))
|
|
endCompilationUnit(1, )
|