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 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
845 FunctionElement mirrorsUsedConstructor; | 845 FunctionElement mirrorsUsedConstructor; |
846 | 846 |
847 // Initialized when dart:mirrors is loaded. | 847 // Initialized when dart:mirrors is loaded. |
848 ClassElement deferredLibraryClass; | 848 ClassElement deferredLibraryClass; |
849 | 849 |
850 /// Document class from dart:mirrors. | 850 /// Document class from dart:mirrors. |
851 ClassElement documentClass; | 851 ClassElement documentClass; |
852 Element identicalFunction; | 852 Element identicalFunction; |
853 Element loadLibraryFunction; | 853 Element loadLibraryFunction; |
854 Element functionApplyMethod; | 854 Element functionApplyMethod; |
855 Element intEnvironment; | 855 |
856 Element boolEnvironment; | 856 /// The [int.fromEnvironment] constructor. |
857 Element stringEnvironment; | 857 ConstructorElement intEnvironment; |
| 858 |
| 859 /// The [bool.fromEnvironment] constructor. |
| 860 ConstructorElement boolEnvironment; |
| 861 |
| 862 /// The [String.fromEnvironment] constructor. |
| 863 ConstructorElement stringEnvironment; |
858 | 864 |
859 /// Tracks elements with compile-time errors. | 865 /// Tracks elements with compile-time errors. |
860 final Set<Element> elementsWithCompileTimeErrors = new Set<Element>(); | 866 final Set<Element> elementsWithCompileTimeErrors = new Set<Element>(); |
861 | 867 |
862 fromEnvironment(String name) => null; | 868 fromEnvironment(String name) => null; |
863 | 869 |
864 Element get currentElement => _currentElement; | 870 Element get currentElement => _currentElement; |
865 | 871 |
866 String tryToString(object) { | 872 String tryToString(object) { |
867 try { | 873 try { |
(...skipping 1565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2433 return futureClass.computeType(compiler).createInstantiation([elementType]); | 2439 return futureClass.computeType(compiler).createInstantiation([elementType]); |
2434 } | 2440 } |
2435 | 2441 |
2436 @override | 2442 @override |
2437 InterfaceType streamType([DartType elementType = const DynamicType()]) { | 2443 InterfaceType streamType([DartType elementType = const DynamicType()]) { |
2438 return streamClass.computeType(compiler).createInstantiation([elementType]); | 2444 return streamClass.computeType(compiler).createInstantiation([elementType]); |
2439 } | 2445 } |
2440 } | 2446 } |
2441 | 2447 |
2442 typedef void InternalErrorFunction(Spannable location, String message); | 2448 typedef void InternalErrorFunction(Spannable location, String message); |
OLD | NEW |