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

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

Issue 12045064: Revert "Add --analyze-only flag to dart2js" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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:uri'; 7 import 'dart:uri';
8 import 'dart:async'; 8 import 'dart:async';
9 9
10 import '../compiler.dart' as api; 10 import '../compiler.dart' as api;
(...skipping 18 matching lines...) Expand all
29 super( 29 super(
30 tracer: new ssa.HTracer(), 30 tracer: new ssa.HTracer(),
31 enableTypeAssertions: hasOption(options, '--enable-checked-mode'), 31 enableTypeAssertions: hasOption(options, '--enable-checked-mode'),
32 enableUserAssertions: hasOption(options, '--enable-checked-mode'), 32 enableUserAssertions: hasOption(options, '--enable-checked-mode'),
33 enableMinification: hasOption(options, '--minify'), 33 enableMinification: hasOption(options, '--minify'),
34 enableNativeLiveTypeAnalysis: 34 enableNativeLiveTypeAnalysis:
35 !hasOption(options, '--disable-native-live-type-analysis'), 35 !hasOption(options, '--disable-native-live-type-analysis'),
36 emitJavaScript: !hasOption(options, '--output-type=dart'), 36 emitJavaScript: !hasOption(options, '--output-type=dart'),
37 disallowUnsafeEval: hasOption(options, '--disallow-unsafe-eval'), 37 disallowUnsafeEval: hasOption(options, '--disallow-unsafe-eval'),
38 analyzeAll: hasOption(options, '--analyze-all'), 38 analyzeAll: hasOption(options, '--analyze-all'),
39 analyzeOnly: hasOption(options, '--analyze-only'),
40 rejectDeprecatedFeatures: 39 rejectDeprecatedFeatures:
41 hasOption(options, '--reject-deprecated-language-features'), 40 hasOption(options, '--reject-deprecated-language-features'),
42 checkDeprecationInSdk: 41 checkDeprecationInSdk:
43 hasOption(options, 42 hasOption(options,
44 '--report-sdk-use-of-deprecated-language-features'), 43 '--report-sdk-use-of-deprecated-language-features'),
45 strips: getStrips(options), 44 strips: getStrips(options),
46 enableConcreteTypeInference: 45 enableConcreteTypeInference:
47 hasOption(options, '--enable-concrete-type-inference'), 46 hasOption(options, '--enable-concrete-type-inference'),
48 preserveComments: hasOption(options, '--preserve-comments')) { 47 preserveComments: hasOption(options, '--preserve-comments')) {
49 if (!libraryRoot.path.endsWith("/")) { 48 if (!libraryRoot.path.endsWith("/")) {
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 handler(translateUri(span.uri, null), span.begin, span.end, 185 handler(translateUri(span.uri, null), span.begin, span.end,
187 message, kind); 186 message, kind);
188 } 187 }
189 } 188 }
190 189
191 bool get isMockCompilation { 190 bool get isMockCompilation {
192 return mockableLibraryUsed 191 return mockableLibraryUsed
193 && (options.indexOf('--allow-mock-compilation') != -1); 192 && (options.indexOf('--allow-mock-compilation') != -1);
194 } 193 }
195 } 194 }
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