public void SetVariable(CodeContext context, SymbolId name, object value) { IAttributesCollection variables = _variables; if (variables != null) { variables[name] = value; } else { if (!_host.TrySetVariable(context.LanguageContext.Engine, name, value)) { // TODO: throw context.LanguageContext.MissingName(name); } } }
public bool TrySetVariable(IScriptEngine engine, SymbolId name, object value) { return(_host.TrySetVariable(engine, name, value)); }