コード例 #1
0
 /// <summary>
 /// Retrieve a range for a piece that forms the cursors spelling name.
 /// </summary>
 /// <remarks>
 /// Most of the times there is only one range for the complete spelling but for
 /// objc methods and objc message expressions, there are multiple pieces for each
 /// selector identifier.
 /// </remarks>
 /// <param name="pieceIndex">The index of the spelling name piece. If this is greater
 /// than the actual number of pieces, it will return a <c>null</c> (invalid) range.
 /// </param>
 /// <returns></returns>
 public ClangSourceRange GetSpellingNameRange(int pieceIndex)
 {
     return(new ClangSourceRange(LibClang.clang_Cursor_getSpellingNameRange(source, (uint)pieceIndex, 0)));               // dummy
 }
コード例 #2
0
ファイル: ClangCursor.cs プロジェクト: dandar28/ClangNet
 /// <summary>
 /// Get Spelling Name Clang Source Range
 /// </summary>
 /// <param name="piece_index">Piece Index</param>
 /// <returns>Spelling Name Clang Source Range</returns>
 public ClangSourceRange GetSpellingNameRange(uint piece_index)
 {
     return(LibClang.clang_Cursor_getSpellingNameRange(this.Source, piece_index, 0).ToManaged());
 }