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

#include <ast.hpp>

Inheritance diagram for inCodeBlockStmt:
Collaboration diagram for inCodeBlockStmt:

Classes

union  vValue
 

Public Types

enum class  vKind : int16_t {
  ifStmt , whileStmt , forStmt , forEachStmt ,
  returnStmt , continueStmt , breakStmt , letStmt ,
  codeBlock , tryCatchStmt , throwStmt , yieldStmt ,
  rExpr
}
 

Public Member Functions

vKindgetKind ()
 
vValuegetValue ()
 
- 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

enum yoi::inCodeBlockStmt::vKind kind
 
marcoDescriptormarco
 
union yoi::inCodeBlockStmt::vValue value
 

Detailed Description

Definition at line 910 of file ast.hpp.

Member Enumeration Documentation

◆ vKind

enum class vKind : int16_t
strong
Enumerator
ifStmt 
whileStmt 
forStmt 
forEachStmt 
returnStmt 
continueStmt 
breakStmt 
letStmt 
codeBlock 
tryCatchStmt 
throwStmt 
yieldStmt 
rExpr 

Definition at line 912 of file ast.hpp.

Member Function Documentation

◆ getKind()

inCodeBlockStmt::vKind & getKind ( )

Definition at line 463 of file ast.cpp.

Referenced by visitor::visit().

Here is the caller graph for this function:

◆ getValue()

inCodeBlockStmt::vValue & getValue ( )

Definition at line 467 of file ast.cpp.

Referenced by visitor::visit().

Here is the caller graph for this function:

Member Data Documentation

◆ kind

◆ marco

Definition at line 928 of file ast.hpp.

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

◆ value


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