63373b9e9c
This allows for supporting customized message for scanner/parser errors. Change-Id: Ib9470c3d8231de69611bc672570ae8902e9c0e6e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/177940 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
53 lines
1.9 KiB
Plaintext
53 lines
1.9 KiB
Plaintext
Problems reported:
|
|
|
|
parser/nnbd/issue_44477:1:15: Expected an identifier, but got ''.
|
|
Future<List<>>
|
|
^...
|
|
|
|
WARNING: Reporting at eof --- see below for details.
|
|
|
|
parser/nnbd/issue_44477:1:13: Expected a type, but got '>>'.
|
|
Future<List<>>
|
|
^^
|
|
|
|
parser/nnbd/issue_44477:1:15: Expected an identifier, but got ''.
|
|
Future<List<>>
|
|
^...
|
|
|
|
WARNING: Reporting at eof --- see below for details.
|
|
|
|
parser/nnbd/issue_44477:1:15: Expected ';' after this.
|
|
Future<List<>>
|
|
^...
|
|
|
|
WARNING: Reporting at eof --- see below for details.
|
|
|
|
beginCompilationUnit(Future)
|
|
beginMetadataStar(Future)
|
|
endMetadataStar(0)
|
|
beginTopLevelMember(Future)
|
|
handleRecoverableError(Message[ExpectedIdentifier, Expected an identifier, but got ''., Try inserting an identifier before ''., {lexeme: }], , )
|
|
// WARNING: Reporting at eof for .
|
|
beginFields()
|
|
handleIdentifier(Future, typeReference)
|
|
beginTypeArguments(<)
|
|
handleIdentifier(List, typeReference)
|
|
beginTypeArguments(<)
|
|
handleRecoverableError(Message[ExpectedType, Expected a type, but got '>>'., null, {lexeme: >>}], >>, >>)
|
|
handleIdentifier(, typeReference)
|
|
handleNoTypeArguments(>>)
|
|
handleType(, null)
|
|
endTypeArguments(1, <, >)
|
|
handleType(List, null)
|
|
endTypeArguments(1, <, >)
|
|
handleType(Future, null)
|
|
handleRecoverableError(Message[ExpectedIdentifier, Expected an identifier, but got ''., Try inserting an identifier before ''., {lexeme: }], , )
|
|
// WARNING: Reporting at eof for .
|
|
handleIdentifier(, topLevelVariableDeclaration)
|
|
handleNoFieldInitializer()
|
|
handleRecoverableError(Message[ExpectedAfterButGot, Expected ';' after this., null, {string: ;}], , )
|
|
// WARNING: Reporting at eof for .
|
|
endTopLevelFields(null, null, null, null, null, 1, Future, ;)
|
|
endTopLevelDeclaration()
|
|
endCompilationUnit(1, )
|