TypeCast constructor

TypeCast(
  1. PrimitiveType type,
  2. Node<dynamic, LangVal<LangType>> child
)

Constructs a type cast operation with target type and source expression.

Parameters:

  • type: The target primitive type to cast to
  • child: The expression whose value will be cast

Implementation

TypeCast(PrimitiveType type, Node<dynamic, LangVal> child)
    : super(type, [child]);