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

Side by Side Diff: lib/src/options.dart

Issue 1020043002: Replace dart_core.js with actual compiled SDK (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 /// Set of flags and options passed to the compiler 5 /// Set of flags and options passed to the compiler
6 library dev_compiler.src.options; 6 library dev_compiler.src.options;
7 7
8 import 'dart:io'; 8 import 'dart:io';
9 9
10 import 'package:args/args.dart'; 10 import 'package:args/args.dart';
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 final List<String> nonnullableTypes; 186 final List<String> nonnullableTypes;
187 187
188 /// Whether to use static types for code generation. 188 /// Whether to use static types for code generation.
189 @override 189 @override
190 final bool ignoreTypes; 190 final bool ignoreTypes;
191 191
192 /// Whether to emit the source map files. 192 /// Whether to emit the source map files.
193 @override 193 @override
194 final bool emitSourceMaps; 194 final bool emitSourceMaps;
195 195
196 /// Location for runtime files, such as `dart_core.js`. By default this is 196 /// Location for runtime files, such as `dart_runtime.js`. By default this is
197 /// inferred to be under `lib/runtime/` in the location of the `dev_compiler` 197 /// inferred to be under `lib/runtime/` in the location of the `dev_compiler`
198 /// package (if we can infer where that is located). 198 /// package (if we can infer where that is located).
199 final String runtimeDir; 199 final String runtimeDir;
200 200
201 CompilerOptions({this.allowConstCasts: true, this.checkSdk: false, 201 CompilerOptions({this.allowConstCasts: true, this.checkSdk: false,
202 this.dumpInfo: false, this.dumpInfoFile, this.dumpSrcDir, 202 this.dumpInfo: false, this.dumpInfoFile, this.dumpSrcDir,
203 this.forceCompile: false, this.formatOutput: false, 203 this.forceCompile: false, this.formatOutput: false,
204 this.cheapTestFormat: false, this.ignoreTypes: false, this.outputDir, 204 this.cheapTestFormat: false, this.ignoreTypes: false, this.outputDir,
205 this.outputDart: false, this.useColors: true, 205 this.outputDart: false, this.useColors: true,
206 this.covariantGenerics: true, this.relaxedCasts: true, 206 this.covariantGenerics: true, this.relaxedCasts: true,
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 // The pub-cache directory is two levels up, but we verify that the layout 372 // The pub-cache directory is two levels up, but we verify that the layout
373 // looks correct. 373 // looks correct.
374 if (path.basename(dir) != 'dev_compiler') return null; 374 if (path.basename(dir) != 'dev_compiler') return null;
375 dir = path.dirname(dir); 375 dir = path.dirname(dir);
376 if (path.basename(dir) != 'global_packages') return null; 376 if (path.basename(dir) != 'global_packages') return null;
377 dir = path.dirname(dir); 377 dir = path.dirname(dir);
378 return path.join(dir, cacheDir, 'lib', 'runtime'); 378 return path.join(dir, cacheDir, 'lib', 'runtime');
379 } 379 }
380 return null; 380 return null;
381 } 381 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698