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

Unified Diff: sdk/lib/_internal/compiler/implementation/compile_time_constants.dart

Issue 208423012: Add helpers library to dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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: sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
diff --git a/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart b/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
index 121fe5b45757a07ae96c40e480d2d9acefeed8dd..94523f092acdc2a38df11c8bef179891a973a8ec 100644
--- a/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
+++ b/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
@@ -799,26 +799,6 @@ class CompileTimeConstantEvaluator extends Visitor {
}
}
-class TryCompileTimeConstantEvaluator extends CompileTimeConstantEvaluator {
- TryCompileTimeConstantEvaluator(ConstantHandler handler,
- TreeElements elements,
- Compiler compiler)
- : super(handler, elements, compiler, isConst: true);
-
- error(Node node, MessageKind message) {
- // Just fail without reporting it anywhere.
- throw new CompileTimeConstantError(
- message, const {}, compiler.terseDiagnostics);
- }
-}
-
-class CompileTimeConstantError {
- final Message message;
- CompileTimeConstantError(MessageKind kind, Map arguments, bool terse)
- : message = new Message(kind, arguments, terse);
- String toString() => message.toString();
-}
-
class ConstructorEvaluator extends CompileTimeConstantEvaluator {
final FunctionElement constructor;
final Map<Element, Constant> definitions;

Powered by Google App Engine
This is Rietveld 408576698