Esempio n. 1
0
        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);
                }
            }
        }
Esempio n. 2
0
 public bool TrySetVariable(IScriptEngine engine, SymbolId name, object value)
 {
     return(_host.TrySetVariable(engine, name, value));
 }