struct Clang::Cursor

Defined in:

cursor.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(cursor : LibC::CXCursor) #

[View source]

Instance Method Detail

def ==(other : Cursor) #

[View source]
def ==(other) #
Description copied from struct Struct

Returns true if this struct is equal to other.

Both structs' instance vars are compared to each other. Thus, two structs are considered equal if each of their instance variables are equal. Subclasses should override this method to provide specific equality semantics.

struct Point
  def initialize(@x : Int32, @y : Int32)
  end
end

p1 = Point.new 1, 2
p2 = Point.new 1, 2
p3 = Point.new 3, 4

p1 == p2 # => true
p1 == p3 # => false

[View source]
def anonymous? #

[View source]
def arguments #

[View source]
def availability #

[View source]
def bit_field? #

[View source]
def canonical_cursor #

[View source]
def cxx_access_specifier #

[View source]
def cxx_manglings #

[View source]
def definition #

[View source]
def definition? #

[View source]
def display_name #

[View source]
def dynamic_call? #

[View source]
def enum_constant_decl_unsigned_value #

[View source]
def enum_constant_decl_value #

[View source]
def enum_decl_integer_type #

[View source]
def evaluate #

[View source]
def extent #

[View source]
def field_decl_bit_width #

[View source]
def function_inlined? #

[View source]
def get_bried_comment_text #

[View source]
def has_attributes? #

[View source]
def hash #
Description copied from class Object

Generates an UInt64 hash value for this object.

This method must have the property that a == b implies a.hash == b.hash.

The hash value is used along with #== by the Hash class to determine if two objects reference the same hash key.

Subclasses must not override this method. Instead, they must define hash(hasher), though usually the macro def_hash can be used to generate this method.


[View source]
def ib_outlet_collection_type #

[View source]
def inspect(io) #

[View source]
def kind #

[View source]
def language #

[View source]
def lexical_parent #

[View source]
def linkage #

[View source]
def location #

[View source]
def macro_builtin? #

[View source]
def macro_function_like? #

[View source]
def mangling #

[View source]
def objc_decl_qualifiers #

[View source]
def objc_optional? #

[View source]
def objc_property_attributes #

[View source]
def objc_selector_index #

[View source]
def objc_type_encoding #

[View source]
def offset_of_field #

[View source]
def overloads #

[View source]
def overriden_cursors #

[View source]
def platform_availability #

[View source]
def raw_comment_text #

[View source]
def receiver_type #

[View source]
def referenced #

[View source]
def result_type #

[View source]
def semantic_parent #

[View source]
def spelling #

[View source]
def storage_class #

[View source]
def to_unsafe : LibC::CXCursor #

[View source]
def type #

[View source]
def typedef_decl_underlying_type #

[View source]
def usr #

Returns a raw LibC::CXString, use Clang.string(usr, dispose: false) to get a String.


[View source]
def variadic? #

[View source]
def virtual_base? #

[View source]
def visibility #

[View source]
def visit_children(&block : Cursor -> ChildVisitResult) #

[View source]