Chromium Code Reviews
DescriptionAdd convenience getter to extract the location of an AST node.
TreeNode.location is a getter for use in diagnostics and debugging.
It uses parent pointers to find the enclosing file URI and line ending
table of the node. If the node has no offset stored, it will use that
of the first enclosing parent that has an offset.
BUG=
R=ahe@google.com, jensj@google.com
Committed: https://github.com/dart-lang/kernel/commit/5a40636eef78d5ab1a87fe100ce0fd98bd7f0a22
Patch Set 1 #Patch Set 2 : Remove unintended changes #
Total comments: 1
Messages
Total messages: 7 (3 generated)
|