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

Function is_output_line

src/code_actions/extract_function.rs:621–623  ·  view source on GitHub ↗

Returns `true` when `line` (trimmed, without trailing `;`) looks like an output statement.

(line: &str)

Source from the content-addressed store, hash-verified

619/// Returns `true` when `line` (trimmed, without trailing `;`) looks
620/// like an output statement.
621fn is_output_line(line: &str) -> bool {
622 OUTPUT_PREFIXES.iter().any(|p| line.starts_with(p))
623}
624
625/// Check whether every statement in the body is a pure output statement
626/// (`echo`, `print`, `printf`, `var_dump`, `print_r`, `var_export`).

Callers 2

is_pure_outputFunction · 0.85
ends_with_outputFunction · 0.85

Calls 1

iterMethod · 0.80

Tested by

no test coverage detected