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

Unified Diff: tests/compiler/dart2js/mock_compiler.dart

Issue 871863006: Enable enums by default. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove the field in Compiler. Created 5 years, 11 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/warnings.dart ('k') | tests/compiler/dart2js/resolver_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/mock_compiler.dart
diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart
index 2414c4b70f22032b34ac882f1eccdda0b2f01bb3..2d40fc99dfa36f1c54fc8aa3b784150ac71b210b 100644
--- a/tests/compiler/dart2js/mock_compiler.dart
+++ b/tests/compiler/dart2js/mock_compiler.dart
@@ -74,7 +74,6 @@ class MockCompiler extends Compiler {
// affected by inlining support.
bool disableInlining: true,
bool trustTypeAnnotations: false,
- bool enableEnums: false,
int this.expectedWarnings,
int this.expectedErrors,
api.CompilerOutputProvider outputProvider,
@@ -92,7 +91,6 @@ class MockCompiler extends Compiler {
preserveComments: preserveComments,
trustTypeAnnotations: trustTypeAnnotations,
showPackageWarnings: true,
- enableEnums: enableEnums,
outputProvider: outputProvider) {
this.disableInlining = disableInlining;
@@ -274,10 +272,8 @@ class MockCompiler extends Compiler {
}
/// Create a new [MockCompiler] and apply it asynchronously to [f].
- static Future create(f(MockCompiler compiler),
- {bool enableEnums: false}) {
- MockCompiler compiler = new MockCompiler.internal(
- enableEnums: enableEnums);
+ static Future create(f(MockCompiler compiler)) {
+ MockCompiler compiler = new MockCompiler.internal();
return compiler.init().then((_) => f(compiler));
}
}
« no previous file with comments | « pkg/compiler/lib/src/warnings.dart ('k') | tests/compiler/dart2js/resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698