Esempio n. 1
0
        public ISymbolVariable[] GetVariables()
        {
            int cVars = 0;
            uint i;
            unmanagedNamespace.GetVariables(0, out cVars, null);
            ISymUnmanagedVariable[] unmanagedVariables = new ISymUnmanagedVariable[cVars];
            unmanagedNamespace.GetVariables(cVars, out cVars, unmanagedVariables);

            ISymbolVariable[] variables = new ISymbolVariable[cVars];
            for (i = 0; i < cVars; i++)
            {
                variables[i] = new SymbolVariable(unmanagedVariables[i]);
            }
            return variables;
        }
Esempio n. 2
0
        public ISymbolVariable[] GetVariables()
        {
            int  cVars = 0;
            uint i;

            unmanagedNamespace.GetVariables(0, out cVars, null);
            ISymUnmanagedVariable[] unmanagedVariables = new ISymUnmanagedVariable[cVars];
            unmanagedNamespace.GetVariables(cVars, out cVars, unmanagedVariables);

            ISymbolVariable[] variables = new ISymbolVariable[cVars];
            for (i = 0; i < cVars; i++)
            {
                variables[i] = new SymbolVariable(unmanagedVariables[i]);
            }
            return(variables);
        }
Esempio n. 3
0
        public ISymbolVariable[] GetParameters()
        {
            int  cVariables;
            uint i;

            unmanagedMethod.GetParameters(0, out cVariables, null);
            ISymUnmanagedVariable[] unmanagedVariables = new ISymUnmanagedVariable[cVariables];
            unmanagedMethod.GetParameters(cVariables, out cVariables, unmanagedVariables);

            ISymbolVariable[] variables = new ISymbolVariable[cVariables];
            for (i = 0; i < cVariables; i++)
            {
                variables[i] = new SymbolVariable(unmanagedVariables[i]);
            }
            return(variables);
        }
Esempio n. 4
0
        public ISymbolVariable[] GetGlobalVariables()
        {
            int  cVars;
            uint i;

            unmanagedReader.GetGlobalVariables(0, out cVars, null);
            ISymUnmanagedVariable[] unmanagedVariables = new ISymUnmanagedVariable[cVars];
            unmanagedReader.GetGlobalVariables(cVars, out cVars, unmanagedVariables);
            SymbolVariable[] variables = new SymbolVariable[cVars];

            for (i = 0; i < cVars; i++)
            {
                variables[i] = new SymbolVariable(unmanagedVariables[i]);
            }
            return(variables);
        }
Esempio n. 5
0
        public ISymbolVariable[] GetVariables(SymbolToken parent)
        {
            int  cVars;
            uint i;

            unmanagedReader.GetVariables(parent, 0, out cVars, null);
            ISymUnmanagedVariable[] unmanagedVariables = new ISymUnmanagedVariable[cVars];
            unmanagedReader.GetVariables(parent, cVars, out cVars, unmanagedVariables);
            SymbolVariable[] variables = new SymbolVariable[cVars];

            for (i = 0; i < cVars; i++)
            {
                variables[i] = new SymbolVariable(unmanagedVariables[i]);
            }
            return(variables);
        }
Esempio n. 6
0
        public ISymbolVariable[] GetLocals()
        {
            int count;

            unmanagedScope.GetLocals(0, out count, null);
            ISymUnmanagedVariable[] uVariables = new ISymUnmanagedVariable[count];
            unmanagedScope.GetLocals(count, out count, uVariables);

            int i;

            ISymbolVariable[] variables = new ISymbolVariable[count];
            for (i = 0; i < count; i++)
            {
                variables[i] = new SymbolVariable(uVariables[i]);
            }
            return(variables);
        }
Esempio n. 7
0
        public ISymbolVariable[] GetLocalVariables(SymbolToken mdMethodToken)
        {
            int count;

            ((ISymUnmanagedEncUpdate)unmanagedReader).GetLocalVariables(mdMethodToken, 0, null, out count);
            ISymUnmanagedVariable[] unmanagedVariables = new ISymUnmanagedVariable[count];
            ((ISymUnmanagedEncUpdate)unmanagedReader).GetLocalVariables(mdMethodToken, count, unmanagedVariables, out count);

            ISymbolVariable[] variables = new ISymbolVariable[count];
            uint i;

            for (i = 0; i < count; i++)
            {
                variables[i] = new SymbolVariable(unmanagedVariables[i]);
            }
            return(variables);
        }
Esempio n. 8
0
        public ISymbolVariable[] GetParameters()
        {
            int cVariables;
            uint i;
            unmanagedMethod.GetParameters(0, out cVariables, null);
            ISymUnmanagedVariable[] unmanagedVariables = new ISymUnmanagedVariable[cVariables];
            unmanagedMethod.GetParameters(cVariables, out cVariables, unmanagedVariables);

            ISymbolVariable[] variables = new ISymbolVariable[cVariables];
            for (i = 0; i < cVariables; i++)
            {
                variables[i] = new SymbolVariable(unmanagedVariables[i]);
            }
            return variables;
        }
Esempio n. 9
0
        public ISymbolVariable[] GetLocals()
        {
            int count;
            unmanagedScope.GetLocals(0, out count, null);
            ISymUnmanagedVariable[] uVariables = new ISymUnmanagedVariable[count];
            unmanagedScope.GetLocals(count, out count, uVariables);

            int i;
            ISymbolVariable[] variables = new ISymbolVariable[count];
            for (i = 0; i < count; i++)
            {
                variables[i] = new SymbolVariable(uVariables[i]);
            }
            return variables;
        }
Esempio n. 10
0
        public ISymbolVariable[] GetGlobalVariables()
        {
            int cVars;
            uint i;
            unmanagedReader.GetGlobalVariables(0, out cVars, null);
            ISymUnmanagedVariable[] unmanagedVariables = new ISymUnmanagedVariable[cVars];
            unmanagedReader.GetGlobalVariables(cVars, out cVars, unmanagedVariables);
            SymbolVariable[] variables = new SymbolVariable[cVars];

            for (i = 0; i < cVars; i++)
            {
                variables[i] = new SymbolVariable(unmanagedVariables[i]);
            }
            return variables;
        }
Esempio n. 11
0
        public ISymbolVariable[] GetVariables(SymbolToken parent)
        {
            int cVars;
            uint i;
            unmanagedReader.GetVariables(parent, 0, out cVars, null);
            ISymUnmanagedVariable[] unmanagedVariables = new ISymUnmanagedVariable[cVars];
            unmanagedReader.GetVariables(parent, cVars, out cVars, unmanagedVariables);
            SymbolVariable[] variables = new SymbolVariable[cVars];

            for (i = 0; i < cVars; i++)
            {
                variables[i] = new SymbolVariable(unmanagedVariables[i]);
            }
            return variables;
        }
Esempio n. 12
0
        public ISymbolVariable[] GetLocalVariables(SymbolToken mdMethodToken)
        {
            int count;
            ((ISymUnmanagedEncUpdate)unmanagedReader).GetLocalVariables(mdMethodToken, 0, null, out count);
            ISymUnmanagedVariable[] unmanagedVariables = new ISymUnmanagedVariable[count];
            ((ISymUnmanagedEncUpdate)unmanagedReader).GetLocalVariables(mdMethodToken, count, unmanagedVariables, out count);

            ISymbolVariable[] variables = new ISymbolVariable[count];
            uint i;
            for (i = 0; i < count; i++)
            {
                variables[i] = new SymbolVariable(unmanagedVariables[i]);
            }
            return variables;
        }