| 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 'common/names.dart' show | 7 import 'common/names.dart' show |
| 8 Identifiers; | 8 Identifiers; |
| 9 import 'common/resolution.dart' show | 9 import 'common/resolution.dart' show |
| 10 Parsing, | 10 Parsing, |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 class SynthesizedCallMethodElementX extends BaseFunctionElementX | 311 class SynthesizedCallMethodElementX extends BaseFunctionElementX |
| 312 implements MethodElement { | 312 implements MethodElement { |
| 313 final LocalFunctionElement expression; | 313 final LocalFunctionElement expression; |
| 314 | 314 |
| 315 SynthesizedCallMethodElementX(String name, | 315 SynthesizedCallMethodElementX(String name, |
| 316 LocalFunctionElementX other, | 316 LocalFunctionElementX other, |
| 317 ClosureClassElement enclosing) | 317 ClosureClassElement enclosing) |
| 318 : expression = other, | 318 : expression = other, |
| 319 super(name, other.kind, other.modifiers, enclosing) { | 319 super(name, other.kind, other.modifiers, enclosing) { |
| 320 asyncMarker = other.asyncMarker; | 320 asyncMarker = other.asyncMarker; |
| 321 functionSignatureCache = other.functionSignature; | 321 functionSignature = other.functionSignature; |
| 322 } | 322 } |
| 323 | 323 |
| 324 /// Use [closureClass] instead. | 324 /// Use [closureClass] instead. |
| 325 @deprecated | 325 @deprecated |
| 326 get enclosingElement => super.enclosingElement; | 326 get enclosingElement => super.enclosingElement; |
| 327 | 327 |
| 328 ClosureClassElement get closureClass => super.enclosingElement; | 328 ClosureClassElement get closureClass => super.enclosingElement; |
| 329 | 329 |
| 330 MemberElement get memberContext { | 330 MemberElement get memberContext { |
| 331 return closureClass.methodElement.memberContext; | 331 return closureClass.methodElement.memberContext; |
| (...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1125 | 1125 |
| 1126 String get name => typeVariable.name; | 1126 String get name => typeVariable.name; |
| 1127 | 1127 |
| 1128 int get hashCode => typeVariable.hashCode; | 1128 int get hashCode => typeVariable.hashCode; |
| 1129 | 1129 |
| 1130 bool operator ==(other) { | 1130 bool operator ==(other) { |
| 1131 if (other is! TypeVariableLocal) return false; | 1131 if (other is! TypeVariableLocal) return false; |
| 1132 return typeVariable == other.typeVariable; | 1132 return typeVariable == other.typeVariable; |
| 1133 } | 1133 } |
| 1134 } | 1134 } |
| OLD | NEW |