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

Unified Diff: pkg/compiler/lib/src/ssa/kernel_string_builder.dart

Issue 2968383002: Add ConstructorBodyEntity (Closed)
Patch Set: Skip non-live constructor bodies Created 3 years, 5 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
« no previous file with comments | « pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart ('k') | pkg/compiler/lib/src/ssa/loop_handler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/kernel_string_builder.dart
diff --git a/pkg/compiler/lib/src/ssa/kernel_string_builder.dart b/pkg/compiler/lib/src/ssa/kernel_string_builder.dart
index 920b61c4923438632f1384fa3563e25d1e2a4e63..85c5a55f3a395644a6fd3bb8d142135eaae46a90 100644
--- a/pkg/compiler/lib/src/ssa/kernel_string_builder.dart
+++ b/pkg/compiler/lib/src/ssa/kernel_string_builder.dart
@@ -6,13 +6,11 @@ import 'package:kernel/ast.dart' as ir;
import '../common.dart';
import 'builder_kernel.dart';
-import 'kernel_ast_adapter.dart';
import 'nodes.dart';
/// Visits and concatenates the expressions in a string concatenation.
class KernelStringBuilder extends ir.Visitor {
final KernelSsaGraphBuilder builder;
- KernelAstAdapter get astAdapter => builder.astAdapter;
/// The string value generated so far.
HInstruction result = null;
@@ -22,7 +20,7 @@ class KernelStringBuilder extends ir.Visitor {
@override
void defaultNode(ir.Node node) {
throw new SpannableAssertionFailure(
- astAdapter.getNode(node), 'Unexpected node.');
+ CURRENT_ELEMENT_SPANNABLE, 'Unexpected node: $node');
}
@override
« no previous file with comments | « pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart ('k') | pkg/compiler/lib/src/ssa/loop_handler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698