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

Side by Side Diff: pkg/compiler/lib/src/resolution/access_semantics.dart

Issue 1120633002: Refactor index operator in SimpleTypeInferrer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix bug. 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 // TODO(johnniwinther): Temporarily copied from analyzer2dart. Merge when 5 // TODO(johnniwinther): Temporarily copied from analyzer2dart. Merge when
6 // we shared code with the analyzer and this semantic visitor is complete. 6 // we shared code with the analyzer and this semantic visitor is complete.
7 7
8 /** 8 /**
9 * Code for classifying the semantics of identifiers appearing in a Dart file. 9 * Code for classifying the semantics of identifiers appearing in a Dart file.
10 */ 10 */
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 SUPER_FIELD_FIELD, 136 SUPER_FIELD_FIELD,
137 /// Read from a superclass field and write to a superclass setter. 137 /// Read from a superclass field and write to a superclass setter.
138 SUPER_FIELD_SETTER, 138 SUPER_FIELD_SETTER,
139 /// Read from a superclass getter and write to a superclass setter. 139 /// Read from a superclass getter and write to a superclass setter.
140 SUPER_GETTER_SETTER, 140 SUPER_GETTER_SETTER,
141 /// Read from a superclass method (closurize) and write to a superclass 141 /// Read from a superclass method (closurize) and write to a superclass
142 /// setter. 142 /// setter.
143 SUPER_METHOD_SETTER, 143 SUPER_METHOD_SETTER,
144 /// Read from a superclass getter and write to a superclass field. 144 /// Read from a superclass getter and write to a superclass field.
145 SUPER_GETTER_FIELD, 145 SUPER_GETTER_FIELD,
146
147 /// Read from a superclass where the getter (and maybe setter) is unresolved.
148 SUPER_UNRESOLVED_GETTER,
karlklose 2015/05/11 10:38:55 'UNRESOLVED_SUPER_GETTER'?
Johnni Winther 2015/05/11 13:04:28 Done.
149 /// Read from a superclass getter and write to an unresolved setter.
150 SUPER_UNRESOLVED_SETTER,
146 } 151 }
147 152
148 /** 153 /**
149 * Data structure used to classify the semantics of a property access or method 154 * Data structure used to classify the semantics of a property access or method
150 * or function invocation. 155 * or function invocation.
151 */ 156 */
152 class AccessSemantics { 157 class AccessSemantics {
153 /** 158 /**
154 * The kind of access. 159 * The kind of access.
155 */ 160 */
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 449
445 RedirectingFactoryConstructorAccessSemantics( 450 RedirectingFactoryConstructorAccessSemantics(
446 ConstructorAccessKind kind, 451 ConstructorAccessKind kind,
447 Element element, 452 Element element,
448 DartType type, 453 DartType type,
449 this.effectiveTargetSemantics) 454 this.effectiveTargetSemantics)
450 : super(kind, element, type); 455 : super(kind, element, type);
451 } 456 }
452 457
453 458
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698