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

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

Issue 2680303002: Kernel debugging; service tests (Closed)
Patch Set: Address comments 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
« no previous file with comments | « pkg/kernel/lib/analyzer/ast_from_analyzer.dart ('k') | pkg/kernel/lib/binary/ast_from_binary.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 aafafcd077580d52263a7f468cbfc84a0ddb0ff2..7bc46ccf689e6d43e9da2651cf333cff9b75fe35 100644
--- a/pkg/kernel/lib/ast.dart
+++ b/pkg/kernel/lib/ast.dart
@@ -95,9 +95,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);
@@ -3313,6 +3314,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.
///
« no previous file with comments | « pkg/kernel/lib/analyzer/ast_from_analyzer.dart ('k') | pkg/kernel/lib/binary/ast_from_binary.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698