2 * Copyright (c) Facebook, Inc. and its affiliates.
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the "hack" directory of this source tree.
9 (** Returns the definition of the symbol at the given position in the document.
11 This function is for interactive use only, as it may return multiple definitions
12 for the user's convenience. For example, when hovering over a constructor call,
13 it may return both the definition for the class being constructed, and the
14 `__construct` method of the class. Tooling should use
15 [ServerCommandTypes.IDENTIFY_FUNCTION] instead. *)
17 ctx
:Provider_context.t
->
18 entry
:Provider_context.entry
->
21 ServerCommandTypes.Go_to_definition.result