picceler
Loading...
Searching...
No Matches
picceler::ModuleNode Class Reference

AST node for the entire module. More...

#include <ast.h>

Inheritance diagram for picceler::ModuleNode:
picceler::ASTNode

Public Member Functions

 ModuleNode (Location loc)
auto statements () const
void normalizeTopLevelStatements ()
bool wrapTopLevelStatementsInMain ()
void addStatement (std::unique_ptr< ASTNode > statement)
std::string toString () const override
Public Member Functions inherited from picceler::ASTNode
 ASTNode ()
virtual ~ASTNode ()=default
 ASTNode (Location loc)
 ASTNode (const ASTNode &)=delete
ASTNodeoperator= (const ASTNode &)=delete
 ASTNode (ASTNode &&)=default
ASTNodeoperator= (ASTNode &&)=default
Location location () const

Detailed Description

AST node for the entire module.

Constructor & Destructor Documentation

◆ ModuleNode()

picceler::ModuleNode::ModuleNode ( Location loc)
inline

Member Function Documentation

◆ addStatement()

void picceler::ModuleNode::addStatement ( std::unique_ptr< ASTNode > statement)
inline

◆ normalizeTopLevelStatements()

void picceler::ModuleNode::normalizeTopLevelStatements ( )

◆ statements()

auto picceler::ModuleNode::statements ( ) const
inline

◆ toString()

std::string picceler::ModuleNode::toString ( ) const
overridevirtual

Implements picceler::ASTNode.

◆ wrapTopLevelStatementsInMain()

bool picceler::ModuleNode::wrapTopLevelStatementsInMain ( )

The documentation for this class was generated from the following files:
  • /__w/picceler/picceler/include/ast.h
  • /__w/picceler/picceler/src/ast.cpp