Пример #1
0
        public IEnumerable <Scope> GetScopes(ScopesArguments args)
        {
            if ((engine.State & HALT_OR_FAULT) == 0)
            {
                var context   = engine.InvocationStack.Peek(args.FrameId);
                var contextID = AddVariableContainer(
                    new ExecutionContextContainer(this, context, Contract));
                yield return(new Scope("Locals", contextID, false));

                var storageID = AddVariableContainer(engine.GetStorageContainer(this));
                yield return(new Scope("Storage", storageID, false));
            }
        }