ArgumentDeclaration class Null safety AST Parsing

An argument declaration, as for a function or mixin definition.

Implemented types
Annotations

Constructors

ArgumentDeclaration(Iterable<Argument> arguments, FileSpan span, {String? restArgument})
ArgumentDeclaration.empty(FileSpan span)
Creates a declaration that declares no arguments.
ArgumentDeclaration.parse(String contents, {Object? url, Logger? logger})
Parses an argument declaration from contents, which should be of the form @rule name(args) {. [...]
factory

Properties

arguments List<Argument>
The arguments that are taken.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
isEmpty bool
Returns whether this declaration takes no arguments.
read-only
restArgument String?
The name of the rest argument (as in $args...), or null if none was declared.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
span FileSpan
The source span associated with the node. [...]
final
spanWithName FileSpan
Returns span expanded to include an identifier immediately before the declaration, if possible.
read-only

Methods

matches(int positional, Set<String> names) bool
Returns whether positional and names are valid for this argument declaration.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override
verify(int positional, Set<String> names) → void
Throws a SassScriptException if positional and names aren't valid for this argument declaration.

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited