sammine-lang
|
A prototype to present "func func_name(...) -> type;". More...
#include <Ast.h>
Public Member Functions | |
PrototypeAST (std::shared_ptr< Token > functionName, std::shared_ptr< Token > returnType, std::vector< std::unique_ptr< AST::TypedVarAST > > parameterVectors) | |
PrototypeAST (std::shared_ptr< Token > functionName, std::vector< std::unique_ptr< AST::TypedVarAST > > parameterVectors) | |
virtual std::string | getTreeName () override |
void | accept_vis (ASTVisitor *visitor) override |
virtual void | walk_with_preorder (ASTVisitor *visitor) override |
virtual void | walk_with_postorder (ASTVisitor *visitor) override |
virtual Type | accept_synthesis (TypeCheckerVisitor *visitor) override |
![]() | |
AstBase * | join_location (AstBase *ast) |
AstBase * | join_location (std::shared_ptr< Token > tok) |
AstBase * | join_location (sammine_util::Location location) |
sammine_util::Location | get_location () |
bool | synthesized () const |
bool | checked () const |
void | set_checked () |
Public Attributes | |
llvm::Function * | function |
std::string | functionName |
std::string | returnType |
std::vector< std::unique_ptr< AST::TypedVarAST > > | parameterVectors |
![]() | |
bool | pe = false |
llvm::Value * | val |
Type | type = Type::NonExistent() |
Additional Inherited Members | |
![]() | |
sammine_util::Location | location |
A prototype to present "func func_name(...) -> type;".
|
inlineoverridevirtual |
Implements sammine_lang::AST::Visitable.
|
inlineoverridevirtual |
Implements sammine_lang::AST::Visitable.
|
inlineoverridevirtual |
Implements sammine_lang::AST::Visitable.
|
inlineoverridevirtual |
Implements sammine_lang::AST::Visitable.
|
inlineoverridevirtual |
Implements sammine_lang::AST::Visitable.