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 closureToClassMapper; | 5 library closureToClassMapper; |
6 | 6 |
7 import 'constants/expressions.dart'; | 7 import 'constants/expressions.dart'; |
8 import 'dart2jslib.dart'; | 8 import 'dart2jslib.dart'; |
9 import 'dart_types.dart'; | 9 import 'dart_types.dart'; |
10 import 'elements/elements.dart'; | 10 import 'elements/elements.dart'; |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 | 297 |
298 /// Call method of a closure class. | 298 /// Call method of a closure class. |
299 class SynthesizedCallMethodElementX extends BaseFunctionElementX | 299 class SynthesizedCallMethodElementX extends BaseFunctionElementX |
300 implements MethodElement { | 300 implements MethodElement { |
301 final LocalFunctionElement expression; | 301 final LocalFunctionElement expression; |
302 | 302 |
303 SynthesizedCallMethodElementX(String name, | 303 SynthesizedCallMethodElementX(String name, |
304 LocalFunctionElementX other, | 304 LocalFunctionElementX other, |
305 ClosureClassElement enclosing) | 305 ClosureClassElement enclosing) |
306 : expression = other, | 306 : expression = other, |
307 super(name, other.kind, other.modifiers, enclosing, false) { | 307 super(name, other.kind, other.modifiers, enclosing) { |
308 asyncMarker = other.asyncMarker; | 308 asyncMarker = other.asyncMarker; |
309 functionSignatureCache = other.functionSignature; | 309 functionSignatureCache = other.functionSignature; |
310 } | 310 } |
311 | 311 |
312 /// Use [closureClass] instead. | 312 /// Use [closureClass] instead. |
313 @deprecated | 313 @deprecated |
314 get enclosingElement => super.enclosingElement; | 314 get enclosingElement => super.enclosingElement; |
315 | 315 |
316 ClosureClassElement get closureClass => super.enclosingElement; | 316 ClosureClassElement get closureClass => super.enclosingElement; |
317 | 317 |
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1099 | 1099 |
1100 String get name => typeVariable.name; | 1100 String get name => typeVariable.name; |
1101 | 1101 |
1102 int get hashCode => typeVariable.hashCode; | 1102 int get hashCode => typeVariable.hashCode; |
1103 | 1103 |
1104 bool operator ==(other) { | 1104 bool operator ==(other) { |
1105 if (other is! TypeVariableLocal) return false; | 1105 if (other is! TypeVariableLocal) return false; |
1106 return typeVariable == other.typeVariable; | 1106 return typeVariable == other.typeVariable; |
1107 } | 1107 } |
1108 } | 1108 } |
OLD | NEW |