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

Method set

src/completion/variable/forward_walk.rs:1859–1864  ·  view source on GitHub ↗

Insert or overwrite a variable's types.

(&mut self, var_name: &str, types: Vec<ResolvedType>)

Source from the content-addressed store, hash-verified

1857
1858 /// Insert or overwrite a variable's types.
1859 pub fn set(&mut self, var_name: &str, types: Vec<ResolvedType>) {
1860 if types.is_empty() {
1861 return;
1862 }
1863 self.locals.insert(atom(var_name), types);
1864 }
1865
1866 /// Record that a variable exists in scope with an empty type list.
1867 /// This prevents the variable from appearing unseen by the forward

Callers 15

dropMethod · 0.80
dropMethod · 0.80
walk_closures_in_exprFunction · 0.80
build_diagnostic_scopesFunction · 0.80
seed_thisFunction · 0.80
enter_loopFunction · 0.80
leave_loopFunction · 0.80
process_statementFunction · 0.80

Calls 3

atomFunction · 0.85
is_emptyMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected