| 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 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |