ASTParametersDeclaration class
An AST Parameters Declaration
- Available Extensions
Constructors
-
ASTParametersDeclaration(List<
ASTFunctionParameterDeclaration> ? positionalParameters, [List<ASTFunctionParameterDeclaration> ? optionalParameters, List<ASTFunctionParameterDeclaration> ? namedParameters])
Properties
-
allParameters
→ List<
ASTFunctionParameterDeclaration> -
Returns a list with all the positionalParameters, optionalParameters and namedParameters.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
no setter
- isNotEmpty → bool
-
no setter
-
namedParameters
↔ List<
ASTFunctionParameterDeclaration> ? -
getter/setter pair
- namedParametersSize → int
-
no setter
-
optionalParameters
↔ List<
ASTFunctionParameterDeclaration> ? -
getter/setter pair
- optionalParametersSize → int
-
no setter
-
positionalParameters
↔ List<
ASTFunctionParameterDeclaration> ? -
getter/setter pair
- positionalParametersSize → int
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int
-
no setter
Methods
-
getParameterByIndex(
int index) → ASTFunctionParameterDeclaration? -
getParameterByName(
String name) → ASTFunctionParameterDeclaration? -
matchesParametersTypes(
ASTFunctionSignature parametersSignature, bool exactTypes) → bool -
Returns true if
parametersSignature
matches this parameters declaration. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolveNode(
ASTNode? parentNode) → void -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
parameterAcceptsType(
ASTFunctionParameterDeclaration? param, ASTType? type, bool exactType) → bool -
Returns true if
param
acceptstype
.