FunctionDeclarationNode
class FunctionDeclarationNode(name: FunctionNameNode, pcLabel: LabelNode?, parameters: Arguments<ParameterNode>, body: BlockNode, sourceLocation: SourceLocation, comment: String?) : TopLevelDeclarationNode
Content copied to clipboard
A function declaration associating a name with code.
Parameters
name
A name identifying the function.
pcLabel
Value of the program control label at the beginning of body.
parameters
A list of formal parameters.
body
Code to run when the function is called.
Constructors
FunctionDeclarationNode
Link copied to clipboard
fun FunctionDeclarationNode(name: FunctionNameNode, pcLabel: LabelNode?, parameters: Arguments<ParameterNode>, body: BlockNode, sourceLocation: SourceLocation, comment: String? = null)
Content copied to clipboard
Functions
toDocument
Link copied to clipboard
Properties
name
Link copied to clipboard
parameters
Link copied to clipboard
sourceLocation
Link copied to clipboard