ASTClassInstance<V extends ASTValue> constructor

ASTClassInstance<V extends ASTValue>(
  1. ASTClass<V> clazz,
  2. V _object
)

Implementation

ASTClassInstance(this.clazz, this._object) : super(clazz.type) {
  if (type.name != clazz.name) {
    throw StateError('Incompatible class with type: $clazz != $type');
  }
}