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