LLVM 22.0.0git
llvm::mustache::ASTNode Class Reference

Public Types

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

Public Member Functions

 ASTNode (MustacheContext &Ctx)
 ASTNode (MustacheContext &Ctx, std::string Body, ASTNode *Parent)
 ASTNode (MustacheContext &Ctx, Type Ty, Accessor Accessor, ASTNode *Parent)
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 129 of file Mustache.cpp.

Member Enumeration Documentation

◆ Type

Enumerator
Root 
Text 
Partial 
Variable 
UnescapeVariable 
Section 
InvertSection 

Definition at line 131 of file Mustache.cpp.

Constructor & Destructor Documentation

◆ ASTNode() [1/3]

llvm::mustache::ASTNode::ASTNode ( MustacheContext & Ctx)
inline

Definition at line 141 of file Mustache.cpp.

References Root.

Referenced by ASTNode(), and ASTNode().

◆ ASTNode() [2/3]

llvm::mustache::ASTNode::ASTNode ( MustacheContext & Ctx,
std::string Body,
ASTNode * Parent )
inline

Definition at line 144 of file Mustache.cpp.

References ASTNode(), llvm::move(), and Text.

◆ ASTNode() [3/3]

llvm::mustache::ASTNode::ASTNode ( MustacheContext & Ctx,
Type Ty,
Accessor Accessor,
ASTNode * Parent )
inline

Definition at line 149 of file Mustache.cpp.

References ASTNode(), and llvm::move().

Member Function Documentation

◆ addChild()

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

Definition at line 153 of file Mustache.cpp.

◆ render()

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

Definition at line 712 of file Mustache.cpp.

References InvertSection, llvm_unreachable, Partial, Root, Section, Text, UnescapeVariable, and Variable.

◆ setIndentation()

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

Definition at line 157 of file Mustache.cpp.

◆ setRawBody()

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

Definition at line 155 of file Mustache.cpp.


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