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

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

Issue 1867333002: Add kinds for serialization. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Rebased Created 4 years, 8 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/resolution/operators.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) 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 /** 5 /**
6 * Code for classifying the semantics of identifiers appearing in a Dart file. 6 * Code for classifying the semantics of identifiers appearing in a Dart file.
7 */ 7 */
8 library dart2js.access_semantics; 8 library dart2js.access_semantics;
9 9
10 import '../constants/expressions.dart'; 10 import '../constants/expressions.dart';
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 ConstantAccess.typedefTypeLiteral(this.constant) 284 ConstantAccess.typedefTypeLiteral(this.constant)
285 : super._(AccessKind.TYPEDEF_TYPE_LITERAL); 285 : super._(AccessKind.TYPEDEF_TYPE_LITERAL);
286 286
287 ConstantAccess.dynamicTypeLiteral(this.constant) 287 ConstantAccess.dynamicTypeLiteral(this.constant)
288 : super._(AccessKind.DYNAMIC_TYPE_LITERAL); 288 : super._(AccessKind.DYNAMIC_TYPE_LITERAL);
289 } 289 }
290 290
291 class StaticAccess extends AccessSemantics { 291 class StaticAccess extends AccessSemantics {
292 final Element element; 292 final Element element;
293 293
294 StaticAccess._(AccessKind kind, this.element) : super._(kind); 294 StaticAccess.internal(AccessKind kind, this.element) : super._(kind);
295 295
296 StaticAccess.superSetter(MethodElement this.element) 296 StaticAccess.superSetter(MethodElement this.element)
297 : super._(AccessKind.SUPER_SETTER); 297 : super._(AccessKind.SUPER_SETTER);
298 298
299 StaticAccess.superField(FieldElement this.element) 299 StaticAccess.superField(FieldElement this.element)
300 : super._(AccessKind.SUPER_FIELD); 300 : super._(AccessKind.SUPER_FIELD);
301 301
302 StaticAccess.superFinalField(FieldElement this.element) 302 StaticAccess.superFinalField(FieldElement this.element)
303 : super._(AccessKind.SUPER_FINAL_FIELD); 303 : super._(AccessKind.SUPER_FINAL_FIELD);
304 304
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 /// The invoked constructor. 476 /// The invoked constructor.
477 final Element element; 477 final Element element;
478 478
479 /// The type on which the constructor is invoked. 479 /// The type on which the constructor is invoked.
480 final DartType type; 480 final DartType type;
481 481
482 ConstructorAccessSemantics(this.kind, this.element, this.type); 482 ConstructorAccessSemantics(this.kind, this.element, this.type);
483 483
484 String toString() => 'ConstructorAccessSemantics($kind, $element, $type)'; 484 String toString() => 'ConstructorAccessSemantics($kind, $element, $type)';
485 } 485 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/resolution/operators.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698