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

Side by Side Diff: pkg/front_end/lib/compiler_options.dart

Issue 2869563002: Initial version of Fasta based IncrementalKernelGenerator. (Closed)
Patch Set: Add mock SDK. Created 3 years, 7 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 library front_end.compiler_options; 5 library front_end.compiler_options;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'compilation_error.dart'; 8 import 'compilation_error.dart';
9 import 'file_system.dart'; 9 import 'file_system.dart';
10 import 'physical_file_system.dart'; 10 import 'physical_file_system.dart';
(...skipping 10 matching lines...) Expand all
21 /// Not intended to be implemented or extended by clients. 21 /// Not intended to be implemented or extended by clients.
22 class CompilerOptions { 22 class CompilerOptions {
23 /// The URI of the root of the Dart SDK (typically a "file:" URI). 23 /// The URI of the root of the Dart SDK (typically a "file:" URI).
24 /// 24 ///
25 /// If `null`, the SDK will be searched for using 25 /// If `null`, the SDK will be searched for using
26 /// [Platform.resolvedExecutable] as a starting point. 26 /// [Platform.resolvedExecutable] as a starting point.
27 /// 27 ///
28 /// This option is mutually exclusive with [sdkSummary]. 28 /// This option is mutually exclusive with [sdkSummary].
29 Uri sdkRoot; 29 Uri sdkRoot;
30 30
31 /// Map of `dart.xyz` libraries to URIs in the [fileSystem].
32 /// E.g. {'core': 'file:///sdk/lib/core/core.dart'} (no `dart:` prefix).
33 Map<String, Uri> dartLibraries = {};
34
31 /// Callback to which compilation errors should be delivered. 35 /// Callback to which compilation errors should be delivered.
32 /// 36 ///
33 /// By default, the first error will be reported by throwing an exception of 37 /// By default, the first error will be reported by throwing an exception of
34 /// type [CompilationError]. 38 /// type [CompilationError].
35 ErrorHandler onError = defaultErrorHandler; 39 ErrorHandler onError = defaultErrorHandler;
36 40
37 /// URI of the ".packages" file (typically a "file:" URI). 41 /// URI of the ".packages" file (typically a "file:" URI).
38 /// 42 ///
39 /// If `null`, the ".packages" file will be found via the standard 43 /// If `null`, the ".packages" file will be found via the standard
40 /// package_config search algorithm. 44 /// package_config search algorithm.
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 return _report("SDK root directory not found: ${options.sdkRoot}"); 154 return _report("SDK root directory not found: ${options.sdkRoot}");
151 } 155 }
152 156
153 var summary = options.sdkSummary; 157 var summary = options.sdkSummary;
154 if (summary != null && !await fs.entityForUri(summary).exists()) { 158 if (summary != null && !await fs.entityForUri(summary).exists()) {
155 return _report("SDK summary not found: ${options.sdkSummary}"); 159 return _report("SDK summary not found: ${options.sdkSummary}");
156 } 160 }
157 161
158 return true; 162 return true;
159 } 163 }
OLDNEW
« no previous file with comments | « no previous file | pkg/front_end/lib/incremental_kernel_generator.dart » ('j') | pkg/front_end/lib/src/base/processed_options.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698