Ejemplo n.º 1
0
        public ISymbolVariable[] GetVariables(SymbolToken parent)
        {
            int varNm;

            private_reader.GetVariables(parent, 0, out varNm, null);
            ISymUnmanagedVariable[] unVars = new ISymUnmanagedVariable[varNm];
            SymbolVariable[]        retVal = new SymbolVariable[varNm];
            private_reader.GetVariables(parent, varNm, out varNm, unVars);
            for (int i = 0; i < varNm; i++)
            {
                retVal[i] = new SymbolVariable(unVars[i]);
            }
            return(retVal);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Gets the local variables within the current lexical scope
        /// </summary>
        /// <returns>The local variables of the current scope</returns>
        public ISymbolVariable[] GetLocals()
        {
            int lcNum;

            private_scope.GetLocals(0, out lcNum, null);
            ISymUnmanagedVariable[] unVars  = new ISymUnmanagedVariable[lcNum];
            ISymbolVariable[]       manVars = new ISymbolVariable[lcNum];

            private_scope.GetLocals(lcNum, out lcNum, unVars);
            for (int i = 0; i < lcNum; i++)
            {
                manVars[i] = new SymbolVariable(unVars[i]);
            }
            return(manVars);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Gets the parameters of the method
        /// </summary>
        /// <returns>The method parameters</returns>
        public ISymbolVariable[] GetParameters()
        {
            int pNum;

            // Call GetParameters just to get pNum
            private_method.GetParameters(0, out pNum, null);
            ISymUnmanagedVariable[] unVars  = new ISymUnmanagedVariable[pNum];
            ISymbolVariable[]       manVars = new ISymbolVariable[pNum];

            // Now call again to get the real information
            private_method.GetParameters(pNum, out pNum, unVars);
            for (int i = 0; i < pNum; i++)
            {
                manVars[i] = new SymbolVariable(unVars[i]);
            }
            return(manVars);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Gets the local variables within the current lexical scope
        /// </summary>
        /// <returns>The local variables of the current scope</returns>
        public ISymbolVariable[] GetLocals()
        {
            int lcNum;
              private_scope.GetLocals(0, out lcNum, null);
              ISymUnmanagedVariable[] unVars = new ISymUnmanagedVariable[lcNum];
              ISymbolVariable[] manVars = new ISymbolVariable[lcNum];

              private_scope.GetLocals(lcNum, out lcNum, unVars);
              for (int i = 0; i < lcNum; i++)
            manVars[i] = new SymbolVariable(unVars[i]);
              return manVars;
        }
Ejemplo n.º 5
0
 public ISymbolVariable[] GetVariables(SymbolToken parent)
 {
     int varNm;
       private_reader.GetVariables(parent, 0, out varNm, null);
       ISymUnmanagedVariable[] unVars = new ISymUnmanagedVariable[varNm];
       SymbolVariable[] retVal = new SymbolVariable[varNm];
       private_reader.GetVariables(parent, varNm, out varNm, unVars);
       for (int i = 0; i < varNm; i++)
     retVal[i] = new SymbolVariable(unVars[i]);
       return retVal;
 }
Ejemplo n.º 6
0
        /// <summary>
        /// Gets the parameters of the method
        /// </summary>
        /// <returns>The method parameters</returns>
        public ISymbolVariable[] GetParameters()
        {
            int pNum;

              // Call GetParameters just to get pNum
              private_method.GetParameters(0, out pNum, null);
              ISymUnmanagedVariable[] unVars = new ISymUnmanagedVariable[pNum];
              ISymbolVariable[] manVars = new ISymbolVariable[pNum];

              // Now call again to get the real information
              private_method.GetParameters(pNum, out pNum, unVars);
              for (int i = 0; i < pNum; i++)
            manVars[i] = new SymbolVariable(unVars[i]);
              return manVars;
        }