Exemplo n.º 1
0
        public void SetMethodSourceRange(ISymbolDocumentWriter startDoc, int startLine, int startColumn, ISymbolDocumentWriter endDoc, int endLine, int endColumn)
        {
            var sdoc = startDoc as SymbolDocumentWriter;

            if (sdoc == null)
            {
                throw new ArgumentException("startDoc isn't a non-null SymbolDocumentWriter instance");
            }
            var edoc = endDoc as SymbolDocumentWriter;

            if (edoc == null)
            {
                throw new ArgumentException("endDoc isn't a non-null SymbolDocumentWriter instance");
            }
            writer.SetMethodSourceRange(sdoc.SymUnmanagedDocumentWriter, (uint)startLine, (uint)startColumn, edoc.SymUnmanagedDocumentWriter, (uint)endLine, (uint)endColumn);
        }