Elsa Ast Type Function
Jump to navigation
Jump to search
Function is a Ast type node (without any subtype nodes). Function is a record.
Record Data Fields
- function_dflags : declFlags
- retspec : TypeSpecifier
- nameAndParams : Declarator
- function_inits : MemberInit list
- function_body : Statement (* = S_compound *) option
- function_handlers : Handler list
- funcType : TY_Function
- receiver : Variable option
- retVar : Variable option
- function_dtor_statement : Statement option
- implicitlyDefined : bool
Subtype Nodes (Subclasses)
Function has no subtype nodes.
Comments
Please make your modifications only below, because the content above will be regenerated automatically from time to time.
Location
Function nodes don't have a sourceLoc field, but the syntax nodes above Function nodes do.
Function name
To obtain the function name go to the declarator via nameAndParams and extract the name of the declarator_var. Variable name and declarator variable are always present, as far as I can tell.