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 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1123 implements FunctionTypedElement, TypedElement, AstElement { | 1123 implements FunctionTypedElement, TypedElement, AstElement { |
1124 /// Use [functionDeclaration] instead. | 1124 /// Use [functionDeclaration] instead. |
1125 @deprecated | 1125 @deprecated |
1126 get enclosingElement; | 1126 get enclosingElement; |
1127 | 1127 |
1128 /// The function, typedef or inline function-typed parameter on which | 1128 /// The function, typedef or inline function-typed parameter on which |
1129 /// this parameter is declared. | 1129 /// this parameter is declared. |
1130 FunctionTypedElement get functionDeclaration; | 1130 FunctionTypedElement get functionDeclaration; |
1131 | 1131 |
1132 VariableDefinitions get node; | 1132 VariableDefinitions get node; |
| 1133 |
| 1134 /// Whether the parameter is unnamed in a function type. |
| 1135 bool get isUnnamed; |
1133 } | 1136 } |
1134 | 1137 |
1135 /// A formal parameter of a function or constructor. | 1138 /// A formal parameter of a function or constructor. |
1136 /// | 1139 /// |
1137 /// Normal parameter that introduce a local variable are modeled by | 1140 /// Normal parameter that introduce a local variable are modeled by |
1138 /// [LocalParameterElement] whereas initializing formals, that is parameter of | 1141 /// [LocalParameterElement] whereas initializing formals, that is parameter of |
1139 /// the form `this.x`, are modeled by [InitializingFormalElement]. | 1142 /// the form `this.x`, are modeled by [InitializingFormalElement]. |
1140 abstract class ParameterElement extends Element | 1143 abstract class ParameterElement extends Element |
1141 implements VariableElement, FormalElement, LocalElement { | 1144 implements VariableElement, FormalElement, LocalElement { |
1142 /// Use [functionDeclaration] instead. | 1145 /// Use [functionDeclaration] instead. |
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1934 /// by a field. | 1937 /// by a field. |
1935 bool get isDeclaredByField; | 1938 bool get isDeclaredByField; |
1936 | 1939 |
1937 /// Returns `true` if this member is abstract. | 1940 /// Returns `true` if this member is abstract. |
1938 bool get isAbstract; | 1941 bool get isAbstract; |
1939 | 1942 |
1940 /// If abstract, [implementation] points to the overridden concrete member, | 1943 /// If abstract, [implementation] points to the overridden concrete member, |
1941 /// if any. Otherwise [implementation] points to the member itself. | 1944 /// if any. Otherwise [implementation] points to the member itself. |
1942 Member get implementation; | 1945 Member get implementation; |
1943 } | 1946 } |
OLD | NEW |