OLD | NEW |
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 dart2js.compiler_base; | 5 library dart2js.compiler_base; |
6 | 6 |
7 import 'dart:async' show | 7 import 'dart:async' show |
8 EventSink, | 8 EventSink, |
9 Future; | 9 Future; |
10 | 10 |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 this.preserveComments: false, | 447 this.preserveComments: false, |
448 this.useCpsIr: false, | 448 this.useCpsIr: false, |
449 this.useFrequencyNamer: false, | 449 this.useFrequencyNamer: false, |
450 this.verbose: false, | 450 this.verbose: false, |
451 this.sourceMapUri: null, | 451 this.sourceMapUri: null, |
452 this.outputUri: null, | 452 this.outputUri: null, |
453 this.buildId: UNDETERMINED_BUILD_ID, | 453 this.buildId: UNDETERMINED_BUILD_ID, |
454 this.deferredMapUri: null, | 454 this.deferredMapUri: null, |
455 this.dumpInfo: false, | 455 this.dumpInfo: false, |
456 bool useStartupEmitter: false, | 456 bool useStartupEmitter: false, |
457 bool enableConditionalDirectives: false, | |
458 this.useContentSecurityPolicy: false, | 457 this.useContentSecurityPolicy: false, |
459 bool hasIncrementalSupport: false, | 458 bool hasIncrementalSupport: false, |
460 this.enableExperimentalMirrors: false, | 459 this.enableExperimentalMirrors: false, |
461 this.enableAssertMessage: false, | 460 this.enableAssertMessage: false, |
462 this.allowNativeExtensions: false, | 461 this.allowNativeExtensions: false, |
463 this.generateCodeWithCompileTimeErrors: false, | 462 this.generateCodeWithCompileTimeErrors: false, |
464 this.testMode: false, | 463 this.testMode: false, |
465 DiagnosticOptions diagnosticOptions, | 464 DiagnosticOptions diagnosticOptions, |
466 api.CompilerOutput outputProvider, | 465 api.CompilerOutput outputProvider, |
467 List<String> strips: const []}) | 466 List<String> strips: const []}) |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 multiFile: dart2dartMultiFile); | 508 multiFile: dart2dartMultiFile); |
510 if (dumpInfo) { | 509 if (dumpInfo) { |
511 throw new ArgumentError('--dump-info is not supported for dart2dart.'); | 510 throw new ArgumentError('--dump-info is not supported for dart2dart.'); |
512 } | 511 } |
513 } | 512 } |
514 | 513 |
515 tasks = [ | 514 tasks = [ |
516 libraryLoader = new LibraryLoaderTask(this), | 515 libraryLoader = new LibraryLoaderTask(this), |
517 serialization = new SerializationTask(this), | 516 serialization = new SerializationTask(this), |
518 scanner = new ScannerTask(this), | 517 scanner = new ScannerTask(this), |
519 dietParser = new DietParserTask( | 518 dietParser = new DietParserTask(this), |
520 this, enableConditionalDirectives: enableConditionalDirectives), | 519 parser = new ParserTask(this), |
521 parser = new ParserTask( | 520 patchParser = new PatchParserTask(this), |
522 this, enableConditionalDirectives: enableConditionalDirectives), | |
523 patchParser = new PatchParserTask( | |
524 this, enableConditionalDirectives: enableConditionalDirectives), | |
525 resolver = new ResolverTask(this, backend.constantCompilerTask), | 521 resolver = new ResolverTask(this, backend.constantCompilerTask), |
526 closureToClassMapper = new closureMapping.ClosureTask(this), | 522 closureToClassMapper = new closureMapping.ClosureTask(this), |
527 checker = new TypeCheckerTask(this), | 523 checker = new TypeCheckerTask(this), |
528 typesTask = new ti.TypesTask(this), | 524 typesTask = new ti.TypesTask(this), |
529 constants = backend.constantCompilerTask, | 525 constants = backend.constantCompilerTask, |
530 deferredLoadTask = new DeferredLoadTask(this), | 526 deferredLoadTask = new DeferredLoadTask(this), |
531 mirrorUsageAnalyzerTask = new MirrorUsageAnalyzerTask(this), | 527 mirrorUsageAnalyzerTask = new MirrorUsageAnalyzerTask(this), |
532 enqueuer = new EnqueueTask(this), | 528 enqueuer = new EnqueueTask(this), |
533 dumpInfoTask = new DumpInfoTask(this), | 529 dumpInfoTask = new DumpInfoTask(this), |
534 reuseLibraryTask = new GenericTask('Reuse library', this), | 530 reuseLibraryTask = new GenericTask('Reuse library', this), |
(...skipping 1563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2098 if (_otherDependencies == null) { | 2094 if (_otherDependencies == null) { |
2099 _otherDependencies = new Setlet<Element>(); | 2095 _otherDependencies = new Setlet<Element>(); |
2100 } | 2096 } |
2101 _otherDependencies.add(element.implementation); | 2097 _otherDependencies.add(element.implementation); |
2102 } | 2098 } |
2103 | 2099 |
2104 Iterable<Element> get otherDependencies { | 2100 Iterable<Element> get otherDependencies { |
2105 return _otherDependencies != null ? _otherDependencies : const <Element>[]; | 2101 return _otherDependencies != null ? _otherDependencies : const <Element>[]; |
2106 } | 2102 } |
2107 } | 2103 } |
OLD | NEW |