Definition at line 103 of file SkSLParser.cpp.
◆ AutoDepth()
SkSL::Parser::AutoDepth::AutoDepth |
( |
Parser * |
p | ) |
|
|
inline |
◆ ~AutoDepth()
SkSL::Parser::AutoDepth::~AutoDepth |
( |
| ) |
|
|
inline |
Definition at line 107 of file SkSLParser.cpp.
107 {
108 fParser->fDepth -= fDepth;
109 }
◆ increase()
bool SkSL::Parser::AutoDepth::increase |
( |
| ) |
|
|
inline |
Definition at line 111 of file SkSLParser.cpp.
111 {
112 ++fDepth;
113 ++fParser->fDepth;
115 fParser->error(fParser->peek(), "exceeded max parse depth");
116 fParser->fEncounteredFatalError = true;
117 return false;
118 }
119 return true;
120 }
static constexpr int kMaxParseDepth
The documentation for this class was generated from the following file: