Objc

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.

deprecate
void deprecate(InterfaceDeclaration interfaceDeclaration)

Deprecate the given Objective-C interface.

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(inout FuncDeclaration funcDeclaration)

Returns the this pointer of the given function declaration.

isVirtual
bool isVirtual(const FuncDeclaration fd)

Returns true if the given function declaration is virtual.

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

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

Static functions

deinitialize
void deinitialize()

Deinitializes the global state of the compiler.

Meta