Documentation

LKFunction class documentation

LKFunction : LKAST

AuthorsGenerated by builder
Declared inLKFunction.h

Overview

AST node representing a function.


Default

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

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

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

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

      - (void) setSignature: (LKFunctionCall *)aSignature

      Set the function signature for this function.

        - (NSString *) functionBody

        Returns the function's body