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

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

Issue 2999633002: [kernel] Offsets on loops (Closed)
Patch Set: Fix long line Created 3 years, 4 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 be31d44683f422878de898e67f0bb133699aba84..7afda0c84ed66e7fdd65b766b0a9c59dc66eac6c 100644
--- a/pkg/kernel/lib/ast.dart
+++ b/pkg/kernel/lib/ast.dart
@@ -3432,6 +3432,12 @@ class ForStatement extends Statement {
}
class ForInStatement extends Statement {
+ /// Offset in the source file it comes from.
+ ///
+ /// Valid values are from 0 and up, or -1 ([TreeNode.noOffset]) if the file
+ /// offset is not available (this is the default if none is specifically set).
+ int bodyOffset = TreeNode.noOffset;
ahe 2017/08/08 11:38:50 Why is the bodyOffset different from body.fileOffs
jensj 2017/08/08 11:54:53 As I recall I had to add that because we don't hav
ahe 2017/08/08 11:58:03 Can't we make sure that we have positions on all t
+
VariableDeclaration variable; // Has no initializer.
Expression iterable;
Statement body;

Powered by Google App Engine
This is Rietveld 408576698