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 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2102 static NullSink outputProvider(String name, String extension) { | 2104 static NullSink outputProvider(String name, String extension) { |
2103 return new NullSink('$name.$extension'); | 2105 return new NullSink('$name.$extension'); |
2104 } | 2106 } |
2105 } | 2107 } |
2106 | 2108 |
2107 /// Information about suppressed warnings and hints for a given library. | 2109 /// Information about suppressed warnings and hints for a given library. |
2108 class SuppressionInfo { | 2110 class SuppressionInfo { |
2109 int warnings = 0; | 2111 int warnings = 0; |
2110 int hints = 0; | 2112 int hints = 0; |
2111 } | 2113 } |
OLD | NEW |