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

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

Issue 2849183002: Revert "Add support for building patched_sdk and platform.dill for dart2js:" (Closed)
Patch Set: Created 3 years, 8 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 930766550c686d0cfa255c90c987a93a45f2c304..12ef5d5bea8ff34e7e9b2cc88bcc67d35f83f5da 100644
--- a/pkg/front_end/lib/src/fasta/source/outline_builder.dart
+++ b/pkg/front_end/lib/src/fasta/source/outline_builder.dart
@@ -28,7 +28,8 @@ import 'source_library_builder.dart' show SourceLibraryBuilder;
import 'unhandled_listener.dart' show NullValue, Unhandled, UnhandledListener;
-import '../parser/dart_vm_native.dart' show removeNativeClause;
+import '../parser/dart_vm_native.dart'
+ show removeNativeClause, skipNativeClause;
import '../operator.dart'
show
@@ -807,10 +808,9 @@ class OutlineBuilder extends UnhandledListener {
@override
Token handleUnrecoverableError(Token token, FastaMessage message) {
if (isDartLibrary && message.code == codeExpectedBlockToSkip) {
- var target = library.loader.target;
- Token recover = target.skipNativeClause(token);
+ Token recover = skipNativeClause(token);
if (recover != null) {
- nativeMethodName = target.extractNativeMethodName(token);
+ nativeMethodName = unescapeString(token.next.lexeme);
return recover;
}
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/source/directive_listener.dart ('k') | pkg/front_end/lib/src/fasta/target_implementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698