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

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

Issue 11293244: Implement --analyze-all option. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Correctly parse metadata Created 8 years, 1 month 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: dart/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart b/dart/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
index 62bfa821fed27476c60e33ac971f777ebdcbd008..63e89c3ec3317346f6b79a90d46f7edbaef0a772 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
@@ -158,7 +158,7 @@ class ConstantHandler extends CompilerTask {
Constant compileNodeWithDefinitions(Node node,
TreeElements definitions,
- {bool isConst}) {
+ {bool isConst: false}) {
return measure(() {
assert(node != null);
CompileTimeConstantEvaluator evaluator = new CompileTimeConstantEvaluator(
@@ -250,7 +250,7 @@ class CompileTimeConstantEvaluator extends Visitor {
CompileTimeConstantEvaluator(this.constantSystem,
this.elements,
this.compiler,
- {bool isConst})
+ {bool isConst: false})
: this.isEvaluatingConstant = isConst;
Constant evaluate(Node node) {

Powered by Google App Engine
This is Rietveld 408576698