Cursor

struct Cursor {
CXCursor cx;
Kind kind;
string spelling;
Type type;
SourceRange sourceRange;
}

Members

Functions

children
inout(Cursor)[] children()

Lazily return the cursor's children

enumConstantValue
auto enumConstantValue()

For EnumConstantDecl cursors, return the numeric value

isCanonical
bool isCanonical()

If this is the canonical cursor. Given forward declarations, there may be several cursors for one entity. This returns true if this cursor is the canonical one.

underlyingType
Type underlyingType()

For TypedefDecl cursors, return the underlying type

Meta