| 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 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1052 closureMapping.ClosureNamer closureNamer; | 1052 closureMapping.ClosureNamer closureNamer; |
| 1053 if (emitJavaScript) { | 1053 if (emitJavaScript) { |
| 1054 js_backend.JavaScriptBackend jsBackend = | 1054 js_backend.JavaScriptBackend jsBackend = |
| 1055 new js_backend.JavaScriptBackend(this, generateSourceMap); | 1055 new js_backend.JavaScriptBackend(this, generateSourceMap); |
| 1056 closureNamer = jsBackend.namer; | 1056 closureNamer = jsBackend.namer; |
| 1057 backend = jsBackend; | 1057 backend = jsBackend; |
| 1058 } else { | 1058 } else { |
| 1059 closureNamer = new closureMapping.ClosureNamer(); | 1059 closureNamer = new closureMapping.ClosureNamer(); |
| 1060 backend = new dart_backend.DartBackend(this, strips, | 1060 backend = new dart_backend.DartBackend(this, strips, |
| 1061 multiFile: dart2dartMultiFile); | 1061 multiFile: dart2dartMultiFile); |
| 1062 if (dumpInfo) { |
| 1063 throw new ArgumentError('--dump-info is not supported for dart2dart.'); |
| 1064 } |
| 1062 } | 1065 } |
| 1063 | 1066 |
| 1064 tasks = [ | 1067 tasks = [ |
| 1065 libraryLoader = new LibraryLoaderTask(this), | 1068 libraryLoader = new LibraryLoaderTask(this), |
| 1066 scanner = new ScannerTask(this), | 1069 scanner = new ScannerTask(this), |
| 1067 dietParser = new DietParserTask(this), | 1070 dietParser = new DietParserTask(this), |
| 1068 parser = new ParserTask(this), | 1071 parser = new ParserTask(this), |
| 1069 patchParser = new PatchParserTask(this), | 1072 patchParser = new PatchParserTask(this), |
| 1070 resolver = new ResolverTask(this, backend.constantCompilerTask), | 1073 resolver = new ResolverTask(this, backend.constantCompilerTask), |
| 1071 closureToClassMapper = new closureMapping.ClosureTask(this, closureNamer), | 1074 closureToClassMapper = new closureMapping.ClosureTask(this, closureNamer), |
| (...skipping 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2417 return futureClass.computeType(compiler).createInstantiation([elementType]); | 2420 return futureClass.computeType(compiler).createInstantiation([elementType]); |
| 2418 } | 2421 } |
| 2419 | 2422 |
| 2420 @override | 2423 @override |
| 2421 InterfaceType streamType([DartType elementType = const DynamicType()]) { | 2424 InterfaceType streamType([DartType elementType = const DynamicType()]) { |
| 2422 return streamClass.computeType(compiler).createInstantiation([elementType]); | 2425 return streamClass.computeType(compiler).createInstantiation([elementType]); |
| 2423 } | 2426 } |
| 2424 } | 2427 } |
| 2425 | 2428 |
| 2426 typedef void InternalErrorFunction(Spannable location, String message); | 2429 typedef void InternalErrorFunction(Spannable location, String message); |
| OLD | NEW |