isInstanceOf method
Implementation
bool isInstanceOf(ASTType type) {
var context = VMContext.getCurrent();
var valueType = resolveType(context);
if (valueType is ASTType) {
return type.acceptsType(valueType);
} else {
var value = context != null ? getValue(context) : getValueNoContext();
var actualValueType = ASTType.from(value);
return type.acceptsType(actualValueType);
}
}