Objc.createSelectorParameter

Creates the selector parameter for the given function declaration.

Objective-C methods has an extra hidden parameter that comes after the this parameter. The selector parameter is of the Objective-C type SEL and contains the selector which this method was called with.

class Objc
abstract const
createSelectorParameter

Parameters

fd FuncDeclaration

the function declaration to create the parameter for

sc Scope*

the scope from the semantic phase

Return Value

the newly created selector parameter or null for non-Objective-C functions

Suggestion Box / Bug Report