FunctionDeclarationNode
class FunctionDeclarationNode(name: FunctionNameNode, pcLabel: LabelNode?, parameters: Arguments<ParameterNode>, body: BlockNode, sourceLocation: SourceLocation) : 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)
Content copied to clipboard
Functions
getParameter
Link copied to clipboard
getParameterAtIndex
Link copied to clipboard
toDocument
Link copied to clipboard
toDocumentWithMetadata
Link copied to clipboard
toSurfaceNode
Link copied to clipboard
open override fun toSurfaceNode(metadata: Metadata): FunctionDeclarationNode
Content copied to clipboard
Returns a representation of this node in the surface syntax.
Properties
name
Link copied to clipboard
parameters
Link copied to clipboard
sourceLocation
Link copied to clipboard