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
auto 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.
comment
auto comment()

Get the referent parsed comment.

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.
numOverloadedDecls
auto numOverloadedDecls()
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.
overloadedDecl
Cursor overloadedDecl(int i)
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.
raw_comment
auto raw_comment()

Get the raw declaration comment for this referent, if one exists.

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.
setSpelling
void setSpelling(string str)
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.
translationUnitLanguage
Language translationUnitLanguage()
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.
__anonymous
mixin Lazy!_spelling
Undocumented in source.
__anonymous
mixin Lazy!_sourceRange
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.
type
Type type;
Undocumented in source.
underlyingType
Type underlyingType;
Undocumented in source.

Meta