FunctionDeclarationNode
class FunctionDeclarationNode(val name: FunctionNameNode, val labelParameters: Arguments<LabelVariableNode>?, val parameters: Arguments<ParameterNode>, val labelConstraints: Arguments<IFCDelegationDeclarationNode>?, val pcLabel: LabelNode?, val body: BlockNode, val sourceLocation: SourceLocation, val comment: String? = null) : TopLevelDeclarationNode
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
Link copied to clipboard
fun FunctionDeclarationNode(name: FunctionNameNode, labelParameters: Arguments<LabelVariableNode>?, parameters: Arguments<ParameterNode>, labelConstraints: Arguments<IFCDelegationDeclarationNode>?, pcLabel: LabelNode?, body: BlockNode, sourceLocation: SourceLocation, comment: String? = null)