LLVM 22.0.0git
|
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) |
Definition at line 121 of file Mustache.cpp.
Enumerator | |
---|---|
Root | |
Text | |
Partial | |
Variable | |
UnescapeVariable | |
Section | |
InvertSection |
Definition at line 123 of file Mustache.cpp.
|
inline |
Definition at line 133 of file Mustache.cpp.
|
inline |
Definition at line 139 of file Mustache.cpp.
|
inline |
Definition at line 147 of file Mustache.cpp.
|
inline |
Definition at line 154 of file Mustache.cpp.
void llvm::mustache::ASTNode::render | ( | const llvm::json::Value & | Data, |
llvm::raw_ostream & | OS | ||
) |
Definition at line 569 of file Mustache.cpp.
References llvm::StringMap< ValueTy, AllocatorTy >::contains(), llvm::StringMap< ValueTy, AllocatorTy >::end(), llvm::StringMap< ValueTy, AllocatorTy >::find(), llvm::json::Value::getAsArray(), InvertSection, llvm_unreachable, OS, Partial, Root, Section, Text, llvm::mustache::toMustacheString(), UnescapeVariable, and Variable.
|
inline |
Definition at line 158 of file Mustache.cpp.
|
inline |
Definition at line 156 of file Mustache.cpp.