VapourSynth-llvmexpr
Loading...
Searching...
No Matches
infix2postfix::GotoStmt Struct Reference

#include <llvmexpr/frontend/infix2postfix/AST.hpp>

Collaboration diagram for infix2postfix::GotoStmt:

Public Member Functions

 GotoStmt (Token kw, Token l, std::unique_ptr< Expr > c)

Public Attributes

Token keyword
Token label
std::unique_ptr< Exprcondition
Range range
std::shared_ptr< Symboltarget_label_symbol

Detailed Description

Definition at line 200 of file AST.hpp.

Constructor & Destructor Documentation

◆ GotoStmt()

infix2postfix::GotoStmt::GotoStmt ( Token kw,
Token l,
std::unique_ptr< Expr > c )
inline

Definition at line 373 of file AST.hpp.

374 : keyword(std::move(kw)), label(std::move(l)), condition(std::move(c)) {
375 range.start = keyword.range.start;
376 range.end = condition ? condition->range().end : label.range.end;
377}
std::unique_ptr< Expr > condition
Definition AST.hpp:203

References condition, keyword, label, and range.

Member Data Documentation

◆ condition

std::unique_ptr<Expr> infix2postfix::GotoStmt::condition

Definition at line 203 of file AST.hpp.

Referenced by GotoStmt().

◆ keyword

Token infix2postfix::GotoStmt::keyword

Definition at line 201 of file AST.hpp.

Referenced by GotoStmt().

◆ label

Token infix2postfix::GotoStmt::label

Definition at line 202 of file AST.hpp.

Referenced by GotoStmt().

◆ range

Range infix2postfix::GotoStmt::range

Definition at line 204 of file AST.hpp.

Referenced by GotoStmt().

◆ target_label_symbol

std::shared_ptr<Symbol> infix2postfix::GotoStmt::target_label_symbol

Definition at line 205 of file AST.hpp.


The documentation for this struct was generated from the following file:
  • llvmexpr/frontend/infix2postfix/AST.hpp