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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/apiimpl.dart

Issue 476583003: Allow dart2dart to output one file per library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address floitsch's comments Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/compiler.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 leg_apiimpl; 5 library leg_apiimpl;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import '../compiler.dart' as api; 9 import '../compiler.dart' as api;
10 import 'dart2jslib.dart' as leg; 10 import 'dart2jslib.dart' as leg;
(...skipping 27 matching lines...) Expand all
38 this.allowedLibraryCategories = getAllowedLibraryCategories(options), 38 this.allowedLibraryCategories = getAllowedLibraryCategories(options),
39 super( 39 super(
40 outputProvider: outputProvider, 40 outputProvider: outputProvider,
41 enableTypeAssertions: hasOption(options, '--enable-checked-mode'), 41 enableTypeAssertions: hasOption(options, '--enable-checked-mode'),
42 enableUserAssertions: hasOption(options, '--enable-checked-mode'), 42 enableUserAssertions: hasOption(options, '--enable-checked-mode'),
43 trustTypeAnnotations: 43 trustTypeAnnotations:
44 hasOption(options, '--trust-type-annotations'), 44 hasOption(options, '--trust-type-annotations'),
45 enableMinification: hasOption(options, '--minify'), 45 enableMinification: hasOption(options, '--minify'),
46 enableNativeLiveTypeAnalysis: 46 enableNativeLiveTypeAnalysis:
47 !hasOption(options, '--disable-native-live-type-analysis'), 47 !hasOption(options, '--disable-native-live-type-analysis'),
48 emitJavaScript: !hasOption(options, '--output-type=dart'), 48 emitJavaScript: !(hasOption(options, '--output-type=dart') ||
49 hasOption(options, '--output-type=dart-multi')),
50 dart2dartMultiFile: hasOption(options, '--output-type=dart-multi'),
49 generateSourceMap: !hasOption(options, '--no-source-maps'), 51 generateSourceMap: !hasOption(options, '--no-source-maps'),
50 analyzeAllFlag: hasOption(options, '--analyze-all'), 52 analyzeAllFlag: hasOption(options, '--analyze-all'),
51 analyzeOnly: hasOption(options, '--analyze-only'), 53 analyzeOnly: hasOption(options, '--analyze-only'),
52 analyzeMain: hasOption(options, '--analyze-main'), 54 analyzeMain: hasOption(options, '--analyze-main'),
53 analyzeSignaturesOnly: 55 analyzeSignaturesOnly:
54 hasOption(options, '--analyze-signatures-only'), 56 hasOption(options, '--analyze-signatures-only'),
55 strips: extractCsvOption(options, '--force-strip='), 57 strips: extractCsvOption(options, '--force-strip='),
56 enableConcreteTypeInference: 58 enableConcreteTypeInference:
57 hasOption(options, '--enable-concrete-type-inference'), 59 hasOption(options, '--enable-concrete-type-inference'),
58 disableTypeInferenceFlag: 60 disableTypeInferenceFlag:
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 } 341 }
340 342
341 void diagnoseCrashInUserCode(String message, exception, stackTrace) { 343 void diagnoseCrashInUserCode(String message, exception, stackTrace) {
342 hasCrashed = true; 344 hasCrashed = true;
343 print('$message: ${tryToString(exception)}'); 345 print('$message: ${tryToString(exception)}');
344 print(tryToString(stackTrace)); 346 print(tryToString(stackTrace));
345 } 347 }
346 348
347 fromEnvironment(String name) => environment[name]; 349 fromEnvironment(String name) => environment[name];
348 } 350 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698