hoshi-lang dev
Yet another programming language
Loading...
Searching...
No Matches
funcDefStmt Class Reference

#include <ast.hpp>

Inheritance diagram for funcDefStmt:
Collaboration diagram for funcDefStmt:

Public Member Functions

identifierWithDefTemplateArggetId ()
 
definitionArgumentsgetArgs ()
 
typeSpecgetResultType ()
 
codeBlockgetBlock ()
 
- Public Member Functions inherited from AST
 AST ()
 
 AST (lexer::token token)
 
std::tuple< yoi::indexT, yoi::indexTgetLocation ()
 
yoi::indexT getLine ()
 
yoi::indexT getColumn ()
 
yoi::lexer::tokengetToken ()
 

Public Attributes

yoi::vec< lexer::tokenattrs
 
identifierWithDefTemplateArgid
 
definitionArgumentsargs
 
typeSpecresultType
 
codeBlockblock
 

Detailed Description

Definition at line 624 of file ast.hpp.

Member Function Documentation

◆ getArgs()

definitionArguments & getArgs ( )

Definition at line 275 of file ast.cpp.

References funcDefStmt::args.

Referenced by visitor::specializeFunctionTemplate(), and visitor::visit().

Here is the caller graph for this function:

◆ getBlock()

codeBlock & getBlock ( )

Definition at line 283 of file ast.cpp.

References funcDefStmt::block.

Referenced by visitor::specializeFunctionTemplate().

Here is the caller graph for this function:

◆ getId()

Definition at line 271 of file ast.cpp.

References funcDefStmt::id.

Referenced by visitor::visit().

Here is the caller graph for this function:

◆ getResultType()

typeSpec & getResultType ( )

Definition at line 279 of file ast.cpp.

References funcDefStmt::resultType.

Referenced by visitor::specializeFunctionTemplate(), and visitor::visit().

Here is the caller graph for this function:

Member Data Documentation

◆ args

Definition at line 628 of file ast.hpp.

Referenced by yoi::finalizeAST(), Formatter::format(), and funcDefStmt::getArgs().

◆ attrs

Definition at line 626 of file ast.hpp.

Referenced by Formatter::format(), and visitor::visit().

◆ block

codeBlock* block

◆ id

◆ resultType

typeSpec* resultType

Definition at line 629 of file ast.hpp.

Referenced by yoi::finalizeAST(), Formatter::format(), and funcDefStmt::getResultType().


The documentation for this class was generated from the following files: