| 401 | } |
| 402 | |
| 403 | void ExpressionVisitor::encounterObjectAtLocation(const QmlJS::AST::SourceLocation& location) |
| 404 | { |
| 405 | DUChainReadLocker lock; |
| 406 | |
| 407 | // Find the anonymous declaration corresponding to the function. This is |
| 408 | // the owner of the current context (function expressions create new contexts) |
| 409 | Declaration* dec = QmlJS::getOwnerOfContext(m_context->topContext()->findContextAt( |
| 410 | CursorInRevision(location.startLine-1, location.startColumn) |
| 411 | )); |
| 412 | |
| 413 | if (dec && dec->abstractType()) { |
| 414 | encounterLvalue(DeclarationPointer(dec)); |
| 415 | } else { |
| 416 | encounterNothing(); |
| 417 | } |
| 418 | } |
| 419 | |
| 420 | void ExpressionVisitor::instantiateCurrentDeclaration() |
| 421 | { |
nothing calls this directly
no test coverage detected