ValueNodeWhen extension

Utility for executing code for each ast.ValueNode type

on
  • ValueNode

Methods

when<T>({required T string(StringValueNode), required T int_(IntValueNode), required T float(FloatValueNode), required T boolean(BooleanValueNode), required T object(ObjectValueNode), required T list(ListValueNode), required T enum_(EnumValueNode), required T null_(NullValueNode), required T variable(VariableNode)}) → T
Executes the given callback when this is of the type parameter