| 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 part of dart2js; | 5 part of dart2js; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * If true, print a warning for each method that was resolved, but not | 8 * If true, print a warning for each method that was resolved, but not |
| 9 * compiled. | 9 * compiled. |
| 10 */ | 10 */ |
| (...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 909 | 909 |
| 910 Compiler({this.enableTypeAssertions: false, | 910 Compiler({this.enableTypeAssertions: false, |
| 911 this.enableUserAssertions: false, | 911 this.enableUserAssertions: false, |
| 912 this.trustTypeAnnotations: false, | 912 this.trustTypeAnnotations: false, |
| 913 this.enableConcreteTypeInference: false, | 913 this.enableConcreteTypeInference: false, |
| 914 bool disableTypeInferenceFlag: false, | 914 bool disableTypeInferenceFlag: false, |
| 915 this.maxConcreteTypeSize: 5, | 915 this.maxConcreteTypeSize: 5, |
| 916 this.enableMinification: false, | 916 this.enableMinification: false, |
| 917 this.enableNativeLiveTypeAnalysis: false, | 917 this.enableNativeLiveTypeAnalysis: false, |
| 918 bool emitJavaScript: true, | 918 bool emitJavaScript: true, |
| 919 bool dart2dartMultiFile: false, |
| 919 bool generateSourceMap: true, | 920 bool generateSourceMap: true, |
| 920 bool analyzeAllFlag: false, | 921 bool analyzeAllFlag: false, |
| 921 bool analyzeOnly: false, | 922 bool analyzeOnly: false, |
| 922 this.analyzeMain: false, | 923 this.analyzeMain: false, |
| 923 bool analyzeSignaturesOnly: false, | 924 bool analyzeSignaturesOnly: false, |
| 924 this.preserveComments: false, | 925 this.preserveComments: false, |
| 925 this.verbose: false, | 926 this.verbose: false, |
| 926 this.sourceMapUri: null, | 927 this.sourceMapUri: null, |
| 927 this.outputUri: null, | 928 this.outputUri: null, |
| 928 this.buildId: UNDETERMINED_BUILD_ID, | 929 this.buildId: UNDETERMINED_BUILD_ID, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 955 new CodegenRegistry(this, new TreeElementMapping(null)); | 956 new CodegenRegistry(this, new TreeElementMapping(null)); |
| 956 | 957 |
| 957 closureMapping.ClosureNamer closureNamer; | 958 closureMapping.ClosureNamer closureNamer; |
| 958 if (emitJavaScript) { | 959 if (emitJavaScript) { |
| 959 js_backend.JavaScriptBackend jsBackend = | 960 js_backend.JavaScriptBackend jsBackend = |
| 960 new js_backend.JavaScriptBackend(this, generateSourceMap); | 961 new js_backend.JavaScriptBackend(this, generateSourceMap); |
| 961 closureNamer = jsBackend.namer; | 962 closureNamer = jsBackend.namer; |
| 962 backend = jsBackend; | 963 backend = jsBackend; |
| 963 } else { | 964 } else { |
| 964 closureNamer = new closureMapping.ClosureNamer(); | 965 closureNamer = new closureMapping.ClosureNamer(); |
| 965 backend = new dart_backend.DartBackend(this, strips); | 966 backend = new dart_backend.DartBackend(this, strips, |
| 967 multiFile: dart2dartMultiFile); |
| 966 } | 968 } |
| 967 | 969 |
| 968 // No-op in production mode. | 970 // No-op in production mode. |
| 969 validator = new TreeValidatorTask(this); | 971 validator = new TreeValidatorTask(this); |
| 970 | 972 |
| 971 tasks = [ | 973 tasks = [ |
| 972 libraryLoader = new LibraryLoaderTask(this), | 974 libraryLoader = new LibraryLoaderTask(this), |
| 973 scanner = new ScannerTask(this), | 975 scanner = new ScannerTask(this), |
| 974 dietParser = new DietParserTask(this), | 976 dietParser = new DietParserTask(this), |
| 975 parser = new ParserTask(this), | 977 parser = new ParserTask(this), |
| (...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2082 static NullSink outputProvider(String name, String extension) { | 2084 static NullSink outputProvider(String name, String extension) { |
| 2083 return new NullSink('$name.$extension'); | 2085 return new NullSink('$name.$extension'); |
| 2084 } | 2086 } |
| 2085 } | 2087 } |
| 2086 | 2088 |
| 2087 /// Information about suppressed warnings and hints for a given library. | 2089 /// Information about suppressed warnings and hints for a given library. |
| 2088 class SuppressionInfo { | 2090 class SuppressionInfo { |
| 2089 int warnings = 0; | 2091 int warnings = 0; |
| 2090 int hints = 0; | 2092 int hints = 0; |
| 2091 } | 2093 } |
| OLD | NEW |