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

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

Issue 2619193003: Insert implicit downcasts in kernel strong mode. (Closed)
Patch Set: Merge 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
« no previous file with comments | « pkg/kernel/lib/analyzer/ast_from_analyzer.dart ('k') | pkg/kernel/lib/repository.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/ast.dart
diff --git a/pkg/kernel/lib/ast.dart b/pkg/kernel/lib/ast.dart
index 9962d820ce19fb92a5c143b56f295e2ecb88f25b..f35e754d4d1c5238c2e6257267b16a26fcf38ddb 100644
--- a/pkg/kernel/lib/ast.dart
+++ b/pkg/kernel/lib/ast.dart
@@ -949,6 +949,10 @@ class Procedure extends Member {
_MemberAccessor get _getterInterface => _reference;
_MemberAccessor get _setterInterface => _reference;
+
+ Location _getLocationInEnclosingFile(int offset) {
+ return enclosingProgram.getLocation(fileUri, offset);
+ }
}
enum ProcedureKind {
@@ -3558,7 +3562,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);
}
}
« no previous file with comments | « pkg/kernel/lib/analyzer/ast_from_analyzer.dart ('k') | pkg/kernel/lib/repository.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698