LLVM 22.0.0git
|
Public Types | |
enum class | Type { Text , Variable , Partial , SectionOpen , SectionClose , InvertSectionOpen , UnescapeVariable , Comment , SetDelimiter } |
Public Member Functions | |
Token (StringRef Str) | |
Token (StringRef RawBody, StringRef TokenBody, char Identifier, MustacheContext &Ctx) | |
ArrayRef< StringRef > | 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 |
StringRef | RawBody |
StringRef | TokenBody |
ArrayRef< StringRef > | AccessorValue |
size_t | Indentation |
Definition at line 95 of file Mustache.cpp.
|
strong |
Enumerator | |
---|---|
Text | |
Variable | |
Partial | |
SectionOpen | |
SectionClose | |
InvertSectionOpen | |
UnescapeVariable | |
Comment | |
SetDelimiter |
Definition at line 97 of file Mustache.cpp.
|
inline |
Definition at line 109 of file Mustache.cpp.
References AccessorValue, RawBody, Text, TokenBody, and TokenType.
|
inline |
Definition at line 113 of file Mustache.cpp.
References AccessorValue, Comment, getTokenType(), Indentation, RawBody, llvm::StringRef::substr(), TokenBody, TokenType, and Variable.
Definition at line 125 of file Mustache.cpp.
References AccessorValue.
|
inline |
Definition at line 131 of file Mustache.cpp.
References Indentation.
Definition at line 133 of file Mustache.cpp.
References Comment, InvertSectionOpen, Partial, SectionClose, SectionOpen, SetDelimiter, UnescapeVariable, and Variable.
Referenced by Token().
|
inline |
Definition at line 127 of file Mustache.cpp.
References TokenType.
Referenced by llvm::mustache::tokenize().
|
inline |
Definition at line 129 of file Mustache.cpp.
References Indentation.
Referenced by llvm::mustache::stripTokenBefore().
Definition at line 159 of file Mustache.cpp.
Referenced by getAccessor(), Token(), and Token().
size_t llvm::mustache::Token::Indentation |
Definition at line 160 of file Mustache.cpp.
Referenced by getIndentation(), setIndentation(), and Token().
StringRef llvm::mustache::Token::RawBody |
Definition at line 156 of file Mustache.cpp.
Referenced by llvm::mustache::hasTextAhead(), llvm::mustache::hasTextBehind(), Token(), and Token().
StringRef llvm::mustache::Token::TokenBody |
Definition at line 158 of file Mustache.cpp.
Referenced by llvm::mustache::stripTokenAhead(), llvm::mustache::stripTokenBefore(), Token(), and Token().
Type llvm::mustache::Token::TokenType |
Definition at line 154 of file Mustache.cpp.