Lutra/crates/syntax/tests/fixtures/unbraced_namespace.snap
danny a5236acd7e M2.1: tree-sitter PHP in crates/syntax
Parser (parse, incremental reparse from lutra_text edits), outline with
UTF-16 ranges and short signatures, folding ranges, 8 MiB parse cap.
Snapshot tests for five PHP 8.3 fixtures, proptests (random bytes,
reparse equals fresh parse, undo round trip), ignored release timing
test. Docs: architecture Syntax section, parity evidence, G4 note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 22:06:21 +02:00

31 lines
1.1 KiB
Text

# outline
namespace App\Models @2:0-39:1 sel 2:10-2:20
class Entity @8:0-11:1 sel 9:12-9:18
class Model @16:0-29:1 sel 17:15-17:20
property $instances int @19:4-19:40 sel 19:25-19:35
method key (): string|int @21:4-22:47 sel 22:29-22:32
method attributes (): array @24:4-28:5 sel 24:21-24:31
trait Timestamps @31:0-39:1 sel 31:6-31:16
property $createdAt ?\DateTimeImmutable @33:4-33:49 sel 33:31-33:41
method touch (\DateTimeImmutable $at): void @35:4-38:5 sel 35:20-35:25
namespace App\Enums @41:0-63:1 sel 41:10-41:19
enum Status : string implements \App\Contracts\HasLabel @43:0-57:1 sel 43:5-43:11
enumCase Draft 'draft' @45:4-45:25 sel 45:9-45:14
enumCase Published 'published' @46:4-46:33 sel 46:9-46:18
constant DEFAULT @48:4-48:32 sel 48:10-48:17
method label (): string @50:4-56:5 sel 50:20-50:25
enum Suit @59:0-63:1 sel 59:5-59:9
enumCase Hearts @61:4-61:16 sel 61:9-61:15
enumCase Spades @62:4-62:16 sel 62:9-62:15
# folding
4:0-6:33
10:0-11:1
13:0-15:3
18:0-29:1
25:4-28:5
32:0-39:1
36:4-38:5
44:0-57:1
51:4-56:5
52:29-55:9
60:0-63:1