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

Side by Side Diff: pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart

Issue 2939533002: Apply transformations after comparing to golden files. (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « no previous file | pkg/front_end/test/fasta/compile.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 /// This file declares a "shadow hierarchy" of concrete classes which extend 5 /// This file declares a "shadow hierarchy" of concrete classes which extend
6 /// the kernel class hierarchy, adding methods and fields needed by the 6 /// the kernel class hierarchy, adding methods and fields needed by the
7 /// BodyBuilder. 7 /// BodyBuilder.
8 /// 8 ///
9 /// Instances of these classes may be created using the factory methods in 9 /// Instances of these classes may be created using the factory methods in
10 /// `ast_factory.dart`. 10 /// `ast_factory.dart`.
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 /// Indicates whether the expression arose from a post-increment or 274 /// Indicates whether the expression arose from a post-increment or
275 /// post-decrement. 275 /// post-decrement.
276 bool isPostIncDec = false; 276 bool isPostIncDec = false;
277 277
278 /// Indicates whether the expression arose from a pre-increment or 278 /// Indicates whether the expression arose from a pre-increment or
279 /// pre-decrement. 279 /// pre-decrement.
280 bool isPreIncDec = false; 280 bool isPreIncDec = false;
281 281
282 KernelComplexAssignment(this.rhs); 282 KernelComplexAssignment(this.rhs);
283 283
284 void set parent(TreeNode node) {
285 super.parent = node;
286 desugared?.parent = node;
287 }
288
284 @override 289 @override
285 accept(ExpressionVisitor v) => desugared.accept(v); 290 accept(ExpressionVisitor v) => desugared.accept(v);
286 291
287 @override 292 @override
288 accept1(ExpressionVisitor1 v, arg) => desugared.accept1(v, arg); 293 accept1(ExpressionVisitor1 v, arg) => desugared.accept1(v, arg);
289 294
290 @override 295 @override
291 DartType getStaticType(TypeEnvironment types) => 296 DartType getStaticType(TypeEnvironment types) =>
292 desugared.getStaticType(types); 297 desugared.getStaticType(types);
293 298
(...skipping 1843 matching lines...) Expand 10 before | Expand all | Expand 10 after
2137 } 2142 }
2138 2143
2139 transformChildren(v) { 2144 transformChildren(v) {
2140 return internalError("Internal error: Unsupported operation."); 2145 return internalError("Internal error: Unsupported operation.");
2141 } 2146 }
2142 2147
2143 visitChildren(v) { 2148 visitChildren(v) {
2144 return internalError("Internal error: Unsupported operation."); 2149 return internalError("Internal error: Unsupported operation.");
2145 } 2150 }
2146 } 2151 }
OLDNEW
« no previous file with comments | « no previous file | pkg/front_end/test/fasta/compile.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698