MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / get

Method get

src/names.rs:40–42  ·  view source on GitHub ↗

Look up the fully-qualified name for the identifier at `offset`. Returns `None` when no resolved name exists at that position (e.g. keywords, literals, or identifiers that `mago-names` does not track).

(&self, offset: u32)

Source from the content-addressed store, hash-verified

38 /// (e.g. keywords, literals, or identifiers that `mago-names` does
39 /// not track).
40 pub fn get(&self, offset: u32) -> Option<&str> {
41 self.names.get(&offset).map(|(name, _)| name.as_str())
42 }
43
44 /// Whether the name at `offset` was introduced by an explicit `use`
45 /// statement.

Callers 15

mainFunction · 0.45
_reader_loopMethod · 0.45
wait_for_responseMethod · 0.45
wait_for_indexingMethod · 0.45
drain_notificationsMethod · 0.45
provideVirtualMethodsMethod · 0.45
parse_phpcs_jsonFunction · 0.45
parse_phpcs_messageFunction · 0.45
parse_mago_jsonFunction · 0.45
parse_mago_issueFunction · 0.45
parse_edits_from_jsonFunction · 0.45

Calls 2

as_strMethod · 0.80
mapMethod · 0.45

Tested by 1

parse_edits_from_jsonFunction · 0.36