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

Unified Diff: pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart

Issue 1772703002: Add source information to variable declarations 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/cps_ir/cps_ir_nodes.dart
diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
index 61a5ddd961408f55925d59b7b72f0c03c72b194b..8c44f4d886388f7951e09046d594c753dec1ca36 100644
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
@@ -419,10 +419,16 @@ class FunctionDefinition extends InteriorNode {
final Parameter thisParameter;
final List<Parameter> parameters;
final Continuation returnContinuation;
+ final SourceInformation sourceInformation;
Expression body;
- FunctionDefinition(this.element, this.thisParameter, this.parameters,
- this.returnContinuation, this.body);
+ FunctionDefinition(
+ this.element,
+ this.thisParameter,
+ this.parameters,
+ this.returnContinuation,
+ this.body,
+ {this.sourceInformation});
accept(BlockVisitor visitor) => visitor.visitFunctionDefinition(this);
@@ -3022,7 +3028,8 @@ class CopyingVisitor extends TrampolineRecursiveVisitor {
visit(node.body);
FunctionDefinition copy = new FunctionDefinition(
- node.element, thisParameter, parameters, returnContinuation, _first);
+ node.element, thisParameter, parameters, returnContinuation, _first,
+ sourceInformation: node.sourceInformation);
_first = _current = null;
return copy;
}
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart ('k') | pkg/compiler/lib/src/js_backend/codegen/codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698