LKFunction class documentation

Authors

Generated by builder

Software documentation for the LKFunction class

LKFunction : LKAST

Declared in:
LKFunction.h

AST node representing a function.

Method summary

functionWithSignature: locals: statements: 

+ (id) functionWithSignature: (LKFunctionCall*)aSignature locals: (NSMutableArray*)locals statements: (NSMutableArray*)statementList;

Return a new Function with the specified signature, locals and statements.


functionBody 

- (NSString*) functionBody;

Returns the function's body


initWithSignature: locals: statements: 

- (id) initWithSignature: (LKFunctionCall*)aSignature locals: (NSMutableArray*)locals statements: (NSMutableArray*)statementList;

Initialise a new Function with the specified signature, locals and statements.


setSignature: 

- (void) setSignature: (LKFunctionCall*)aSignature;

Set the function signature for this function.