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

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

Collaboration diagram for infix2postfix::FunctionDef:

Public Member Functions

 FunctionDef (Token n, std::vector< Parameter > p, std::unique_ptr< BlockStmt > b, std::unique_ptr< GlobalDecl > g)

Public Attributes

Token name
std::vector< Parameterparams
std::unique_ptr< BlockStmtbody
std::unique_ptr< GlobalDeclglobal_decl
Range range
std::shared_ptr< Symbolsymbol

Detailed Description

Definition at line 227 of file AST.hpp.

Constructor & Destructor Documentation

◆ FunctionDef()

infix2postfix::FunctionDef::FunctionDef ( Token n,
std::vector< Parameter > p,
std::unique_ptr< BlockStmt > b,
std::unique_ptr< GlobalDecl > g )
inline

Definition at line 379 of file AST.hpp.

382 : name(std::move(n)), params(std::move(p)), body(std::move(b)),
383 global_decl(std::move(g)) {
384 range.start = name.range.start;
385 range.end = body ? body->range.end : name.range.end;
386}
std::vector< Parameter > params
Definition AST.hpp:229
std::unique_ptr< BlockStmt > body
Definition AST.hpp:230
std::unique_ptr< GlobalDecl > global_decl
Definition AST.hpp:231

References body, global_decl, name, params, and range.

Member Data Documentation

◆ body

std::unique_ptr<BlockStmt> infix2postfix::FunctionDef::body

Definition at line 230 of file AST.hpp.

Referenced by FunctionDef().

◆ global_decl

std::unique_ptr<GlobalDecl> infix2postfix::FunctionDef::global_decl

Definition at line 231 of file AST.hpp.

Referenced by FunctionDef().

◆ name

Token infix2postfix::FunctionDef::name

Definition at line 228 of file AST.hpp.

Referenced by FunctionDef().

◆ params

std::vector<Parameter> infix2postfix::FunctionDef::params

Definition at line 229 of file AST.hpp.

Referenced by FunctionDef().

◆ range

Range infix2postfix::FunctionDef::range

Definition at line 232 of file AST.hpp.

Referenced by FunctionDef().

◆ symbol

std::shared_ptr<Symbol> infix2postfix::FunctionDef::symbol

Definition at line 233 of file AST.hpp.


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