setClassInstance method

void setClassInstance(
  1. ASTValue<T> obj
)

Defines the current object instance of this context.

Implementation

void setClassInstance(ASTValue<T> obj) {
  if (_classInstance != null && !identical(_classInstance, obj)) {
    throw StateError('ASTObjectInstance already set!');
  }
  _classInstance = obj;
}