| 1103 | } |
| 1104 | |
| 1105 | static Function* nestedInFunction(const Scope* scope) { |
| 1106 | while (scope) { |
| 1107 | if (scope->type == ScopeType::eFunction) |
| 1108 | break; |
| 1109 | scope = scope->nestedIn; |
| 1110 | } |
| 1111 | if (!scope) |
| 1112 | return nullptr; |
| 1113 | return scope->function; |
| 1114 | } |
| 1115 | |
| 1116 | bool isClassOrStruct() const { |
| 1117 | return (type == ScopeType::eClass || type == ScopeType::eStruct); |
no outgoing calls
no test coverage detected