LLVM 22.0.0git
Public Types | Public Member Functions | List of all members
llvm::mustache::ASTNode Class Reference

Public Types

enum  Type {
  Root , Text , Partial , Variable ,
  UnescapeVariable , Section , InvertSection
}
 

Public Member Functions

 ASTNode (llvm::StringMap< AstPtr > &Partials, llvm::StringMap< Lambda > &Lambdas, llvm::StringMap< SectionLambda > &SectionLambdas, EscapeMap &Escapes)
 
 ASTNode (std::string Body, ASTNode *Parent, llvm::StringMap< AstPtr > &Partials, llvm::StringMap< Lambda > &Lambdas, llvm::StringMap< SectionLambda > &SectionLambdas, EscapeMap &Escapes)
 
 ASTNode (Type Ty, Accessor Accessor, ASTNode *Parent, llvm::StringMap< AstPtr > &Partials, llvm::StringMap< Lambda > &Lambdas, llvm::StringMap< SectionLambda > &SectionLambdas, EscapeMap &Escapes)
 
void addChild (AstPtr Child)
 
void setRawBody (std::string NewBody)
 
void setIndentation (size_t NewIndentation)
 
void render (const llvm::json::Value &Data, llvm::raw_ostream &OS)
 

Detailed Description

Definition at line 121 of file Mustache.cpp.

Member Enumeration Documentation

◆ Type

Enumerator
Root 
Text 
Partial 
Variable 
UnescapeVariable 
Section 
InvertSection 

Definition at line 123 of file Mustache.cpp.

Constructor & Destructor Documentation

◆ ASTNode() [1/3]

llvm::mustache::ASTNode::ASTNode ( llvm::StringMap< AstPtr > &  Partials,
llvm::StringMap< Lambda > &  Lambdas,
llvm::StringMap< SectionLambda > &  SectionLambdas,
EscapeMap Escapes 
)
inline

Definition at line 133 of file Mustache.cpp.

◆ ASTNode() [2/3]

llvm::mustache::ASTNode::ASTNode ( std::string  Body,
ASTNode Parent,
llvm::StringMap< AstPtr > &  Partials,
llvm::StringMap< Lambda > &  Lambdas,
llvm::StringMap< SectionLambda > &  SectionLambdas,
EscapeMap Escapes 
)
inline

Definition at line 139 of file Mustache.cpp.

◆ ASTNode() [3/3]

llvm::mustache::ASTNode::ASTNode ( Type  Ty,
Accessor  Accessor,
ASTNode Parent,
llvm::StringMap< AstPtr > &  Partials,
llvm::StringMap< Lambda > &  Lambdas,
llvm::StringMap< SectionLambda > &  SectionLambdas,
EscapeMap Escapes 
)
inline

Definition at line 147 of file Mustache.cpp.

Member Function Documentation

◆ addChild()

void llvm::mustache::ASTNode::addChild ( AstPtr  Child)
inline

Definition at line 154 of file Mustache.cpp.

◆ render()

void llvm::mustache::ASTNode::render ( const llvm::json::Value Data,
llvm::raw_ostream OS 
)

◆ setIndentation()

void llvm::mustache::ASTNode::setIndentation ( size_t  NewIndentation)
inline

Definition at line 158 of file Mustache.cpp.

◆ setRawBody()

void llvm::mustache::ASTNode::setRawBody ( std::string  NewBody)
inline

Definition at line 156 of file Mustache.cpp.


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