Cursor

Undocumented in source.

Constructors

this
this(CXCursor cx)
Undocumented in source.
this
this(Kind kind, string spelling)
Undocumented in source.
this
this(Kind kind, string spelling, Type type)
Undocumented in source.

Members

Functions

canonical
Cursor canonical()
Undocumented in source. Be warned that the author may not have intended to support it.
children
inout(Cursor)[] children()
Undocumented in source. Be warned that the author may not have intended to support it.
children
void children(Cursor[] cursors)
Undocumented in source. Be warned that the author may not have intended to support it.
definition
Cursor definition()
Undocumented in source. Be warned that the author may not have intended to support it.
enumConstantValue
auto enumConstantValue()

For EnumConstantDecl cursors, return the numeric value

hash
auto hash()
Undocumented in source. Be warned that the author may not have intended to support it.
isAnonymous
bool isAnonymous()
Undocumented in source. Be warned that the author may not have intended to support it.
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.

isDefinition
bool isDefinition()
Undocumented in source. Be warned that the author may not have intended to support it.
isInvalid
bool isInvalid()
Undocumented in source. Be warned that the author may not have intended to support it.
isNull
bool isNull()
Undocumented in source. Be warned that the author may not have intended to support it.
isPredefined
bool isPredefined()
Undocumented in source. Be warned that the author may not have intended to support it.
language
Language language()
Undocumented in source. Be warned that the author may not have intended to support it.
lexicalParent
Cursor lexicalParent()
Undocumented in source. Be warned that the author may not have intended to support it.
mangling
string mangling()
Undocumented in source. Be warned that the author may not have intended to support it.
opApply
int opApply(int delegate(Cursor cursor) @(safe) block)
Undocumented in source. Be warned that the author may not have intended to support it.
opApply
int opApply(int delegate(Cursor cursor, Cursor parent) @(safe) block)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(const(Cursor) other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Cursor other)
Undocumented in source. Be warned that the author may not have intended to support it.
semanticParent
Cursor semanticParent()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
underlyingType
Type underlyingType()

For TypedefDecl cursors, return the underlying type

visitChildren
void visitChildren(CursorVisitor visitor)
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin EnumD!("Kind", CXCursorKind, "CXCursor_")
Undocumented in source.

Static functions

functionDecl
Cursor functionDecl(string spelling, string proto, Type returnType)

Constructs a function declaration cursor.

nullCursor
Cursor nullCursor()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

cx
CXCursor cx;
Undocumented in source.
kind
Kind kind;
Undocumented in source.
returnType
Type returnType;
Undocumented in source.
sourceRange
SourceRange sourceRange;
Undocumented in source.
spelling
string spelling;
Undocumented in source.
type
Type type;
Undocumented in source.

Meta