Adds various context elements to a ScriptProcessor class instance.
Exemple #1
0
        internal ScriptContext(ScriptProcessor processor, ScriptContext parent)
        {
            _processor = processor;
            Parent = parent;

            This = parent != null ? parent.This : new GlobalContextObject(this);
        }
Exemple #2
0
        internal ScriptProcessor(ScriptContext context, int parentLineNumber)
        {
            _hasParent = true;
            _parentLineNumber = parentLineNumber;
            ErrorHandler = new ErrorHandler(this);

            Context = new ScriptContext(this, context);
            Context.Initialize();
        }
Exemple #3
0
 /// <summary>
 /// Creates a new instance of the <see cref="ScriptProcessor"/> and sets a context.
 /// </summary>
 internal ScriptProcessor(ScriptContext context) : this(context, 0) { }