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

Method set_empty

src/completion/variable/forward_walk.rs:1869–1871  ·  view source on GitHub ↗

Record that a variable exists in scope with an empty type list. This prevents the variable from appearing unseen by the forward walker.

(&mut self, var_name: &str)

Source from the content-addressed store, hash-verified

1867 /// This prevents the variable from appearing unseen by the forward
1868 /// walker.
1869 pub fn set_empty(&mut self, var_name: &str) {
1870 self.locals.entry(atom(var_name)).or_default();
1871 }
1872
1873 /// Insert a variable's types from parameter seeding.
1874 pub fn seed(&mut self, var_name: &str, types: Vec<ResolvedType>) {

Callers 4

seed_paramsFunction · 0.80
process_statementFunction · 0.80
process_assignment_exprFunction · 0.80
bind_foreach_valueFunction · 0.80

Calls 1

atomFunction · 0.85

Tested by

no test coverage detected