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 1362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1373 MessageKind.IMPORT_EXPERIMENTAL_MIRRORS, | 1373 MessageKind.IMPORT_EXPERIMENTAL_MIRRORS, |
1374 {'importChain': importChains.join( | 1374 {'importChain': importChains.join( |
1375 MessageKind.IMPORT_EXPERIMENTAL_MIRRORS_PADDING)}); | 1375 MessageKind.IMPORT_EXPERIMENTAL_MIRRORS_PADDING)}); |
1376 } | 1376 } |
1377 } | 1377 } |
1378 | 1378 |
1379 functionClass.ensureResolved(this); | 1379 functionClass.ensureResolved(this); |
1380 functionApplyMethod = functionClass.lookupLocalMember('apply'); | 1380 functionApplyMethod = functionClass.lookupLocalMember('apply'); |
1381 | 1381 |
1382 proxyConstant = | 1382 proxyConstant = |
1383 resolver.constantCompiler.compileConstant( | 1383 constants.getConstantValue( |
1384 coreLibrary.find('proxy')).value; | 1384 resolver.constantCompiler.compileConstant( |
| 1385 coreLibrary.find('proxy'))); |
1385 | 1386 |
1386 if (preserveComments) { | 1387 if (preserveComments) { |
1387 return libraryLoader.loadLibrary(DART_MIRRORS) | 1388 return libraryLoader.loadLibrary(DART_MIRRORS) |
1388 .then((LibraryElement libraryElement) { | 1389 .then((LibraryElement libraryElement) { |
1389 documentClass = libraryElement.find('Comment'); | 1390 documentClass = libraryElement.find('Comment'); |
1390 }); | 1391 }); |
1391 } | 1392 } |
1392 }).then((_) => backend.onLibrariesLoaded(loadedLibraries)); | 1393 }).then((_) => backend.onLibrariesLoaded(loadedLibraries)); |
1393 } | 1394 } |
1394 | 1395 |
(...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2472 return futureClass.computeType(compiler).createInstantiation([elementType]); | 2473 return futureClass.computeType(compiler).createInstantiation([elementType]); |
2473 } | 2474 } |
2474 | 2475 |
2475 @override | 2476 @override |
2476 InterfaceType streamType([DartType elementType = const DynamicType()]) { | 2477 InterfaceType streamType([DartType elementType = const DynamicType()]) { |
2477 return streamClass.computeType(compiler).createInstantiation([elementType]); | 2478 return streamClass.computeType(compiler).createInstantiation([elementType]); |
2478 } | 2479 } |
2479 } | 2480 } |
2480 | 2481 |
2481 typedef void InternalErrorFunction(Spannable location, String message); | 2482 typedef void InternalErrorFunction(Spannable location, String message); |
OLD | NEW |