class FFI::Clang::Token
Public Class Methods
new(token, translation_unit)
click to toggle source
# File lib/ffi/clang/token.rb, line 73 def initialize(token, translation_unit) @token = token @translation_unit = translation_unit end
Public Instance Methods
extent()
click to toggle source
# File lib/ffi/clang/token.rb, line 90 def extent SourceRange.new Lib.get_token_extent(@translation_unit, @token) end
kind()
click to toggle source
# File lib/ffi/clang/token.rb, line 78 def kind Lib.get_token_kind(@token) end
location()
click to toggle source
# File lib/ffi/clang/token.rb, line 86 def location ExpansionLocation.new Lib.get_token_location(@translation_unit, @token) end
spelling()
click to toggle source
# File lib/ffi/clang/token.rb, line 82 def spelling Lib.extract_string Lib.get_token_spelliing(@translation_unit, @token) end