Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: pkg/compiler/lib/src/closure.dart

Issue 1132783002: Add Accessor, Getter, and Setter elements. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/compiler/lib/src/dart2jslib.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/dart2jslib.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698