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

Function pos

src/parser/error_format.rs:324–326  ·  view source on GitHub ↗
(offset: u32)

Source from the content-addressed store, hash-verified

322 use mago_span::{Position, Span};
323
324 fn pos(offset: u32) -> Position {
325 Position::new(offset)
326 }
327
328 fn span(start: u32, end: u32) -> Span {
329 Span::new(FileId::new("test.php"), pos(start), pos(end))

Callers 7

spanFunction · 0.85
syntax_error_eofFunction · 0.85
non_graphic_byteFunction · 0.85

Calls

no outgoing calls

Tested by 6

syntax_error_eofFunction · 0.68
non_graphic_byteFunction · 0.68