CalculationExpression class Null safety AST

A calculation literal.

Implemented types
Annotations

Constructors

CalculationExpression(String name, Iterable<Expression> arguments, FileSpan span)
Returns a calculation expression with the given name and arguments. [...]
CalculationExpression.calc(Expression argument, FileSpan span)
Returns a calc() calculation expression.
CalculationExpression.clamp(Expression min, Expression value, Expression max, FileSpan span)
Returns a clamp() calculation expression.
CalculationExpression.max(Iterable<Expression> arguments, FileSpan span)
Returns a max() calculation expression.
CalculationExpression.min(Iterable<Expression> arguments, FileSpan span)
Returns a min() calculation expression.

Properties

arguments List<Expression>
The arguments for the calculation.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
name String
This calculation's name.
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

Methods

accept<T>(ExpressionVisitor<T> visitor) → T
Calls the appropriate visit method on visitor.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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