LLVM 22.0.0git
|
Public Types | |
enum class | Type { Text , Variable , Partial , SectionOpen , SectionClose , InvertSectionOpen , UnescapeVariable , Comment } |
Public Member Functions | |
Token (std::string Str) | |
Token (std::string RawBody, std::string TokenBody, char Identifier) | |
Accessor | getAccessor () const |
Type | getType () const |
void | setIndentation (size_t NewIndentation) |
size_t | getIndentation () const |
Static Public Member Functions | |
static Type | getTokenType (char Identifier) |
Public Attributes | |
Type | TokenType |
std::string | RawBody |
std::string | TokenBody |
Accessor | AccessorValue |
size_t | Indentation |
Definition at line 54 of file Mustache.cpp.
|
strong |
Enumerator | |
---|---|
Text | |
Variable | |
Partial | |
SectionOpen | |
SectionClose | |
InvertSectionOpen | |
UnescapeVariable | |
Comment |
Definition at line 56 of file Mustache.cpp.
|
inline |
Definition at line 67 of file Mustache.cpp.
|
inline |
Definition at line 71 of file Mustache.cpp.
References AccessorValue, Comment, getTokenType(), llvm::StringRef::substr(), TokenType, and Variable.
|
inline |
Definition at line 83 of file Mustache.cpp.
References AccessorValue.
|
inline |
Definition at line 89 of file Mustache.cpp.
References Indentation.
Definition at line 91 of file Mustache.cpp.
References Comment, InvertSectionOpen, Partial, SectionClose, SectionOpen, UnescapeVariable, and Variable.
Referenced by Token().
|
inline |
Definition at line 85 of file Mustache.cpp.
References TokenType.
Referenced by llvm::mustache::tokenize().
|
inline |
Definition at line 87 of file Mustache.cpp.
References Indentation.
Referenced by llvm::mustache::stripTokenBefore().
Accessor llvm::mustache::Token::AccessorValue |
Definition at line 115 of file Mustache.cpp.
Referenced by getAccessor(), and Token().
size_t llvm::mustache::Token::Indentation |
Definition at line 116 of file Mustache.cpp.
Referenced by getIndentation(), and setIndentation().
std::string llvm::mustache::Token::RawBody |
Definition at line 112 of file Mustache.cpp.
Referenced by llvm::mustache::hasTextAhead(), and llvm::mustache::hasTextBehind().
std::string llvm::mustache::Token::TokenBody |
Definition at line 114 of file Mustache.cpp.
Referenced by llvm::mustache::stripTokenAhead(), and llvm::mustache::stripTokenBefore().
Type llvm::mustache::Token::TokenType |
Definition at line 110 of file Mustache.cpp.