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

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

Collaboration diagram for infix2postfix::WhileStmt:

Public Member Functions

 WhileStmt (std::unique_ptr< Expr > c, std::unique_ptr< Stmt > b)

Public Attributes

std::unique_ptr< Exprcondition
std::unique_ptr< Stmtbody
Range range

Detailed Description

Definition at line 176 of file AST.hpp.

Constructor & Destructor Documentation

◆ WhileStmt()

infix2postfix::WhileStmt::WhileStmt ( std::unique_ptr< Expr > c,
std::unique_ptr< Stmt > b )
inline

Definition at line 355 of file AST.hpp.

356 : condition(std::move(c)), body(std::move(b)) {
357 if (condition) {
358 range.start = condition->range().start;
359 }
360 if (body) {
361 range.end = body->range().end;
362 } else if (condition) {
363 range.end = condition->range().end;
364 }
365}
std::unique_ptr< Stmt > body
Definition AST.hpp:178
std::unique_ptr< Expr > condition
Definition AST.hpp:177

References body, condition, and range.

Member Data Documentation

◆ body

std::unique_ptr<Stmt> infix2postfix::WhileStmt::body

Definition at line 178 of file AST.hpp.

Referenced by WhileStmt().

◆ condition

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

Definition at line 177 of file AST.hpp.

Referenced by WhileStmt().

◆ range

Range infix2postfix::WhileStmt::range

Definition at line 179 of file AST.hpp.

Referenced by WhileStmt().


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