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

Function write_empty_stubs

build.rs:569–577  ·  view source on GitHub ↗

Write an empty stub map when stubs aren't available.

()

Source from the content-addressed store, hash-verified

567
568/// Write an empty stub map when stubs aren't available.
569fn write_empty_stubs() {
570 let content = concat!(
571 "pub(crate) static STUB_FILES: [&str; 0] = [];\n",
572 "pub(crate) static STUB_CLASS_MAP: [(&str, usize); 0] = [];\n",
573 "pub(crate) static STUB_FUNCTION_MAP: [(&str, usize); 0] = [];\n",
574 "pub(crate) static STUB_CONSTANT_MAP: [(&str, usize); 0] = [];\n",
575 );
576 write_if_changed(content);
577}
578
579/// Parse one of the `const CLASSES = array(...)`, `const FUNCTIONS = array(...)`,
580/// or `const CONSTANTS = array(...)` sections from the PhpStormStubsMap.php file.

Callers 1

mainFunction · 0.85

Calls 1

write_if_changedFunction · 0.85

Tested by

no test coverage detected