MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / php-legacy-string-offsets.test.ts

File php-legacy-string-offsets.test.ts

__tests__/php-legacy-string-offsets.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1/**
2 * PHP before 8.0 also wrote a string offset with braces, `$code{0}`. The
3 * grammar knows only `$code[0]`, and its error recovery could drop the whole
4 * enclosing function: `first_two` below had no node, and its call to `helper`

Callers

nothing calls this directly

Calls 6

describeFunction · 0.85
mapMethod · 0.80
queryFunction · 0.70
closeMethod · 0.65
joinMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected