|
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 114 of file Mustache.cpp.
|
strong |
| Enumerator | |
|---|---|
| Text | |
| Variable | |
| Partial | |
| SectionOpen | |
| SectionClose | |
| InvertSectionOpen | |
| UnescapeVariable | |
| Comment | |
| SetDelimiter | |
Definition at line 116 of file Mustache.cpp.
|
inline |
Definition at line 128 of file Mustache.cpp.
References AccessorValue, RawBody, Text, TokenBody, and TokenType.
|
inline |
Definition at line 132 of file Mustache.cpp.
References AccessorValue, Comment, getTokenType(), Indentation, RawBody, llvm::StringRef::substr(), TokenBody, TokenType, and Variable.
Definition at line 144 of file Mustache.cpp.
References AccessorValue.
|
inline |
Definition at line 150 of file Mustache.cpp.
References Indentation.
Definition at line 152 of file Mustache.cpp.
References Comment, InvertSectionOpen, Partial, SectionClose, SectionOpen, SetDelimiter, UnescapeVariable, and Variable.
Referenced by Token().
|
inline |
Definition at line 146 of file Mustache.cpp.
References TokenType.
Referenced by llvm::mustache::tokenize().
|
inline |
Definition at line 148 of file Mustache.cpp.
References Indentation.
Referenced by llvm::mustache::stripTokenBefore().
Definition at line 178 of file Mustache.cpp.
Referenced by getAccessor(), Token(), and Token().
| size_t llvm::mustache::Token::Indentation |
Definition at line 179 of file Mustache.cpp.
Referenced by getIndentation(), setIndentation(), and Token().
| StringRef llvm::mustache::Token::RawBody |
Definition at line 175 of file Mustache.cpp.
Referenced by llvm::mustache::hasTextAhead(), llvm::mustache::hasTextBehind(), Token(), and Token().
| StringRef llvm::mustache::Token::TokenBody |
Definition at line 177 of file Mustache.cpp.
Referenced by llvm::mustache::stripTokenAhead(), llvm::mustache::stripTokenBefore(), Token(), and Token().
| Type llvm::mustache::Token::TokenType |
Definition at line 173 of file Mustache.cpp.