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

Side by Side Diff: pkg/compiler/lib/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 unified diff | Download patch
« no previous file with comments | « no previous file | pkg/compiler/lib/compiler_new.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library compiler; 5 library compiler;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'package:package_config/packages.dart'; 8 import 'package:package_config/packages.dart';
9 import 'compiler_new.dart' as new_api; 9 import 'compiler_new.dart' as new_api;
10 import 'src/old_to_new_api.dart'; 10 import 'src/old_to_new_api.dart';
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 Uri libraryRoot, 108 Uri libraryRoot,
109 Uri packageRoot, 109 Uri packageRoot,
110 CompilerInputProvider inputProvider, 110 CompilerInputProvider inputProvider,
111 DiagnosticHandler handler, 111 DiagnosticHandler handler,
112 [List<String> options = const [], 112 [List<String> options = const [],
113 CompilerOutputProvider outputProvider, 113 CompilerOutputProvider outputProvider,
114 Map<String, dynamic> environment = const {}, 114 Map<String, dynamic> environment = const {},
115 Uri packageConfig, 115 Uri packageConfig,
116 PackagesDiscoveryProvider packagesDiscoveryProvider]) { 116 PackagesDiscoveryProvider packagesDiscoveryProvider]) {
117 117
118 new_api.CompilerOptions compilerOptions = new new_api.CompilerOptions( 118 new_api.CompilerOptions compilerOptions = new new_api.CompilerOptions.parse(
119 entryPoint: script, 119 entryPoint: script,
120 libraryRoot: libraryRoot, 120 libraryRoot: libraryRoot,
121 packageRoot: packageRoot, 121 packageRoot: packageRoot,
122 packageConfig: packageConfig, 122 packageConfig: packageConfig,
123 packagesDiscoveryProvider: packagesDiscoveryProvider, 123 packagesDiscoveryProvider: packagesDiscoveryProvider,
124 options: options, 124 options: options,
125 environment: environment); 125 environment: environment);
126 126
127 new_api.CompilerInput compilerInput = new LegacyCompilerInput(inputProvider); 127 new_api.CompilerInput compilerInput = new LegacyCompilerInput(inputProvider);
128 new_api.CompilerDiagnostics compilerDiagnostics = 128 new_api.CompilerDiagnostics compilerDiagnostics =
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 final String name; 202 final String name;
203 203
204 /** 204 /**
205 * This constructor is not private to support user-defined 205 * This constructor is not private to support user-defined
206 * diagnostic kinds. 206 * diagnostic kinds.
207 */ 207 */
208 const Diagnostic(this.ordinal, this.name); 208 const Diagnostic(this.ordinal, this.name);
209 209
210 String toString() => name; 210 String toString() => name;
211 } 211 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/compiler_new.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698