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

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

Collaboration diagram for infix2postfix::UnaryExpr:

Public Member Functions

 UnaryExpr (Token o, std::unique_ptr< Expr > r)

Public Attributes

Token op
std::unique_ptr< Exprright
Range range

Detailed Description

Definition at line 58 of file AST.hpp.

Constructor & Destructor Documentation

◆ UnaryExpr()

infix2postfix::UnaryExpr::UnaryExpr ( Token o,
std::unique_ptr< Expr > r )
inline

Definition at line 285 of file AST.hpp.

286 : op(std::move(o)), right(std::move(r)) {
287 range.start = op.range.start;
288 range.end = right ? right->range().end : op.range.end;
289}
std::unique_ptr< Expr > right
Definition AST.hpp:60

References op, range, and right.

Member Data Documentation

◆ op

Token infix2postfix::UnaryExpr::op

Definition at line 59 of file AST.hpp.

Referenced by UnaryExpr().

◆ range

Range infix2postfix::UnaryExpr::range

Definition at line 61 of file AST.hpp.

Referenced by UnaryExpr().

◆ right

std::unique_ptr<Expr> infix2postfix::UnaryExpr::right

Definition at line 60 of file AST.hpp.

Referenced by UnaryExpr().


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