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

Unified Diff: pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart

Issue 1779153002: Make source information on conditions mandatory in CPS (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 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
Index: pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart
diff --git a/pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart b/pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart
index 6600305a04c5456c2f021e4783f9b3cf52f4d697..adeed902955e427251375a1042b784ffdbcd28e9 100644
--- a/pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart
+++ b/pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart
@@ -349,8 +349,9 @@ class TypeOperator extends Expression {
class ApplyBuiltinOperator extends Expression {
BuiltinOperator operator;
List<Expression> arguments;
+ SourceInformation sourceInformation;
- ApplyBuiltinOperator(this.operator, this.arguments);
+ ApplyBuiltinOperator(this.operator, this.arguments, this.sourceInformation);
accept(ExpressionVisitor visitor) {
return visitor.visitApplyBuiltinOperator(this);
@@ -602,11 +603,15 @@ class If extends Statement {
Expression condition;
Statement thenStatement;
Statement elseStatement;
+ SourceInformation sourceInformation;
Statement get next => null;
void set next(Statement s) => throw 'UNREACHABLE';
- If(this.condition, this.thenStatement, this.elseStatement);
+ If(this.condition,
+ this.thenStatement,
+ this.elseStatement,
+ this.sourceInformation);
accept(StatementVisitor visitor) => visitor.visitIf(this);
accept1(StatementVisitor1 visitor, arg) => visitor.visitIf(this, arg);
« no previous file with comments | « pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart ('k') | tests/compiler/dart2js/sourcemaps/source_mapping_invokes_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698