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

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

Issue 1864433004: Repeats and fixes the changes landed & reverted as CL 1789553003. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updates to external dependents 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
« no previous file with comments | « tests/compiler/dart2js/memory_compiler.dart ('k') | tests/compiler/dart2js/options_helper.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 c08dbde9a9385f3916cce9ae74f029558b4f9b88..69bcd2c903c0f34b70c4786da327d0d721586c3f 100644
--- a/tests/compiler/dart2js/mock_compiler.dart
+++ b/tests/compiler/dart2js/mock_compiler.dart
@@ -1,15 +1,13 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library mock_compiler;
-import "package:expect/expect.dart";
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';
@@ -17,11 +15,13 @@ import 'package:compiler/src/diagnostics/diagnostic_listener.dart';
import 'package:compiler/src/diagnostics/source_span.dart';
import 'package:compiler/src/diagnostics/spannable.dart';
import 'package:compiler/src/elements/elements.dart';
-import 'package:compiler/src/js_backend/backend_helpers.dart'
- show BackendHelpers;
-import 'package:compiler/src/js_backend/lookup_map_analysis.dart'
- show LookupMapAnalysis;
+import 'package:compiler/src/js_backend/backend_helpers.dart' show
+ BackendHelpers;
+import 'package:compiler/src/js_backend/lookup_map_analysis.dart' show
+ LookupMapAnalysis;
import 'package:compiler/src/io/source_file.dart';
+import 'package:compiler/src/options.dart' show
+ CompilerOptions;
import 'package:compiler/src/resolution/members.dart';
import 'package:compiler/src/resolution/registry.dart';
import 'package:compiler/src/resolution/scope.dart';
@@ -31,17 +31,17 @@ import 'package:compiler/src/tree/tree.dart';
import 'package:compiler/src/old_to_new_api.dart';
import 'parser_helper.dart';
-import 'package:compiler/src/elements/modelx.dart'
- show ElementX,
- LibraryElementX,
- ErroneousElementX,
- FunctionElementX;
+import 'package:compiler/src/elements/modelx.dart' show
+ ElementX,
+ LibraryElementX,
+ ErroneousElementX,
+ FunctionElementX;
import 'package:compiler/src/compiler.dart';
-import 'package:compiler/src/deferred_load.dart'
- show DeferredLoadTask,
- OutputUnit;
+import 'package:compiler/src/deferred_load.dart' show
+ DeferredLoadTask,
+ OutputUnit;
import 'mock_libraries.dart';
import 'diagnostic_helper.dart';
@@ -88,7 +88,7 @@ class MockCompiler extends Compiler {
LibrarySourceProvider this.librariesOverride})
: sourceFiles = new Map<String, SourceFile>(),
testedPatchVersion = patchVersion,
- super(options: new new_api.CompilerOptions(
+ super(options: new CompilerOptions(
entryPoint: new Uri(scheme: 'mock'),
libraryRoot: Uri.parse('placeholder_library_root_for_mock/'),
enableTypeAssertions: enableTypeAssertions,
@@ -103,8 +103,7 @@ class MockCompiler extends Compiler {
preserveComments: preserveComments,
trustTypeAnnotations: trustTypeAnnotations,
trustJSInteropTypeAnnotations: trustJSInteropTypeAnnotations,
- diagnosticOptions:
- new DiagnosticOptions(shownPackageWarnings: const [])),
+ shownPackageWarnings: const []),
outputProvider: new LegacyCompilerOutput(outputProvider)) {
deferredLoadTask = new MockDeferredLoadTask(this);
« no previous file with comments | « tests/compiler/dart2js/memory_compiler.dart ('k') | tests/compiler/dart2js/options_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698