Objc

Undocumented in source but is binding to C++. You might be able to learn more by searching the web for its name.

Members

Functions

addSymbols
void addSymbols(ClassDeclaration classDeclaration, ClassDeclarations* classes, ClassDeclarations* categories)
addSymbols
void addSymbols(AttribDeclaration attribDeclaration, ClassDeclarations* classes, ClassDeclarations* categories)
addToClassMethodList
void addToClassMethodList(FuncDeclaration fd, ClassDeclaration cd)

Adds the given function to the list of Objective-C methods.

checkOffsetof
void checkOffsetof(Expression expression, AggregateDeclaration aggregateDeclaration)
checkTupleof
void checkTupleof(Expression expression, TypeClass type)

Issues a compile time error if the .offsetof/.tupleof property is used on a field of an Objective-C class.

createSelectorParameter
VarDeclaration createSelectorParameter(FuncDeclaration fd, Scope* sc)

Creates the selector parameter for the given function declaration.

getParent
ClassDeclaration getParent(FuncDeclaration fd, ClassDeclaration cd)

Gets the parent of the given function declaration.

getRuntimeMetaclass
ClassDeclaration getRuntimeMetaclass(ClassDeclaration classDeclaration)

Returns Objective-C runtime metaclass of the given class declaration.

isThis
inout(AggregateDeclaration) isThis(FuncDeclaration funcDeclaration)

Returns the this pointer of the given function declaration.

isVirtual
bool isVirtual(FuncDeclaration fd)

Returns true if the given function declaration is virtual.

setAsOptional
void setAsOptional(FuncDeclaration functionDeclaration, Scope* sc)

Marks the given function declaration as optional.

setMetaclass
void setMetaclass(InterfaceDeclaration interfaceDeclaration, Scope* sc)
void setMetaclass(ClassDeclaration classDeclaration, Scope* sc)

Creates and sets the metaclass on the given class/interface declaration.

toPrettyChars
const(char)* toPrettyChars(ClassDeclaration classDeclaration, bool qualifyTypes)

Returns a pretty textual representation of the given class declaration.

validateOptional
void validateOptional(FuncDeclaration functionDeclaration)

Validates function declarations declared optional.

Static functions

deinitialize
void deinitialize()

Deinitializes the global state of the compiler.

Meta