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

Side by Side Diff: pkg/dev_compiler/lib/src/compiler/compiler.dart

Issue 2955513002: Dynamically load packages for dartdevc tests in test.dart. (Closed)
Patch Set: Remove TODO that's TODONE. Created 3 years, 5 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
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 import 'dart:collection' show HashSet, Queue; 5 import 'dart:collection' show HashSet, Queue;
6 import 'dart:convert' show JSON; 6 import 'dart:convert' show JSON;
7 import 'dart:io' show File; 7 import 'dart:io' show File;
8 8
9 import 'package:analyzer/analyzer.dart' 9 import 'package:analyzer/analyzer.dart'
10 show AnalysisError, CompilationUnit, ErrorSeverity; 10 show AnalysisError, CompilationUnit, ErrorSeverity;
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 final bool inlineSourceMap; 247 final bool inlineSourceMap;
248 248
249 /// Whether to emit a summary file containing API signatures. 249 /// Whether to emit a summary file containing API signatures.
250 /// 250 ///
251 /// This is required for a modular build process. 251 /// This is required for a modular build process.
252 final bool summarizeApi; 252 final bool summarizeApi;
253 253
254 /// The file extension for summaries. 254 /// The file extension for summaries.
255 final String summaryExtension; 255 final String summaryExtension;
256 256
257 /// Whether to preserve metdata only accessible via mirrors 257 /// Whether to preserve metdata only accessible via mirrors.
258 final bool emitMetadata; 258 final bool emitMetadata;
259 259
260 /// Whether to force compilation of code with static errors. 260 /// Whether to force compilation of code with static errors.
261 final bool unsafeForceCompile; 261 final bool unsafeForceCompile;
262 262
263 /// Whether to compile code in a more permissive REPL mode allowing access 263 /// Whether to compile code in a more permissive REPL mode allowing access
264 /// to private members across library boundaries. 264 /// to private members across library boundaries.
265 final bool replCompile; 265 final bool replCompile;
266 266
267 /// Whether to emit Closure Compiler-friendly code. 267 /// Whether to emit Closure Compiler-friendly code.
268 final bool closure; 268 final bool closure;
269 269
270 /// Hoist the types at instance creation sites 270 /// Hoist the types at instance creation sites.
271 final bool hoistInstanceCreation; 271 final bool hoistInstanceCreation;
272 272
273 /// Hoist types from class signatures 273 /// Hoist types from class signatures.
274 final bool hoistSignatureTypes; 274 final bool hoistSignatureTypes;
275 275
276 /// Name types in type tests 276 /// Name types in type tests.
277 final bool nameTypeTests; 277 final bool nameTypeTests;
278 278
279 /// Hoist types in type tests 279 /// Hoist types in type tests.
280 final bool hoistTypeTests; 280 final bool hoistTypeTests;
281 281
282 /// Enable ES6 destructuring of named parameters. Off by default. 282 /// Enable ES6 destructuring of named parameters. Off by default.
283 /// 283 ///
284 /// Older V8 versions do not accept default values with destructuring in 284 /// Older V8 versions do not accept default values with destructuring in
285 /// arrow functions yet (e.g. `({a} = {}) => 1`) but happily accepts them 285 /// arrow functions yet (e.g. `({a} = {}) => 1`) but happily accepts them
286 /// with regular functions (e.g. `function({a} = {}) { return 1 }`). 286 /// with regular functions (e.g. `function({a} = {}) { return 1 }`).
287 /// 287 ///
288 /// Supporting the syntax: 288 /// Supporting the syntax:
289 /// * Chrome Canary (51) 289 /// * Chrome Canary (51)
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 case "dart": 627 case "dart":
628 case "package": 628 case "package":
629 case "file": 629 case "file":
630 // A valid URI. 630 // A valid URI.
631 return uri; 631 return uri;
632 default: 632 default:
633 // Assume a file path. 633 // Assume a file path.
634 return new Uri.file(path.absolute(source)); 634 return new Uri.file(path.absolute(source));
635 } 635 }
636 } 636 }
OLDNEW
« no previous file with comments | « pkg/dev_compiler/lib/src/compiler/command.dart ('k') | pkg/dev_compiler/test/options/options_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698