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

Function make_param

src/test_fixtures.rs:124–136  ·  view source on GitHub ↗

Create a `ParameterInfo` with the given name, type hint, and required flag. The parameter is non-variadic and non-reference.

(name: &str, type_hint: Option<&str>, is_required: bool)

Source from the content-addressed store, hash-verified

122///
123/// The parameter is non-variadic and non-reference.
124pub fn make_param(name: &str, type_hint: Option<&str>, is_required: bool) -> ParameterInfo {
125 ParameterInfo {
126 name: crate::atom::atom(name),
127 is_required,
128 type_hint: type_hint.map(PhpType::parse),
129 native_type_hint: type_hint.map(PhpType::parse),
130 description: None,
131 default_value: None,
132 is_variadic: false,
133 is_reference: false,
134 closure_this_type: None,
135 }
136}
137
138/// A class loader that always returns `None`.
139///

Callers

nothing calls this directly

Calls 2

atomFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected