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 library dart2js.compiler_base; | 5 library dart2js.compiler_base; |
6 | 6 |
7 import 'dart:async' show Future; | 7 import 'dart:async' show Future; |
8 | 8 |
9 import '../compiler_new.dart' as api; | 9 import '../compiler_new.dart' as api; |
10 import 'closure.dart' as closureMapping show ClosureTask; | 10 import 'closure.dart' as closureMapping show ClosureTask; |
(...skipping 1816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1827 return cls.thisType; | 1827 return cls.thisType; |
1828 } | 1828 } |
1829 | 1829 |
1830 @override | 1830 @override |
1831 ResolutionInterfaceType getRawType(ClassElement cls) { | 1831 ResolutionInterfaceType getRawType(ClassElement cls) { |
1832 cls.ensureResolved(_resolution); | 1832 cls.ensureResolved(_resolution); |
1833 return cls.rawType; | 1833 return cls.rawType; |
1834 } | 1834 } |
1835 | 1835 |
1836 @override | 1836 @override |
| 1837 ResolutionDartType getTypeVariableBound(TypeVariableElement typeVariable) { |
| 1838 return typeVariable.bound; |
| 1839 } |
| 1840 |
| 1841 @override |
1837 ResolutionInterfaceType createInterfaceType( | 1842 ResolutionInterfaceType createInterfaceType( |
1838 ClassElement cls, List<ResolutionDartType> typeArguments) { | 1843 ClassElement cls, List<ResolutionDartType> typeArguments) { |
1839 cls.ensureResolved(_resolution); | 1844 cls.ensureResolved(_resolution); |
1840 return cls.thisType.createInstantiation(typeArguments); | 1845 return cls.thisType.createInstantiation(typeArguments); |
1841 } | 1846 } |
1842 | 1847 |
1843 @override | 1848 @override |
1844 bool isSubtype(ResolutionDartType a, ResolutionDartType b) { | 1849 bool isSubtype(ResolutionDartType a, ResolutionDartType b) { |
1845 return _compiler.types.isSubtype(a, b); | 1850 return _compiler.types.isSubtype(a, b); |
1846 } | 1851 } |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1988 bool isDeferredLoadLibraryGetter(MemberElement member) { | 1993 bool isDeferredLoadLibraryGetter(MemberElement member) { |
1989 return member.isDeferredLoaderGetter; | 1994 return member.isDeferredLoaderGetter; |
1990 } | 1995 } |
1991 | 1996 |
1992 @override | 1997 @override |
1993 ResolutionFunctionType getFunctionType(MethodElement method) { | 1998 ResolutionFunctionType getFunctionType(MethodElement method) { |
1994 method.computeType(_resolution); | 1999 method.computeType(_resolution); |
1995 return method.type; | 2000 return method.type; |
1996 } | 2001 } |
1997 } | 2002 } |
OLD | NEW |