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

Unified Diff: pkg/front_end/lib/src/fasta/messages.dart

Issue 2755983002: Implement override checks for methods. (Closed)
Patch Set: Created 3 years, 9 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/messages.dart
diff --git a/pkg/front_end/lib/src/fasta/messages.dart b/pkg/front_end/lib/src/fasta/messages.dart
index 5e03fd567f3ccdc53bd2af68e25f6be28535d8d6..d1f31aaa73b14a8d2a64a22aa809b6e806295a0f 100644
--- a/pkg/front_end/lib/src/fasta/messages.dart
+++ b/pkg/front_end/lib/src/fasta/messages.dart
@@ -70,6 +70,9 @@ String format(Uri uri, int charOffset, String message) {
}
Location getLocation(String path, int charOffset) {
+ if (CompilerContext.current.uriToSource[path] == null) {
+ return new Location(path, 1, 1);
+ }
return new Program(null, CompilerContext.current.uriToSource)
.getLocation(path, charOffset);
}

Powered by Google App Engine
This is Rietveld 408576698