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

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

Issue 2598983002: Introduce DartType super hierarchy based on Entity (Closed)
Patch Set: Updated cf. comments. Created 3 years, 11 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 | « pkg/compiler/lib/src/dart_types.dart ('k') | pkg/compiler/lib/src/elements/entities.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 elements; 5 library elements;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/resolution.dart' show Resolution; 8 import '../common/resolution.dart' show Resolution;
9 import '../compiler.dart' show Compiler; 9 import '../compiler.dart' show Compiler;
10 import '../constants/constructors.dart'; 10 import '../constants/constructors.dart';
(...skipping 1662 matching lines...) Expand 10 before | Expand all | Expand 10 after
1673 1673
1674 // TODO(kasperl): Try to get rid of these. 1674 // TODO(kasperl): Try to get rid of these.
1675 void set isBreakTarget(bool value); 1675 void set isBreakTarget(bool value);
1676 void set isContinueTarget(bool value); 1676 void set isContinueTarget(bool value);
1677 1677
1678 LabelDefinition addLabel(Label label, String labelName); 1678 LabelDefinition addLabel(Label label, String labelName);
1679 } 1679 }
1680 1680
1681 /// The [Element] for a type variable declaration on a generic class or typedef. 1681 /// The [Element] for a type variable declaration on a generic class or typedef.
1682 abstract class TypeVariableElement extends Element 1682 abstract class TypeVariableElement extends Element
1683 implements AstElement, TypedElement { 1683 implements AstElement, TypedElement, TypeVariableEntity {
1684 /// The name of this type variable, taking privacy into account. 1684 /// The name of this type variable, taking privacy into account.
1685 Name get memberName; 1685 Name get memberName;
1686 1686
1687 /// Use [typeDeclaration] instead. 1687 /// Use [typeDeclaration] instead.
1688 @deprecated 1688 @deprecated
1689 get enclosingElement; 1689 get enclosingElement;
1690 1690
1691 /// The class, typedef, function, method, or function typed parameter on 1691 /// The class, typedef, function, method, or function typed parameter on
1692 /// which this type variable is defined. 1692 /// which this type variable is defined.
1693 GenericElement get typeDeclaration; 1693 GenericElement get typeDeclaration;
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
1934 /// by a field. 1934 /// by a field.
1935 bool get isDeclaredByField; 1935 bool get isDeclaredByField;
1936 1936
1937 /// Returns `true` if this member is abstract. 1937 /// Returns `true` if this member is abstract.
1938 bool get isAbstract; 1938 bool get isAbstract;
1939 1939
1940 /// If abstract, [implementation] points to the overridden concrete member, 1940 /// If abstract, [implementation] points to the overridden concrete member,
1941 /// if any. Otherwise [implementation] points to the member itself. 1941 /// if any. Otherwise [implementation] points to the member itself.
1942 Member get implementation; 1942 Member get implementation;
1943 } 1943 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/dart_types.dart ('k') | pkg/compiler/lib/src/elements/entities.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698