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

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

Issue 1803303002: Move all flags to CompilerOptions (first step to stop passing the compiler to (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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: tests/compiler/dart2js/mock_compiler.dart
diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart
index 11b450de8045681a87bcd4e055a79765fdc7407e..2d4862cc96f5f81e32a411585a45be099a3a881d 100644
--- a/tests/compiler/dart2js/mock_compiler.dart
+++ b/tests/compiler/dart2js/mock_compiler.dart
@@ -9,6 +9,7 @@ import 'dart:async';
import 'dart:collection';
import 'package:compiler/compiler.dart' as api;
+import 'package:compiler/compiler_new.dart' as new_api;
import 'package:compiler/src/common/names.dart' show
Uris;
import 'package:compiler/src/constants/expressions.dart';
@@ -69,7 +70,6 @@ class MockCompiler extends Compiler {
bool enableTypeAssertions: false,
bool enableUserAssertions: false,
bool enableMinification: false,
- int maxConcreteTypeSize: 5,
bool disableTypeInference: false,
bool analyzeAll: false,
bool analyzeOnly: false,
@@ -88,22 +88,24 @@ class MockCompiler extends Compiler {
LibrarySourceProvider this.librariesOverride})
: sourceFiles = new Map<String, SourceFile>(),
testedPatchVersion = patchVersion,
- super(enableTypeAssertions: enableTypeAssertions,
+ super(options: new new_api.CompilerOptions(
+ entryPoint: new Uri(scheme: 'mock'),
+ libraryRoot: Uri.parse('placeholder_library_root_for_mock/'),
+ enableTypeAssertions: enableTypeAssertions,
enableUserAssertions: enableUserAssertions,
+ disableInlining: disableInlining,
enableAssertMessage: true,
enableMinification: enableMinification,
- maxConcreteTypeSize: maxConcreteTypeSize,
- disableTypeInferenceFlag: disableTypeInference,
- analyzeAllFlag: analyzeAll,
+ disableTypeInference: disableTypeInference,
+ analyzeAll: analyzeAll,
analyzeOnly: analyzeOnly,
emitJavaScript: emitJavaScript,
preserveComments: preserveComments,
trustTypeAnnotations: trustTypeAnnotations,
trustJSInteropTypeAnnotations: trustJSInteropTypeAnnotations,
diagnosticOptions:
- new DiagnosticOptions(shownPackageWarnings: const []),
+ new DiagnosticOptions(shownPackageWarnings: const [])),
outputProvider: new LegacyCompilerOutput(outputProvider)) {
- this.disableInlining = disableInlining;
deferredLoadTask = new MockDeferredLoadTask(this);
« no previous file with comments | « tests/compiler/dart2js/memory_compiler.dart ('k') | tests/compiler/dart2js/sourcemaps/sourcemap_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698