-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge d75c493 into dev
- Loading branch information
Showing
59 changed files
with
1,218 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
pkg/front_end/parser_testcases/error_recovery/issue_49477.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import 'dart:io'; | ||
|
||
void main(List<String> args) async { | ||
final proc = await Process.start('', []); | ||
proc.stdout. // we're typing here! | ||
|
||
void writeMessage(String message) {} | ||
} |
119 changes: 119 additions & 0 deletions
119
pkg/front_end/parser_testcases/error_recovery/issue_49477.dart.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
Problems reported: | ||
|
||
parser/error_recovery/issue_49477:7:3: Expected an identifier, but got 'void'. | ||
void writeMessage(String message) {} | ||
^^^^ | ||
|
||
parser/error_recovery/issue_49477:5:14: Expected ';' after this. | ||
proc.stdout. // we're typing here! | ||
^ | ||
|
||
beginCompilationUnit(import) | ||
beginMetadataStar(import) | ||
endMetadataStar(0) | ||
beginUncategorizedTopLevelDeclaration(import) | ||
beginImport(import) | ||
beginLiteralString('dart:io') | ||
endLiteralString(0, ;) | ||
beginConditionalUris(;) | ||
endConditionalUris(0) | ||
handleImportPrefix(null, null) | ||
beginCombinators(;) | ||
endCombinators(0) | ||
endImport(import, null, ;) | ||
endTopLevelDeclaration(;) | ||
beginMetadataStar(void) | ||
endMetadataStar(0) | ||
beginTopLevelMember(void) | ||
beginTopLevelMethod(;, null, null) | ||
handleVoidKeyword(void) | ||
handleIdentifier(main, topLevelFunctionDeclaration) | ||
handleNoTypeVariables(() | ||
beginFormalParameters((, MemberKind.TopLevelMethod) | ||
beginMetadataStar(List) | ||
endMetadataStar(0) | ||
beginFormalParameter(List, MemberKind.TopLevelMethod, null, null, null) | ||
handleIdentifier(List, typeReference) | ||
beginTypeArguments(<) | ||
handleIdentifier(String, typeReference) | ||
handleNoTypeArguments(>) | ||
handleType(String, null) | ||
endTypeArguments(1, <, >) | ||
handleType(List, null) | ||
handleIdentifier(args, formalParameterDeclaration) | ||
handleFormalParameterWithoutValue()) | ||
endFormalParameter(null, null, null, args, null, null, FormalParameterKind.requiredPositional, MemberKind.TopLevelMethod) | ||
endFormalParameters(1, (, ), MemberKind.TopLevelMethod) | ||
handleAsyncModifier(async, null) | ||
beginBlockFunctionBody({) | ||
beginMetadataStar(final) | ||
endMetadataStar(0) | ||
handleNoType(final) | ||
beginVariablesDeclaration(proc, null, final) | ||
handleIdentifier(proc, localVariableDeclaration) | ||
beginInitializedIdentifier(proc) | ||
beginVariableInitializer(=) | ||
beginAwaitExpression(await) | ||
handleIdentifier(Process, expression) | ||
handleNoTypeArguments(.) | ||
handleNoArguments(.) | ||
handleSend(Process, .) | ||
handleIdentifier(start, expressionContinuation) | ||
handleNoTypeArguments(() | ||
beginArguments(() | ||
beginLiteralString('') | ||
endLiteralString(0, ,) | ||
handleNoTypeArguments([]) | ||
handleLiteralList(0, [, null, ]) | ||
endArguments(2, (, )) | ||
handleSend(start, ;) | ||
handleEndingBinaryExpression(., )) | ||
endAwaitExpression(await, )) | ||
endVariableInitializer(=) | ||
endInitializedIdentifier(proc) | ||
endVariablesDeclaration(1, ;) | ||
handleIdentifier(proc, expression) | ||
handleNoTypeArguments(.) | ||
handleNoArguments(.) | ||
handleSend(proc, .) | ||
handleIdentifier(stdout, expressionContinuation) | ||
handleNoTypeArguments(.) | ||
handleNoArguments(.) | ||
handleSend(stdout, .) | ||
handleEndingBinaryExpression(., stdout) | ||
handleRecoverableError(Message[ExpectedIdentifier, Expected an identifier, but got 'void'., Try inserting an identifier before 'void'., {lexeme: void}], void, void) | ||
handleIdentifier(, expressionContinuation) | ||
handleNoTypeArguments(void) | ||
handleNoArguments(void) | ||
handleSend(, void) | ||
handleEndingBinaryExpression(., ) | ||
handleRecoverableError(Message[ExpectedAfterButGot, Expected ';' after this., null, {string: ;}], ., .) | ||
handleExpressionStatement(proc, ;) | ||
beginMetadataStar(void) | ||
endMetadataStar(0) | ||
handleNoTypeVariables(() | ||
beginLocalFunctionDeclaration(void) | ||
handleVoidKeyword(void) | ||
beginFunctionName(writeMessage) | ||
handleIdentifier(writeMessage, localFunctionDeclaration) | ||
endFunctionName(void, () | ||
beginFormalParameters((, MemberKind.Local) | ||
beginMetadataStar(String) | ||
endMetadataStar(0) | ||
beginFormalParameter(String, MemberKind.Local, null, null, null) | ||
handleIdentifier(String, typeReference) | ||
handleNoTypeArguments(message) | ||
handleType(String, null) | ||
handleIdentifier(message, formalParameterDeclaration) | ||
handleFormalParameterWithoutValue()) | ||
endFormalParameter(null, null, null, message, null, null, FormalParameterKind.requiredPositional, MemberKind.Local) | ||
endFormalParameters(1, (, ), MemberKind.Local) | ||
handleNoInitializers() | ||
handleAsyncModifier(null, null) | ||
beginBlockFunctionBody({) | ||
endBlockFunctionBody(0, {, }) | ||
endLocalFunctionDeclaration(}) | ||
endBlockFunctionBody(3, {, }) | ||
endTopLevelMethod(void, null, }) | ||
endTopLevelDeclaration(}) | ||
endCompilationUnit(2, ) |
Oops, something went wrong.