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

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

Issue 2927613002: Improve NSM handling. (Closed)
Patch Set: Address review comments. Created 3 years, 6 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
« no previous file with comments | « pkg/front_end/lib/src/fasta/loader.dart ('k') | pkg/front_end/lib/src/fasta/target_implementation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/source/source_loader.dart
diff --git a/pkg/front_end/lib/src/fasta/source/source_loader.dart b/pkg/front_end/lib/src/fasta/source/source_loader.dart
index e501184da433b2a4857cdd2f0b4dcf6a3bf10206..0f4d7f1c7ec81570ed2c85c167f36bab244fb9c9 100644
--- a/pkg/front_end/lib/src/fasta/source/source_loader.dart
+++ b/pkg/front_end/lib/src/fasta/source/source_loader.dart
@@ -20,7 +20,7 @@ import 'package:front_end/src/fasta/kernel/kernel_target.dart'
import 'package:front_end/src/fasta/type_inference/type_inference_engine.dart'
show TypeInferenceEngine;
-import 'package:kernel/ast.dart' show Program;
+import 'package:kernel/ast.dart' show Arguments, Expression, Program;
import 'package:kernel/class_hierarchy.dart'
show ClassHierarchy, ClosedWorldClassHierarchy;
@@ -483,4 +483,36 @@ class SourceLoader<L> extends Loader<L> {
}
List<Uri> getDependencies() => sourceBytes.keys.toList();
+
+ Expression instantiateInvocation(Expression receiver, String name,
+ Arguments arguments, int offset, bool isSuper) {
+ return target.backendTarget.instantiateInvocation(
+ coreTypes, receiver, name, arguments, offset, isSuper);
+ }
+
+ Expression instantiateNoSuchMethodError(
+ Expression receiver, String name, Arguments arguments, int offset,
+ {bool isMethod: false,
+ bool isGetter: false,
+ bool isSetter: false,
+ bool isField: false,
+ bool isLocalVariable: false,
+ bool isDynamic: false,
+ bool isSuper: false,
+ bool isStatic: false,
+ bool isConstructor: false,
+ bool isTopLevel: false}) {
+ return target.backendTarget.instantiateNoSuchMethodError(
+ coreTypes, receiver, name, arguments, offset,
+ isMethod: isMethod,
+ isGetter: isGetter,
+ isSetter: isSetter,
+ isField: isField,
+ isLocalVariable: isLocalVariable,
+ isDynamic: isDynamic,
+ isSuper: isSuper,
+ isStatic: isStatic,
+ isConstructor: isConstructor,
+ isTopLevel: isTopLevel);
+ }
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/loader.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