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

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

Issue 21242002: Retain elements a finer granularity than library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 7 years, 4 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
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 strips: extractCsvOption(options, '--force-strip='), 51 strips: extractCsvOption(options, '--force-strip='),
52 enableConcreteTypeInference: 52 enableConcreteTypeInference:
53 hasOption(options, '--enable-concrete-type-inference'), 53 hasOption(options, '--enable-concrete-type-inference'),
54 disableTypeInferenceFlag: 54 disableTypeInferenceFlag:
55 hasOption(options, '--disable-type-inference'), 55 hasOption(options, '--disable-type-inference'),
56 preserveComments: hasOption(options, '--preserve-comments'), 56 preserveComments: hasOption(options, '--preserve-comments'),
57 verbose: hasOption(options, '--verbose'), 57 verbose: hasOption(options, '--verbose'),
58 sourceMapUri: extractSourceMapUri(options), 58 sourceMapUri: extractSourceMapUri(options),
59 globalJsName: extractStringOption( 59 globalJsName: extractStringOption(
60 options, '--global-js-name=', r'$'), 60 options, '--global-js-name=', r'$'),
61 terseDiagnostics: hasOption(options, '--terse'),
61 buildId: extractStringOption( 62 buildId: extractStringOption(
62 options, '--build-id=', 63 options, '--build-id=',
63 "build number could not be determined")) { 64 "build number could not be determined")) {
64 if (!libraryRoot.path.endsWith("/")) { 65 if (!libraryRoot.path.endsWith("/")) {
65 throw new ArgumentError("libraryRoot must end with a /"); 66 throw new ArgumentError("libraryRoot must end with a /");
66 } 67 }
67 if (packageRoot != null && !packageRoot.path.endsWith("/")) { 68 if (packageRoot != null && !packageRoot.path.endsWith("/")) {
68 throw new ArgumentError("packageRoot must end with a /"); 69 throw new ArgumentError("packageRoot must end with a /");
69 } 70 }
70 } 71 }
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 handler(translateUri(span.uri, null), span.begin, span.end, 297 handler(translateUri(span.uri, null), span.begin, span.end,
297 message, kind); 298 message, kind);
298 } 299 }
299 } 300 }
300 301
301 bool get isMockCompilation { 302 bool get isMockCompilation {
302 return mockableLibraryUsed 303 return mockableLibraryUsed
303 && (options.indexOf('--allow-mock-compilation') != -1); 304 && (options.indexOf('--allow-mock-compilation') != -1);
304 } 305 }
305 } 306 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698