class FFI::Clang::SourceLocation
Attributes
location[R]
Public Class Methods
new(location)
click to toggle source
# File lib/ffi/clang/source_location.rb, line 34 def initialize(location) @location = location end
null_location()
click to toggle source
# File lib/ffi/clang/source_location.rb, line 29 def self.null_location ExpansionLocation.new Lib.get_null_location end
Public Instance Methods
==(other)
click to toggle source
# File lib/ffi/clang/source_location.rb, line 66 def ==(other) Lib.equal_locations(@location, other.location) != 0 end
expansion_location()
click to toggle source
# File lib/ffi/clang/source_location.rb, line 46 def expansion_location ExpansionLocation.new(@location) end
file_location()
click to toggle source
# File lib/ffi/clang/source_location.rb, line 58 def file_location FileLocation.new(@location) end
from_main_file?()
click to toggle source
# File lib/ffi/clang/source_location.rb, line 42 def from_main_file? Lib.location_is_from_main_file(@location) != 0 end
in_system_header?()
click to toggle source
# File lib/ffi/clang/source_location.rb, line 38 def in_system_header? Lib.location_in_system_header(@location) != 0 end
null?()
click to toggle source
# File lib/ffi/clang/source_location.rb, line 62 def null? Lib.equal_locations(@location, Lib.get_null_location) != 0 end
presumed_location()
click to toggle source
# File lib/ffi/clang/source_location.rb, line 50 def presumed_location PresumedLocation.new(@location) end
spelling_location()
click to toggle source
# File lib/ffi/clang/source_location.rb, line 54 def spelling_location SpellingLocation.new(@location) end