Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkSL::Parser::AutoSymbolTable Class Reference

Public Member Functions

 AutoSymbolTable (Parser *p, std::unique_ptr< SymbolTable > *newSymbolTable, bool enable=true)
 
 ~AutoSymbolTable ()
 

Detailed Description

Definition at line 127 of file SkSLParser.cpp.

Constructor & Destructor Documentation

◆ 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) {
131 fParser = p;
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: