| 236 | } |
| 237 | |
| 238 | Declaration* getOwnerOfContext(const DUContext* context) |
| 239 | { |
| 240 | if (context->owner()) { |
| 241 | return context->owner(); |
| 242 | } else if (context->type() == DUContext::Function && context->parentContext()) { |
| 243 | return context->parentContext()->owner(); |
| 244 | } else { |
| 245 | return nullptr; |
| 246 | } |
| 247 | } |
| 248 | |
| 249 | RangeInRevision emptyRangeOnLine(const AST::SourceLocation& location) |
| 250 | { |
no test coverage detected