Esempio n. 1
0
        public ISymbolVariable[] GetVariables(SymbolToken parent)
        {
            uint numVars;

            reader.GetVariables((uint)parent.GetToken(), 0, out numVars, null);
            var unVars = new ISymUnmanagedVariable[numVars];

            reader.GetVariables((uint)parent.GetToken(), (uint)unVars.Length, out numVars, unVars);
            var vars = new ISymbolVariable[numVars];

            for (uint i = 0; i < numVars; i++)
            {
                vars[i] = new SymbolVariable(unVars[i]);
            }
            return(vars);
        }
Esempio n. 2
0
        public ISymbolVariable[] GetGlobalVariables()
        {
            uint numVars;

            reader.GetGlobalVariables(0, out numVars, null);
            var unVars = new ISymUnmanagedVariable[numVars];

            reader.GetGlobalVariables((uint)unVars.Length, out numVars, unVars);
            var vars = new ISymbolVariable[numVars];

            for (uint i = 0; i < numVars; i++)
            {
                vars[i] = new SymbolVariable(unVars[i]);
            }
            return(vars);
        }
Esempio n. 3
0
        public ISymbolVariable[] GetParameters()
        {
            uint numVars;

            method.GetParameters(0, out numVars, null);
            var unVars = new ISymUnmanagedVariable[numVars];

            method.GetParameters((uint)unVars.Length, out numVars, unVars);
            var vars = new ISymbolVariable[numVars];

            for (uint i = 0; i < numVars; i++)
            {
                vars[i] = new SymbolVariable(unVars[i]);
            }
            return(vars);
        }