Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(938)

Unified Diff: pkg/front_end/lib/src/fasta/source/outline_builder.dart

Issue 2738903002: Change the calling conventions for handleUnrecoverableError. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/front_end/lib/src/fasta/source/outline_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/source/outline_builder.dart b/pkg/front_end/lib/src/fasta/source/outline_builder.dart
index 5be03bde2ae562c4ea6271562da9202b52871ed4..232c5b51be4d3c90b638fb96b5c6708d7c8011f7 100644
--- a/pkg/front_end/lib/src/fasta/source/outline_builder.dart
+++ b/pkg/front_end/lib/src/fasta/source/outline_builder.dart
@@ -689,7 +689,7 @@ class OutlineBuilder extends UnhandledListener {
Token recover = skipNativeClause(token);
if (recover != null) {
nativeMethodName = unescapeString(token.next.value);
- return recover;
+ return newSyntheticToken(recover);
}
}
return super.handleUnrecoverableError(token, kind, arguments);

Powered by Google App Engine
This is Rietveld 408576698