| 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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 this.useFrequencyNamer: false, | 513 this.useFrequencyNamer: false, |
| 514 this.verbose: false, | 514 this.verbose: false, |
| 515 this.sourceMapUri: null, | 515 this.sourceMapUri: null, |
| 516 this.outputUri: null, | 516 this.outputUri: null, |
| 517 this.buildId: UNDETERMINED_BUILD_ID, | 517 this.buildId: UNDETERMINED_BUILD_ID, |
| 518 this.terseDiagnostics: false, | 518 this.terseDiagnostics: false, |
| 519 this.deferredMapUri: null, | 519 this.deferredMapUri: null, |
| 520 this.dumpInfo: false, | 520 this.dumpInfo: false, |
| 521 this.showPackageWarnings: false, | 521 this.showPackageWarnings: false, |
| 522 bool useStartupEmitter: false, | 522 bool useStartupEmitter: false, |
| 523 bool enableConditionalDirectives: false, |
| 523 this.useContentSecurityPolicy: false, | 524 this.useContentSecurityPolicy: false, |
| 524 this.suppressWarnings: false, | 525 this.suppressWarnings: false, |
| 525 this.fatalWarnings: false, | 526 this.fatalWarnings: false, |
| 526 bool hasIncrementalSupport: false, | 527 bool hasIncrementalSupport: false, |
| 527 this.enableExperimentalMirrors: false, | 528 this.enableExperimentalMirrors: false, |
| 528 this.enableAssertMessage: false, | 529 this.enableAssertMessage: false, |
| 529 this.allowNativeExtensions: false, | 530 this.allowNativeExtensions: false, |
| 530 this.generateCodeWithCompileTimeErrors: false, | 531 this.generateCodeWithCompileTimeErrors: false, |
| 531 this.testMode: false, | 532 this.testMode: false, |
| 532 api.CompilerOutput outputProvider, | 533 api.CompilerOutput outputProvider, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 multiFile: dart2dartMultiFile); | 576 multiFile: dart2dartMultiFile); |
| 576 if (dumpInfo) { | 577 if (dumpInfo) { |
| 577 throw new ArgumentError('--dump-info is not supported for dart2dart.'); | 578 throw new ArgumentError('--dump-info is not supported for dart2dart.'); |
| 578 } | 579 } |
| 579 } | 580 } |
| 580 | 581 |
| 581 tasks = [ | 582 tasks = [ |
| 582 libraryLoader = new LibraryLoaderTask(this), | 583 libraryLoader = new LibraryLoaderTask(this), |
| 583 serialization = new SerializationTask(this), | 584 serialization = new SerializationTask(this), |
| 584 scanner = new ScannerTask(this), | 585 scanner = new ScannerTask(this), |
| 585 dietParser = new DietParserTask(this), | 586 dietParser = new DietParserTask( |
| 586 parser = new ParserTask(this), | 587 this, enableConditionalDirectives: enableConditionalDirectives), |
| 587 patchParser = new PatchParserTask(this), | 588 parser = new ParserTask( |
| 589 this, enableConditionalDirectives: enableConditionalDirectives), |
| 590 patchParser = new PatchParserTask( |
| 591 this, enableConditionalDirectives: enableConditionalDirectives), |
| 588 resolver = new ResolverTask(this, backend.constantCompilerTask), | 592 resolver = new ResolverTask(this, backend.constantCompilerTask), |
| 589 closureToClassMapper = new closureMapping.ClosureTask(this), | 593 closureToClassMapper = new closureMapping.ClosureTask(this), |
| 590 checker = new TypeCheckerTask(this), | 594 checker = new TypeCheckerTask(this), |
| 591 typesTask = new ti.TypesTask(this), | 595 typesTask = new ti.TypesTask(this), |
| 592 constants = backend.constantCompilerTask, | 596 constants = backend.constantCompilerTask, |
| 593 deferredLoadTask = new DeferredLoadTask(this), | 597 deferredLoadTask = new DeferredLoadTask(this), |
| 594 mirrorUsageAnalyzerTask = new MirrorUsageAnalyzerTask(this), | 598 mirrorUsageAnalyzerTask = new MirrorUsageAnalyzerTask(this), |
| 595 enqueuer = new EnqueueTask(this), | 599 enqueuer = new EnqueueTask(this), |
| 596 dumpInfoTask = new DumpInfoTask(this), | 600 dumpInfoTask = new DumpInfoTask(this), |
| 597 reuseLibraryTask = new GenericTask('Reuse library', this), | 601 reuseLibraryTask = new GenericTask('Reuse library', this), |
| (...skipping 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1930 | 1934 |
| 1931 @override | 1935 @override |
| 1932 void parsePatchClass(ClassElement cls) { | 1936 void parsePatchClass(ClassElement cls) { |
| 1933 compiler.patchParser.measure(() { | 1937 compiler.patchParser.measure(() { |
| 1934 if (cls.isPatch) { | 1938 if (cls.isPatch) { |
| 1935 compiler.patchParser.parsePatchClassNode(cls); | 1939 compiler.patchParser.parsePatchClassNode(cls); |
| 1936 } | 1940 } |
| 1937 }); | 1941 }); |
| 1938 } | 1942 } |
| 1939 } | 1943 } |
| OLD | NEW |