Projectregistry-listed

Define Function

Function Define places a function body in the source owned by its container graph.

Registry listing does not certify support for every language or host environment. Check the selected target’s diagnostics and generated output.

Overview

Kind id
function_implement
Semantics
function.implement
Source
CORE_NODE_REGISTRY

When to use

Select a function and overload, then edit its body graph. Binding and role options affect the selected language’s signature.

Graph to code example

A file-level Library function uses module binding and generates a plain JavaScript function or Python def without an invented class or entry.

Watch for

Constructor, destructor, async and override options depend on the target and owning class. Disabled or ineffective options do not imply generated behavior. Declare and Define remain separate nodes.

Ports

IdDirTypeLabel
exec_ininexecution-
exec_outoutexecution-

Options

IdTypeDefaultNotes
symbolIdstring-
namestringFunction-
roleenumfunctionfunction = named method. constructor / destructor = how that language writes init/teardown. Not separate kinds. · enum: function, constructor, destructor
isVirtualbooleanfalse-
isOverridebooleanfalse-
isGeneratorbooleanfalseMarks the function as a generator. Python def is enough; yield in the body also makes it a generator.
graphTabIdstring-
isExportedbooleanfalse-