Class: FFIGen::Clang::IdxEntityRefInfo

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/ffi_gen/clang.rb

Overview

Data for IndexerCallbacks#indexEntityReference.

Fields:

:kind ::

(Symbol from _enum_idx_entity_ref_kind_) 

:cursor ::

(Cursor) Reference cursor.

:loc ::

(IdxLoc) 

:referenced_entity ::

(IdxEntityInfo) The entity that gets referenced.

:parent_entity ::

(IdxEntityInfo) Immediate "parent" of the reference. For example:

\code
Foo *var;
\endcode

The parent of reference of type 'Foo' is the variable 'var'.
For references inside statement bodies of functions/methods,
the parentEntity will be the function/method.

:container ::

(IdxContainerInfo) Lexical container context of the reference.