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

Unified Diff: pkg/compiler/lib/src/resolution/send_structure.dart

Issue 1916053003: Add toStructuredText to ConstantExpression and align method names with ConstantValue (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: dartfmt Created 4 years, 8 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/resolution/send_structure.dart
diff --git a/pkg/compiler/lib/src/resolution/send_structure.dart b/pkg/compiler/lib/src/resolution/send_structure.dart
index 53c0356fe00de98b12ca8ca6b80500d093651550..4b6d1870317655c03d2ded9f17db552c18f4d290 100644
--- a/pkg/compiler/lib/src/resolution/send_structure.dart
+++ b/pkg/compiler/lib/src/resolution/send_structure.dart
@@ -2263,7 +2263,7 @@ class LateConstInvokeStructure<R, A> extends NewStructure<R, A> {
break;
default:
throw new SpannableAssertionFailure(
- node, "Unexpected constant kind $kind: ${constant.getText()}");
+ node, "Unexpected constant kind $kind: ${constant.toDartText()}");
}
return new ConstInvokeStructure(kind, constant);
}
@@ -2297,7 +2297,7 @@ class LateConstInvokeStructure<R, A> extends NewStructure<R, A> {
node, constant, arg);
default:
throw new SpannableAssertionFailure(
- node, "Unexpected constant kind $kind: ${constant.getText()}");
+ node, "Unexpected constant kind $kind: ${constant.toDartText()}");
}
}
}
« no previous file with comments | « pkg/compiler/lib/src/resolution/resolution_result.dart ('k') | pkg/compiler/lib/src/serialization/constant_serialization.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698