Definition at line 65 of file SkSLGetReturnComplexity.cpp.
◆ INHERITED
◆ CountReturnsWithLimit()
◆ visitExpression()
bool SkSL::CountReturnsWithLimit::visitExpression |
( |
const Expression & |
expr | ) |
|
|
inlineoverride |
◆ visitStatement()
bool SkSL::CountReturnsWithLimit::visitStatement |
( |
const Statement & |
stmt | ) |
|
|
inlineoverride |
Definition at line 76 of file SkSLGetReturnComplexity.cpp.
76 {
77 switch (stmt.kind()) {
78 case Statement::Kind::kReturn: {
82 }
83 case Statement::Kind::kVarDeclaration: {
86 }
88 }
89 case Statement::Kind::kBlock: {
90 int depthIncrement = stmt.as<
Block>().isScope() ? 1 : 0;
95
96
97
98
100 }
102 }
103 default:
105 }
106 }
virtual bool visitStatement(typename T::Statement &statement)
static float max(float r, float g, float b)
◆ fDeepestReturn
int SkSL::CountReturnsWithLimit::fDeepestReturn = 0 |
◆ fLimit
int SkSL::CountReturnsWithLimit::fLimit = 0 |
◆ fNumReturns
int SkSL::CountReturnsWithLimit::fNumReturns = 0 |
◆ fScopedBlockDepth
int SkSL::CountReturnsWithLimit::fScopedBlockDepth = 0 |
◆ fVariablesInBlocks
bool SkSL::CountReturnsWithLimit::fVariablesInBlocks = false |
The documentation for this class was generated from the following file: