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 '../constants/constructors.dart'; | 9 import '../constants/constructors.dart'; |
10 import '../constants/expressions.dart'; | 10 import '../constants/expressions.dart'; |
(...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1202 implements FunctionTypedElement, TypedElement, AstElement { | 1202 implements FunctionTypedElement, TypedElement, AstElement { |
1203 /// Use [functionDeclaration] instead. | 1203 /// Use [functionDeclaration] instead. |
1204 @deprecated | 1204 @deprecated |
1205 get enclosingElement; | 1205 get enclosingElement; |
1206 | 1206 |
1207 /// The function, typedef or inline function-typed parameter on which | 1207 /// The function, typedef or inline function-typed parameter on which |
1208 /// this parameter is declared. | 1208 /// this parameter is declared. |
1209 FunctionTypedElement get functionDeclaration; | 1209 FunctionTypedElement get functionDeclaration; |
1210 | 1210 |
1211 VariableDefinitions get node; | 1211 VariableDefinitions get node; |
| 1212 |
| 1213 /// Whether the parameter is unnamed in a function type. |
| 1214 bool get isUnnamed; |
1212 } | 1215 } |
1213 | 1216 |
1214 /// A formal parameter of a function or constructor. | 1217 /// A formal parameter of a function or constructor. |
1215 /// | 1218 /// |
1216 /// Normal parameter that introduce a local variable are modeled by | 1219 /// Normal parameter that introduce a local variable are modeled by |
1217 /// [LocalParameterElement] whereas initializing formals, that is parameter of | 1220 /// [LocalParameterElement] whereas initializing formals, that is parameter of |
1218 /// the form `this.x`, are modeled by [InitializingFormalElement]. | 1221 /// the form `this.x`, are modeled by [InitializingFormalElement]. |
1219 abstract class ParameterElement extends Element | 1222 abstract class ParameterElement extends Element |
1220 implements VariableElement, FormalElement, LocalElement { | 1223 implements VariableElement, FormalElement, LocalElement { |
1221 /// Use [functionDeclaration] instead. | 1224 /// Use [functionDeclaration] instead. |
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2015 /// by a field. | 2018 /// by a field. |
2016 bool get isDeclaredByField; | 2019 bool get isDeclaredByField; |
2017 | 2020 |
2018 /// Returns `true` if this member is abstract. | 2021 /// Returns `true` if this member is abstract. |
2019 bool get isAbstract; | 2022 bool get isAbstract; |
2020 | 2023 |
2021 /// If abstract, [implementation] points to the overridden concrete member, | 2024 /// If abstract, [implementation] points to the overridden concrete member, |
2022 /// if any. Otherwise [implementation] points to the member itself. | 2025 /// if any. Otherwise [implementation] points to the member itself. |
2023 Member get implementation; | 2026 Member get implementation; |
2024 } | 2027 } |
OLD | NEW |