Index: pkg/front_end/lib/src/fasta/kernel/builder_accessors.dart |
diff --git a/pkg/front_end/lib/src/fasta/kernel/builder_accessors.dart b/pkg/front_end/lib/src/fasta/kernel/builder_accessors.dart |
index 2d646ed5b2ab2d49b85489f1b33031117e5d27e9..3b6ca438189153ae97059ce1e75ffb891197275d 100644 |
--- a/pkg/front_end/lib/src/fasta/kernel/builder_accessors.dart |
+++ b/pkg/front_end/lib/src/fasta/kernel/builder_accessors.dart |
@@ -16,6 +16,7 @@ import 'package:kernel/core_types.dart' show |
CoreTypes; |
import '../errors.dart' show |
+ InputError, |
internalError; |
import 'frontend_accessors.dart' as kernel show |
@@ -694,7 +695,7 @@ class VariableAccessor extends kernel.VariableAccessor |
Expression throwNoSuchMethodError(String name, Arguments arguments, Uri uri, |
int charOffset, CoreTypes coreTypes, |
{bool isSuper: false, isGetter: false, isSetter: false}) { |
- print("$uri:$charOffset: method not found: '$name'."); |
+ print(new InputError(uri, charOffset, "Method not found: '$name'.").format()); |
Constructor constructor = coreTypes.getCoreClass( |
"dart:core", "NoSuchMethodError").constructors.first; |
return new Throw(new ConstructorInvocation( |