Exemplo n.º 1
0
        public override ScopedValue GetScopeKeyOf(string name)
        {
            ScopedValue variableKey = null;

            if (GetVariableType(name) == VariableTypes.Local)
            {
                if (Scopes.Count() > 0)
                {
                    variableKey = new ScopedValue(Scopes.PeekCurrent(), name);
                }
            }
            else
            {
                variableKey = new ScopedValue("global", name);
            }
            return(variableKey);
        }
Exemplo n.º 2
0
 public BaseScopedValueCollection()
 {
     _scopedValueDictionary = new Dictionary <ScopedValue, T>(new ScopedValueComparer());
     Scopes = new Scopes();
 }