Skip to content

Commit 69c8cf1

Browse files
committed
Add support for goto definition for object members
1 parent d524c9e commit 69c8cf1

3 files changed

Lines changed: 1629 additions & 3 deletions

File tree

src/definition/mod.rs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
/// Goto definition support.
22
///
33
/// This module contains the logic for resolving "go to definition" requests,
4-
/// allowing users to jump from a class/interface/trait/enum name reference
5-
/// to its definition in the source code.
4+
/// allowing users to jump from a symbol reference to its definition in the
5+
/// source code.
66
///
7-
/// - [`resolve`]: Word extraction, name resolution, and definition location lookup.
7+
/// Supported symbols:
8+
/// - **Class-like types**: class, interface, trait, enum references
9+
/// - **Methods**: `$this->method()`, `self::method()`, `MyClass::method()`, `$var->method()`
10+
/// - **Properties**: `$this->property`, `$var->property`, `MyClass::$staticProp`
11+
/// - **Constants**: `self::MY_CONST`, `MyClass::MY_CONST`, `parent::MY_CONST`
12+
/// - **Chained access**: `$this->prop->method()`
13+
///
14+
/// - [`resolve`]: Word extraction, member access detection, name resolution,
15+
/// and definition location lookup.
816
mod resolve;

0 commit comments

Comments
 (0)