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

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

Issue 2680303002: Kernel debugging; service tests (Closed)
Patch Set: Changes based on feedback. Also fixed regress_28443_test 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/kernel/lib/ast.dart
diff --git a/pkg/kernel/lib/ast.dart b/pkg/kernel/lib/ast.dart
index 7535f619c97c2ae64989498e1750f5f2259b1ee5..d3d67eef872b8eb916d929621b141f78cc1a72ca 100644
--- a/pkg/kernel/lib/ast.dart
+++ b/pkg/kernel/lib/ast.dart
@@ -92,9 +92,10 @@ abstract class TreeNode extends Node {
TreeNode parent;
- /// Offset in the source file it comes from. Valid values are from 0 and up,
- /// or -1 ([noOffset]) if the file offset is not available
- /// (this is the default if none is specifically set).
+ /// Offset in the source file it comes from.
+ ///
+ /// Valid values are from 0 and up, or -1 ([noOffset]) if the file offset is
+ /// not available (this is the default if none is specifically set).
int fileOffset = noOffset;
accept(TreeVisitor v);
@@ -3000,6 +3001,13 @@ class YieldStatement extends Statement {
//
// DESIGN TODO: Should we remove the 'final' modifier from variables?
class VariableDeclaration extends Statement {
+ /// Offset of the equals sign in the source file it comes from.
+ ///
+ /// Valid values are from 0 and up, or -1 ([TreeNode.noOffset])
+ /// if the equals sign offset is not available (e.g. if not initialized)
+ /// (this is the default if none is specifically set).
+ int fileEqualsOffset = TreeNode.noOffset;
+
/// For named parameters, this is the name of the parameter. No two named
/// parameters (in the same parameter list) can have the same name.
///

Powered by Google App Engine
This is Rietveld 408576698