internal static int[] GetMethodTokensFromDocumentPosition( ISymUnmanagedReader symReader, ISymUnmanagedDocument symDocument, int line, int column) { Assert.True(line >= 1); Assert.True(column >= 0); int count; Assert.Equal(HResult.S_OK, symReader.GetMethodsFromDocumentPosition(symDocument, line, column, 0, out count, null)); var methods = new ISymUnmanagedMethod[count]; int count2; Assert.Equal(HResult.S_OK, symReader.GetMethodsFromDocumentPosition(symDocument, line, column, count, out count2, methods)); Assert.Equal(count, count2); return(methods.Select(m => { int token; Assert.Equal(HResult.S_OK, m.GetToken(out token)); return token; }).ToArray()); }
private int[] GetMethodTokensFromDocumentPosition( ISymUnmanagedReader symReader, ISymUnmanagedDocument symDocument, int zeroBasedLine, int zeroBasedColumn) { int count; Assert.Equal(HResult.S_OK, symReader.GetMethodsFromDocumentPosition(symDocument, zeroBasedLine, zeroBasedColumn, 0, out count, null)); var methods = new ISymUnmanagedMethod[count]; int count2; Assert.Equal(HResult.S_OK, symReader.GetMethodsFromDocumentPosition(symDocument, zeroBasedLine, zeroBasedColumn, count, out count2, methods)); Assert.Equal(count, count2); return methods.Select(m => { int token; Assert.Equal(HResult.S_OK, m.GetToken(out token)); return token; }).ToArray(); }
internal static int[] GetMethodTokensFromDocumentPosition( ISymUnmanagedReader symReader, ISymUnmanagedDocument symDocument, int line, int column) { Assert.True(line >= 1); Assert.True(column >= 0); int count; Assert.Equal(HResult.S_OK, symReader.GetMethodsFromDocumentPosition(symDocument, line, column, 0, out count, null)); var methods = new ISymUnmanagedMethod[count]; int count2; Assert.Equal(HResult.S_OK, symReader.GetMethodsFromDocumentPosition(symDocument, line, column, count, out count2, methods)); Assert.Equal(count, count2); return methods.Select(m => { int token; Assert.Equal(HResult.S_OK, m.GetToken(out token)); return token; }).ToArray(); }