LLVM 22.0.0git
llvm::mustache::ASTNode Class Reference
Inheritance diagram for llvm::mustache::ASTNode:
[legend]

Public Types

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

Public Member Functions

 ASTNode (MustacheContext &Ctx)
 ASTNode (MustacheContext &Ctx, StringRef Body, ASTNode *Parent)
 ASTNode (MustacheContext &Ctx, Type Ty, ArrayRef< StringRef > Accessor, ASTNode *Parent)
void addChild (AstPtr Child)
void setRawBody (StringRef NewBody)
void setIndentation (size_t NewIndentation)
void render (const llvm::json::Value &Data, MustacheOutputStream &OS)
Public Member Functions inherited from llvm::ilist_node_impl< ilist_detail::compute_node_options< ASTNode, Options... >::type >
self_iterator getIterator ()
reverse_self_iterator getReverseIterator ()
std::enable_if_t< T::is_sentinel_tracking_explicit, boolisSentinel () const
 Check whether this is the sentinel node.
Public Member Functions inherited from llvm::ilist_detail::node_parent_access< ilist_node_impl< ilist_detail::compute_node_options< ASTNode, Options... >::type >, ilist_detail::compute_node_options< ASTNode, Options... >::type::parent_ty >
const ilist_detail::compute_node_options< ASTNode, Options... >::type::parent_ty * getParent () const
void setParent (ilist_detail::compute_node_options< ASTNode, Options... >::type::parent_ty *Parent)

Additional Inherited Members

Protected Types inherited from llvm::ilist_node_impl< ilist_detail::compute_node_options< ASTNode, Options... >::type >
using self_iterator
using const_self_iterator
using reverse_self_iterator
using const_reverse_self_iterator
Protected Member Functions inherited from llvm::ilist_node_impl< ilist_detail::compute_node_options< ASTNode, Options... >::type >
 ilist_node_impl ()=default

Detailed Description

Definition at line 165 of file Mustache.cpp.

Member Enumeration Documentation

◆ Type

Enumerator
Root 
Text 
Partial 
Variable 
UnescapeVariable 
Section 
InvertSection 

Definition at line 167 of file Mustache.cpp.

Constructor & Destructor Documentation

◆ ASTNode() [1/3]

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

Definition at line 177 of file Mustache.cpp.

References Root.

Referenced by ASTNode(), and ASTNode().

◆ ASTNode() [2/3]

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

Definition at line 180 of file Mustache.cpp.

References ASTNode(), and Text.

◆ ASTNode() [3/3]

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

Definition at line 185 of file Mustache.cpp.

References ASTNode().

Member Function Documentation

◆ addChild()

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

Definition at line 190 of file Mustache.cpp.

◆ render()

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

◆ setIndentation()

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

Definition at line 194 of file Mustache.cpp.

◆ setRawBody()

void llvm::mustache::ASTNode::setRawBody ( StringRef NewBody)
inline

Definition at line 192 of file Mustache.cpp.


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