|
|
|
@ -20,7 +20,7 @@ namespace clang { |
|
|
|
Token(CXTranslationUnit &cx_tu, CXToken &cx_token, CXCursor &cx_cursor):
|
|
|
|
Token(CXTranslationUnit &cx_tu, CXToken &cx_token, CXCursor &cx_cursor):
|
|
|
|
cx_tu(cx_tu), cx_token(cx_token), cx_cursor(cx_cursor), offsets(get_source_range().get_offsets()) {}; |
|
|
|
cx_tu(cx_tu), cx_token(cx_token), cx_cursor(cx_cursor), offsets(get_source_range().get_offsets()) {}; |
|
|
|
public: |
|
|
|
public: |
|
|
|
const TokenKind get_kind(); |
|
|
|
TokenKind get_kind(); |
|
|
|
std::string get_spelling(); |
|
|
|
std::string get_spelling(); |
|
|
|
SourceLocation get_source_location(); |
|
|
|
SourceLocation get_source_location(); |
|
|
|
SourceRange get_source_range(); |
|
|
|
SourceRange get_source_range(); |
|
|
|
|