| 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 1880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1891 } | 1891 } |
| 1892 return constructor?.declaration; | 1892 return constructor?.declaration; |
| 1893 } | 1893 } |
| 1894 | 1894 |
| 1895 @override | 1895 @override |
| 1896 void forEachClassMember( | 1896 void forEachClassMember( |
| 1897 ClassElement cls, void f(ClassElement declarer, MemberElement member)) { | 1897 ClassElement cls, void f(ClassElement declarer, MemberElement member)) { |
| 1898 cls.ensureResolved(_resolution); | 1898 cls.ensureResolved(_resolution); |
| 1899 cls.forEachMember((ClassElement declarer, MemberElement member) { | 1899 cls.forEachMember((ClassElement declarer, MemberElement member) { |
| 1900 if (member.isSynthesized) return; | 1900 if (member.isSynthesized) return; |
| 1901 if (member.isMalformed) return; |
| 1901 f(declarer, member); | 1902 f(declarer, member); |
| 1902 }, includeSuperAndInjectedMembers: true); | 1903 }, includeSuperAndInjectedMembers: true); |
| 1903 } | 1904 } |
| 1904 | 1905 |
| 1905 @override | 1906 @override |
| 1906 ClassEntity getSuperClass(ClassElement cls) => cls.superclass; | 1907 ClassEntity getSuperClass(ClassElement cls) => cls.superclass; |
| 1907 | 1908 |
| 1908 @override | 1909 @override |
| 1909 void forEachSupertype( | 1910 void forEachSupertype( |
| 1910 ClassElement cls, void f(ResolutionInterfaceType supertype)) { | 1911 ClassElement cls, void f(ResolutionInterfaceType supertype)) { |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2004 ResolutionFunctionType getLocalFunctionType(LocalFunctionElement function) { | 2005 ResolutionFunctionType getLocalFunctionType(LocalFunctionElement function) { |
| 2005 return function.type; | 2006 return function.type; |
| 2006 } | 2007 } |
| 2007 | 2008 |
| 2008 @override | 2009 @override |
| 2009 ResolutionDartType getUnaliasedType(ResolutionDartType type) { | 2010 ResolutionDartType getUnaliasedType(ResolutionDartType type) { |
| 2010 type.computeUnaliased(_resolution); | 2011 type.computeUnaliased(_resolution); |
| 2011 return type.unaliased; | 2012 return type.unaliased; |
| 2012 } | 2013 } |
| 2013 } | 2014 } |
| OLD | NEW |