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

AST node for variable references. More...

#include <ast.h>

Inheritance diagram for picceler::VariableNode:
picceler::ASTNode

Public Member Functions

 VariableNode (Location loc, std::string name, std::optional< std::string > type=std::nullopt)
const std::string & name () const
const std::optional< std::string > & type () const
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 variable references.

Constructor & Destructor Documentation

◆ VariableNode()

picceler::VariableNode::VariableNode ( Location loc,
std::string name,
std::optional< std::string > type = std::nullopt )
inline

Member Function Documentation

◆ name()

const std::string & picceler::VariableNode::name ( ) const
inline

◆ toString()

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

Implements picceler::ASTNode.

◆ type()

const std::optional< std::string > & picceler::VariableNode::type ( ) const
inline

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