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

Unified Diff: pkg/kernel/lib/ast.dart

Issue 2619193003: Insert implicit downcasts in kernel strong mode. (Closed)
Patch Set: Add missing status line Created 3 years, 11 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/kernel/lib/ast.dart
diff --git a/pkg/kernel/lib/ast.dart b/pkg/kernel/lib/ast.dart
index aaf08707017143f4d9724089a90e662a708f50c7..421f5e7924f4a8c3c4759fe4cbb140cac53fe176 100644
--- a/pkg/kernel/lib/ast.dart
+++ b/pkg/kernel/lib/ast.dart
@@ -944,6 +944,10 @@ class Procedure extends Member {
_MemberAccessor get _getterInterface => _reference;
_MemberAccessor get _setterInterface => _reference;
+
+ Location _getLocationInEnclosingFile(int offset) {
+ return enclosingProgram.getLocation(fileUri, offset);
+ }
}
enum ProcedureKind {
@@ -3547,7 +3551,7 @@ class Program extends TreeNode {
int lineIndex = low;
int lineStart = lines[lineIndex];
int lineNumber = 1 + lineIndex;
- int columnNumber = offset - lineStart;
+ int columnNumber = 1 + offset - lineStart;
return new Location(file, lineNumber, columnNumber);
}
}

Powered by Google App Engine
This is Rietveld 408576698