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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/builder_accessors.dart

Issue 2704753002: Implement line and column numbers. (Closed)
Patch Set: Change message. Created 3 years, 10 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/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(
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/body_builder.dart ('k') | pkg/front_end/lib/src/fasta/kernel/kernel_class_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698