| 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 ClassElement boolClass; | 226 ClassElement boolClass; |
| 227 ClassElement numClass; | 227 ClassElement numClass; |
| 228 ClassElement intClass; | 228 ClassElement intClass; |
| 229 ClassElement doubleClass; | 229 ClassElement doubleClass; |
| 230 ClassElement stringClass; | 230 ClassElement stringClass; |
| 231 ClassElement functionClass; | 231 ClassElement functionClass; |
| 232 ClassElement nullClass; | 232 ClassElement nullClass; |
| 233 ClassElement listClass; | 233 ClassElement listClass; |
| 234 ClassElement typeClass; | 234 ClassElement typeClass; |
| 235 ClassElement mapClass; | 235 ClassElement mapClass; |
| 236 ClassElement mapLiteralClass; |
| 236 ClassElement jsInvocationMirrorClass; | 237 ClassElement jsInvocationMirrorClass; |
| 237 /// Document class from dart:mirrors. | 238 /// Document class from dart:mirrors. |
| 238 ClassElement documentClass; | 239 ClassElement documentClass; |
| 239 Element assertMethod; | 240 Element assertMethod; |
| 240 Element identicalFunction; | 241 Element identicalFunction; |
| 241 Element functionApplyMethod; | 242 Element functionApplyMethod; |
| 242 Element invokeOnMethod; | 243 Element invokeOnMethod; |
| 243 Element createInvocationMirrorElement; | 244 Element createInvocationMirrorElement; |
| 244 | 245 |
| 245 Element get currentElement => _currentElement; | 246 Element get currentElement => _currentElement; |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 objectClass = lookupCoreClass('Object'); | 514 objectClass = lookupCoreClass('Object'); |
| 514 boolClass = lookupCoreClass('bool'); | 515 boolClass = lookupCoreClass('bool'); |
| 515 numClass = lookupCoreClass('num'); | 516 numClass = lookupCoreClass('num'); |
| 516 intClass = lookupCoreClass('int'); | 517 intClass = lookupCoreClass('int'); |
| 517 doubleClass = lookupCoreClass('double'); | 518 doubleClass = lookupCoreClass('double'); |
| 518 stringClass = lookupCoreClass('String'); | 519 stringClass = lookupCoreClass('String'); |
| 519 functionClass = lookupCoreClass('Function'); | 520 functionClass = lookupCoreClass('Function'); |
| 520 listClass = lookupCoreClass('List'); | 521 listClass = lookupCoreClass('List'); |
| 521 typeClass = lookupCoreClass('Type'); | 522 typeClass = lookupCoreClass('Type'); |
| 522 mapClass = lookupCoreClass('Map'); | 523 mapClass = lookupCoreClass('Map'); |
| 524 // TODO: find a proper way to get to the implementation class. |
| 525 mapLiteralClass = lookupCoreClass('LinkedHashMap'); |
| 523 if (!missingCoreClasses.isEmpty) { | 526 if (!missingCoreClasses.isEmpty) { |
| 524 internalErrorOnElement(coreLibrary, | 527 internalErrorOnElement(coreLibrary, |
| 525 'dart:core library does not contain required classes: ' | 528 'dart:core library does not contain required classes: ' |
| 526 '$missingCoreClasses'); | 529 '$missingCoreClasses'); |
| 527 } | 530 } |
| 528 | 531 |
| 529 final List missingHelperClasses = []; | 532 final List missingHelperClasses = []; |
| 530 ClassElement lookupHelperClass(String name) { | 533 ClassElement lookupHelperClass(String name) { |
| 531 ClassElement result = jsHelperLibrary.find(new SourceString(name)); | 534 ClassElement result = jsHelperLibrary.find(new SourceString(name)); |
| 532 if (result == null) { | 535 if (result == null) { |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1121 | 1124 |
| 1122 void close() {} | 1125 void close() {} |
| 1123 | 1126 |
| 1124 toString() => name; | 1127 toString() => name; |
| 1125 | 1128 |
| 1126 /// Convenience method for getting an [api.CompilerOutputProvider]. | 1129 /// Convenience method for getting an [api.CompilerOutputProvider]. |
| 1127 static NullSink outputProvider(String name, String extension) { | 1130 static NullSink outputProvider(String name, String extension) { |
| 1128 return new NullSink('$name.$extension'); | 1131 return new NullSink('$name.$extension'); |
| 1129 } | 1132 } |
| 1130 } | 1133 } |
| OLD | NEW |