internal static SourceRange Create( CXSourceRange cxSourceRange, TranslationUnit translationUnit) { Debug.Assert(translationUnit != null); translationUnit.ThrowIfDisposed(); return(NativeMethods.clang_Range_isNull(cxSourceRange) != 0 ? null : new SourceRange(cxSourceRange, translationUnit)); }
private SourceRange(CXSourceRange cxSourceRange, TranslationUnit translationUnit) { Struct = cxSourceRange; TranslationUnit = translationUnit; }
public static extern CXSourceLocation clang_getRangeEnd( CXSourceRange range);
public static extern int clang_Range_isNull( CXSourceRange range);
public static extern uint clang_equalRanges( CXSourceRange range1, CXSourceRange range2);
public static extern void clang_tokenize( CXTranslationUnitImpl *TU, CXSourceRange Range, CXToken **Tokens, uint *NumTokens);