Definition at line 127 of file SkSLParser.cpp.
◆ AutoSymbolTable()
SkSL::Parser::AutoSymbolTable::AutoSymbolTable |
( |
Parser * |
p, |
|
|
std::unique_ptr< SymbolTable > * |
newSymbolTable, |
|
|
bool |
enable = true |
|
) |
| |
|
inline |
Definition at line 129 of file SkSLParser.cpp.
129 {
130 if (enable) {
132 SymbolTable*& ctxSymbols = this->contextSymbolTable();
133 *newSymbolTable = std::make_unique<SymbolTable>(ctxSymbols, ctxSymbols->isBuiltin());
134 ctxSymbols = newSymbolTable->get();
135 }
136 }
◆ ~AutoSymbolTable()
SkSL::Parser::AutoSymbolTable::~AutoSymbolTable |
( |
| ) |
|
|
inline |
Definition at line 138 of file SkSLParser.cpp.
138 {
139 if (fParser) {
140 SymbolTable*& ctxSymbols = this->contextSymbolTable();
141 ctxSymbols = ctxSymbols->fParent;
142 }
143 }
The documentation for this class was generated from the following file: