| 382 | } |
| 383 | |
| 384 | void ExpressionVisitor::encounterFieldMember(const QString& name) |
| 385 | { |
| 386 | if (QmlJS::isPrototypeIdentifier(name)) { |
| 387 | // "prototype" is transparent: "object.prototype.foo" = "object.foo", and |
| 388 | // "function.prototype" should point to "function". |
| 389 | m_prototypeDepth = 2; |
| 390 | return; |
| 391 | } |
| 392 | |
| 393 | DeclarationPointer declaration = lastDeclaration(); |
| 394 | DUContext* context = QmlJS::getInternalContext(declaration); |
| 395 | |
| 396 | if (context) { |
| 397 | encounter(name, context); |
| 398 | } else { |
| 399 | encounterNothing(); |
| 400 | } |
| 401 | } |
| 402 | |
| 403 | void ExpressionVisitor::encounterObjectAtLocation(const QmlJS::AST::SourceLocation& location) |
| 404 | { |
nothing calls this directly
no test coverage detected