| 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);
|
| + }
|
| }
|
|
|