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

Side by Side Diff: pkg/compiler/lib/src/js/nodes.dart

Issue 955543004: Pass SourceInformation through the CPS IR. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update comments Created 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of js_ast; 5 part of js_ast;
6 6
7 abstract class NodeVisitor<T> { 7 abstract class NodeVisitor<T> {
8 T visitProgram(Program node); 8 T visitProgram(Program node);
9 9
10 T visitBlock(Block node); 10 T visitBlock(Block node);
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 656
657 Conditional _clone() => new Conditional(condition, then, otherwise); 657 Conditional _clone() => new Conditional(condition, then, otherwise);
658 658
659 int get precedenceLevel => ASSIGNMENT; 659 int get precedenceLevel => ASSIGNMENT;
660 } 660 }
661 661
662 class Call extends Expression { 662 class Call extends Expression {
663 Expression target; 663 Expression target;
664 List<Expression> arguments; 664 List<Expression> arguments;
665 665
666 Call(this.target, this.arguments); 666 Call(this.target, this.arguments,
667 {JavaScriptNodeSourceInformation sourceInformation}) {
668 this._sourceInformation = sourceInformation;
669 }
667 670
668 accept(NodeVisitor visitor) => visitor.visitCall(this); 671 accept(NodeVisitor visitor) => visitor.visitCall(this);
669 672
670 void visitChildren(NodeVisitor visitor) { 673 void visitChildren(NodeVisitor visitor) {
671 target.accept(visitor); 674 target.accept(visitor);
672 for (Expression arg in arguments) arg.accept(visitor); 675 for (Expression arg in arguments) arg.accept(visitor);
673 } 676 }
674 677
675 Call _clone() => new Call(target, arguments); 678 Call _clone() => new Call(target, arguments);
676 679
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
1167 class Comment extends Statement { 1170 class Comment extends Statement {
1168 final String comment; 1171 final String comment;
1169 1172
1170 Comment(this.comment); 1173 Comment(this.comment);
1171 1174
1172 accept(NodeVisitor visitor) => visitor.visitComment(this); 1175 accept(NodeVisitor visitor) => visitor.visitComment(this);
1173 Comment _clone() => new Comment(comment); 1176 Comment _clone() => new Comment(comment);
1174 1177
1175 void visitChildren(NodeVisitor visitor) {} 1178 void visitChildren(NodeVisitor visitor) {}
1176 } 1179 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698