示例#1
0
 /// <summary>
 /// Given a cursor that references something else, return the source range
 /// covering that reference.
 /// </summary>
 /// <param name="nameFlags">A bitset with three independent flags.</param>
 /// <param name="pieceIndex">For contiguous names or when passing the flag
 /// <c>NameRefFlags.WantSinglePiece</c>, only one piece with index 0 is
 /// available. When the <c>NameRefFlags.WantSinglePiece</c> flag is not passed for a
 /// non-contiguous names, this index can be used to retrieve the individual
 /// pieces of the name. See also <c>NameRefFlags.WantSinglePiece</c>.
 /// </param>
 /// <returns>
 /// The piece of the name pointed to by the given cursor. If there is no
 /// name, or if the PieceIndex is out-of-range, a null-cursor will be returned.
 /// </returns>
 public ClangSourceRange GetCursorReferenceNameRange(NameRefFlags nameFlags, int pieceIndex)
 {
     return(new ClangSourceRange(LibClang.clang_getCursorReferenceNameRange(source, nameFlags, (uint)pieceIndex)));
 }
 internal static extern CXSourceRange    clang_getCursorReferenceNameRange(CXCursor C, NameRefFlags NameFlags, uint PieceIndex);
示例#3
0
 internal static extern CXSourceRange clang_getCursorReferenceNameRange(CXCursor cursor, NameRefFlags named_flags, uint piece_index);
示例#4
0
 /// <summary>
 /// Cursor Reference Name Clang Source Range
 /// </summary>
 /// <param name="name_flags">Name Reference Flags</param>
 /// <param name="piece_index">Piece Index</param>
 /// <returns>Reference Name Clang Source Range</returns>
 public ClangSourceRange GetCursorReferenceNameRange(NameRefFlags name_flags, int piece_index)
 {
     return(LibClang.clang_getCursorReferenceNameRange(this.Source, name_flags, (uint)piece_index).ToManaged());
 }