[I] FunctionDeclarationStatementNode
Represent a function declaration
Example
Extends
Properties
Property | Modifier | Type | Description | Overrides | Inherited from |
---|---|---|---|---|---|
_id? | public | number | Unique id across the process used to look up NodeLinks | - | BaseNode ._id |
directives? | readonly | readonly DirectiveExpressionNode [] | - | - | BaseNode .directives |
docs? | readonly | readonly DocNode [] | - | - | BaseNode .docs |
end | readonly | number | The ending position measured in UTF-16 code units from the start of the full string. Exclusive. | - | BaseNode .end |
flags | readonly | NodeFlags | - | - | BaseNode .flags |
id | readonly | IdentifierNode | - | - | DeclarationNode .id |
kind | readonly | FunctionDeclarationStatement | - | BaseNode .kind | - |
modifierFlags | readonly | ModifierFlags | - | - | - |
modifiers | readonly | readonly ExternKeywordNode [] | - | - | - |
parameters | readonly | FunctionParameterNode [] | - | - | - |
parent? | readonly | TypeSpecScriptNode | NamespaceStatementNode | - | BaseNode .parent | - |
pos | readonly | number | The starting position of the ranger measured in UTF-16 code units from the start of the full string. Inclusive. | - | BaseNode .pos |
returnType? | readonly | Expression | - | - | - |
symbol | readonly | Sym | Could be undefined but making this optional creates a lot of noise. In practice, you will likely only access symbol in cases where you know the node has a symbol. | - | BaseNode .symbol |