[torque-ls] Add "goto definition" support for method calls
R=sigurds@chromium.org Bug: v8:8880 Change-Id: Ib862842f3624689d004b1b7750f260be79fc9c36 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1598693 Commit-Queue: Simon Zünd <szuend@chromium.org> Commit-Queue: Sigurd Schneider <sigurds@chromium.org> Auto-Submit: Simon Zünd <szuend@chromium.org> Reviewed-by: Sigurd Schneider <sigurds@chromium.org> Cr-Commit-Position: refs/heads/master@{#61268}
This commit is contained in:
parent
9fe37d238e
commit
9f73c480ef
@ -2480,6 +2480,10 @@ VisitResult ImplementationVisitor::Visit(CallMethodExpression* expr) {
|
||||
QualifiedName qualified_name = QualifiedName(method_name);
|
||||
Callable* callable = nullptr;
|
||||
callable = LookupMethod(method_name, target, arguments, {});
|
||||
if (GlobalContext::collect_language_server_data()) {
|
||||
LanguageServerData::AddDefinition(expr->method->name->pos,
|
||||
callable->IdentifierPosition());
|
||||
}
|
||||
return scope.Yield(GenerateCall(callable, target, arguments, {}, false));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user