示例#1
0
 internal void AddScope(FunctionScope scope)
 {
     scopes.Add(scope);
 }
示例#2
0
 internal void AddChild(FunctionScope scope)
 {
     childScopes.Add(scope);
     scope.Parent = this;
 }
示例#3
0
        internal FlowSourceManager(Engine engine, bool debugMode, FunctionScope globalScope, FunctionScope contextScope, DebugController debugController)
        {
            this.engine          = engine;
            this.debugMode       = debugMode;
            this.contextScope    = contextScope;
            this.globalScope     = globalScope;
            this.debugController = debugController;

            callBackDictionary = new Dictionary <string, List <FlowCallEventHandler> >();
            sources            = new Dictionary <int, FlowSourceObjectBase>();
            flowInfos          = new List <FlowInfo>();
            eventQueue         = new EventQueue();
            currentQueue       = eventQueue;

            scope = new FunctionScope(ScopeType.Default);
            contextScope.AddChild(scope);
            scopes      = new List <FunctionScope>();
            breakPoints = new HashSet <int>();

            Items = new Dictionary <string, object>();
        }