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

Method seed

src/completion/variable/forward_walk.rs:1874–1879  ·  view source on GitHub ↗

Insert a variable's types from parameter seeding.

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

Source from the content-addressed store, hash-verified

1872
1873 /// Insert a variable's types from parameter seeding.
1874 pub fn seed(&mut self, var_name: &str, types: Vec<ResolvedType>) {
1875 if types.is_empty() {
1876 return;
1877 }
1878 self.locals.insert(atom(var_name), types);
1879 }
1880
1881 /// Remove a variable (e.g. after `unset($x)`).
1882 pub fn remove(&mut self, var_name: &str) {

Callers 2

seed_closure_paramsFunction · 0.80
seed_paramsFunction · 0.80

Calls 3

atomFunction · 0.85
is_emptyMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected