Пример #1
0
        /// <summary>
        /// Gets the sequence points defined for this method
        /// </summary>
        /// <param name="offsets">array of IL offsets</param>
        /// <param name="documents">array of documents</param>
        /// <param name="lines">start line number array</param>
        /// <param name="columns">start column number array</param>
        /// <param name="endLines">end line number array</param>
        /// <param name="endColumns">start line number array</param>
        public void GetSequencePoints( // This method needed by PERWAPI
            int[] offsets,
            ISymbolDocument[] documents,
            int[] lines,
            int[] columns,
            int[] endLines,
            int[] endColumns)
        {
            int spCount = INVALID;

            GetAndCheckLength(offsets, ref spCount);
            GetAndCheckLength(lines, ref spCount);
            GetAndCheckLength(columns, ref spCount);
            GetAndCheckLength(endLines, ref spCount);
            GetAndCheckLength(endColumns, ref spCount);
            if (spCount == INVALID)
            {
                spCount = 0;
            }

            int dcCount = documents.Length;

            ISymUnmanagedDocument[] unDocs = new ISymUnmanagedDocument[dcCount];
            private_method.GetSequencePoints(
                dcCount, out spCount, offsets, unDocs, lines, columns, endLines, endColumns);
            for (int i = 0; i < dcCount; i++)
            {
                documents[i] = new SymbolDocument(unDocs[i]);
            }
            return;
        }
Пример #2
0
        /// <summary>
        /// Gets the sequence points defined for this method
        /// </summary>
        /// <param name="offsets">array of IL offsets</param>
        /// <param name="documents">array of documents</param>
        /// <param name="lines">start line number array</param>
        /// <param name="columns">start column number array</param>
        /// <param name="endLines">end line number array</param>
        /// <param name="endColumns">start line number array</param>
        public void GetSequencePoints( // This method needed by PERWAPI
            int[] offsets,
            ISymbolDocument[] documents,
            int[] lines,
            int[] columns,
            int[] endLines,
            int[] endColumns)
        {
            int spCount = INVALID;
              GetAndCheckLength(offsets, ref spCount);
              GetAndCheckLength(lines, ref spCount);
              GetAndCheckLength(columns, ref spCount);
              GetAndCheckLength(endLines, ref spCount);
              GetAndCheckLength(endColumns, ref spCount);
              if (spCount == INVALID)
            spCount = 0;

              int dcCount = documents.Length;
              ISymUnmanagedDocument[] unDocs = new ISymUnmanagedDocument[dcCount];
              private_method.GetSequencePoints(
              dcCount, out spCount, offsets, unDocs, lines, columns, endLines, endColumns);
              for (int i = 0; i < dcCount; i++)
            documents[i] = new SymbolDocument(unDocs[i]);
              return;
        }