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) : 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)
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns a representation of this node in the surface syntax.
Properties
Link copied to clipboard
Link copied to clipboard
Extensions
Link copied to clipboard
Returns this node and all its descendants in post order.
Link copied to clipboard
Link copied to clipboard
A FreshNameGenerator that will avoid all Variable names in this node.