Cursor

Undocumented in source.
struct Cursor {}

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

Aliases

Hash
alias Hash = ReturnType!(clang_hashCursor)
Undocumented in source.
templateParams
alias templateParams = templateParameters
Undocumented in source.

Functions

accessSpecifier
auto accessSpecifier()
Undocumented in source. Be warned that the author may not have intended to support it.
bitWidth
int bitWidth()
Undocumented in source. Be warned that the author may not have intended to support it.
canonical
Cursor canonical()
Undocumented in source. Be warned that the author may not have intended to support it.
children
inout(Cursor)[] children()

Lazily return the cursor's children

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.
displayName
string displayName()
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.
isBitField
bool isBitField()
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.

isConstCppMethod
bool isConstCppMethod()
Undocumented in source. Be warned that the author may not have intended to support it.
isCopyConstructor
bool isCopyConstructor()
Undocumented in source. Be warned that the author may not have intended to support it.
isDefinition
bool isDefinition()
Undocumented in source. Be warned that the author may not have intended to support it.
isFileScope
bool isFileScope()

If declared at file scope.

isInvalid
bool isInvalid()
Undocumented in source. Be warned that the author may not have intended to support it.
isMacroBuiltin
bool isMacroBuiltin()
Undocumented in source. Be warned that the author may not have intended to support it.
isMacroFunction
bool isMacroFunction()
Undocumented in source. Be warned that the author may not have intended to support it.
isMoveConstructor
bool isMoveConstructor()
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.
isPureVirtual
bool isPureVirtual()
Undocumented in source. Be warned that the author may not have intended to support it.
isVirtual
bool isVirtual()
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.
numTemplateArguments
int numTemplateArguments()
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.
overriddenCursors
Cursor[] overriddenCursors()
Undocumented in source. Be warned that the author may not have intended to support it.
referencedCursor
Cursor referencedCursor()

For e.g. TypeRef or TemplateRef

returnType
Type returnType()
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.
specializedCursorTemplate
Cursor specializedCursorTemplate()
Undocumented in source. Be warned that the author may not have intended to support it.
storageClass
StorageClass storageClass()
Undocumented in source. Be warned that the author may not have intended to support it.
templateArgumentKind
TemplateArgumentKind templateArgumentKind(int i)
Undocumented in source. Be warned that the author may not have intended to support it.
templateArgumentType
Type templateArgumentType(int i)
Undocumented in source. Be warned that the author may not have intended to support it.
templateArgumentValue
long templateArgumentValue(int i)
Undocumented in source. Be warned that the author may not have intended to support it.
templateParameters
const(Cursor)[] templateParameters()
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.
tokens
Token[] tokens()
Undocumented in source. Be warned that the author may not have intended to support it.
translationUnit
TranslationUnit translationUnit()
Undocumented in source. Be warned that the author may not have intended to support it.
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.
__anonymous
mixin EnumD!("StorageClass", CX_StorageClass, "CX_SC_")
Undocumented in source.

Static functions

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.
sourceRange
SourceRange sourceRange;
Undocumented in source.
spelling
string spelling;
Undocumented in source.
type
Type type;
Undocumented in source.
underlyingType
Type underlyingType;
Undocumented in source.

Meta