Skip to content

feat: run PHP# List and Map collections - #39

Merged
heyJordanParker merged 14 commits into
masterfrom
feat/slice-collections
Oct 7, 2026
Merged

heyJordanParker merged 14 commits into
masterfrom
feat/slice-collections

Conversation

@heyJordanParker

Copy link
Copy Markdown
Owner

The engine half of the PHP# collections slice, whose checker half (with collection enum keys and List spread, #20 and #21) shipped in mago-sharp 0.1.0.

Run PHP# collections:

  • List and Map as copy-on-write values behind the Sharp\Collection wrapper, with typed for … of
  • a bare Map index read throws OutOfRangeException; handled reads stay quiet
  • a Map keyed by a backed enum stores the enum as its backing value
  • List spread inside a list literal (zend_compile_array already emits ADD_ARRAY_UNPACK)
  • the collections marks in the PHP# marks register, each with its static assert; the tracing JIT keeps both the PHP# (int) cast rule and the collection cast rule

The enum-key fixtures use their own Lib\Standing enum, so their name no longer collides with another fixture's Lib\Status.

Proof on macOS: sharp/bin/test --opcache --repeat --passes --census --differential exits 0, 94 passed and 0 failed in every mode, empty census; the differential compiles Collections, Expressions, Interop and Nulls.

A .sharp file could not hold a collection. The engine now builds the
nodes the bridge lowers List and Map to, so a PHP# class builds lists and
maps, reads and writes them by index, loops over them, and hands them to
PHP's count and in_array and to plain PHP methods as ordinary arrays.

Run PHP# collections:
- ext/sharp maps the bridge's ARRAY, ARRAY_ELEM, DIM and TYPE nodes to
  their zend_ast kinds, so a List or Map type is array and a literal is a
  short array
- Collections.sharp compiles to the opcodes and signatures of its PHP twin
- A Map key that is not int or string is a CompileError at its .sharp line

Zend/tests/sharp/
├── Collections.sharp   <- added, a cart that builds, indexes and loops over a List and a Map
├── Collections.inc     <- added, the PHP twin of Collections.sharp
├── collections.phpt    <- added, runs the cart and its private(set) list from plain PHP
├── ElementType.sharp   <- added, one wrong element type the checker reports
├── MapKey.sharp        <- added, one Map key the checker and the engine refuse
├── map_key.phpt        <- added, the CompileError for that key
└── opcodes.phpt        <- compares Collections with its twin
ext/sharp/sharp.c       <- maps ARRAY, ARRAY_ELEM, DIM and TYPE
A PHP# List read by a bare index must throw on a missing key, as spec
section 12 decides, where PHP warns and returns null. The engine cannot
tell a List from a Map, so the throw follows the place the read is
written: the checker allows a bare read only on a List.

ext/sharp sets ZEND_DIM_SHARP on every index, and the compiler marks the
FETCH_DIM_R or FETCH_DIM_FUNC_ARG it emits with ZEND_SHARP_OPERATOR, as
checked arithmetic is marked. Only the miss reads the mark: one reporter
pair in zend_execute.c throws for a marked read and warns otherwise, and
the JIT's miss helpers call it. A read under ?? stays PHP's quiet read.

ZEND_DIM_SHARP is its own bit, because the compiler already uses 0x8000
on an index to mark the inner part of a chain.

Read collections as the rulings decide:
- Collections.sharp builds its List without an index write, reads its
  Map under ??, and loops over a List by value

Zend/
├── zend_compile.h                  <- adds ZEND_DIM_SHARP, documents the read mark
├── zend_compile.c                  <- marks a PHP# read, keeps the mark on nested fetches
├── zend_execute.h                  <- exports zend_undefined_offset and zend_undefined_index
├── zend_execute.c                  <- throws when the reading opline is marked
└── tests/sharp/
    ├── Collections.sharp           <- follows the List and Map rules
    ├── Collections.inc             <- the PHP twin, line for line
    ├── collections.phpt            <- the new total
    ├── IndexRead.sharp             <- added, bare, handled, nested, FUNC_ARG and ?. reads
    ├── index_read.inc              <- added, runs each read 100 times, then a PHP read
    ├── index_read.phpt             <- added, the reads without the JIT
    ├── index_read_jit_function.phpt <- added, the reads under the function JIT
    └── index_read_jit_tracing.phpt <- added, the reads under the tracing JIT
ext/
├── sharp/sharp.c                   <- sets ZEND_DIM_SHARP on every index
└── opcache/jit/
    ├── zend_jit_vm_helpers.c       <- miss helpers call the Zend reporters
    └── zend_jit_helpers.c          <- fetch_dim_r_helper calls the Zend reporters
Mago master appended CONDITIONAL, CAST, PROPERTY_HOOK and
PROPERTY_HOOK_SHORT_BODY to sharp_kind before the collection kinds, and
sharp.c's switch must name every kind to compile. The four lines are the
ones the expressions-2 slice adds, so its merge meets the same text.

ext/sharp/sharp.c   <- maps the four kinds to their zend_ast_kind
A PHP# List or Map is a PHP array, and PHP cannot call a method on an
array. A PHP# method call now marks its receiver: the fetch of a named
property, or a cast for any other receiver. The VM turns a marked array
into a final internal Sharp\Collection that changes the array where it
lives and passes every other value through, so object calls keep PHP's
INIT_METHOD_CALL unchanged.

Change a List or Map with add, set and delete, and read it with get and
entries:
- A local or a plain property changes through a pointer to its slot, so
  the variable never becomes a PHP reference
- A property with a set hook, a readonly or private(set) property, or a
  magic one gets the changed array through write_property in the
  caller's scope, so the hook runs once with the new list
- set on a missing index throws OutOfRangeException, and get on a
  missing key gives null
- No method returns the wrapper, PHP code cannot make one, and a request
  reuses four wrappers so a call allocates none

Keep object calls as fast as PHP's:
- The optimizer sees a marked receiver may change the local it reads
- Both JITs keep a marked fetch inline when the property's declared type
  rules out an array, and pass a non-array receiver through as a copy

Fixtures and twins:
- Twins spell the receiver cast as ((object) $x)->m(), so opcodes.phpt
  still compares PHP# with PHP opcode for opcode
- collection_methods.phpt runs every method without opcache, with it,
  and under the tracing and function JITs

Zend/
├── zend_compile.c*               <- marks a PHP# method call's receiver
├── zend_compile.h*               <- ZEND_METHOD_CALL_SHARP, the call's mark
├── zend_execute.c*               <- includes the Sharp\Collection constructors
├── zend_vm_def.h*                <- marked fetch and cast make a Sharp\Collection
├── zend_vm_execute.h*            <- regenerated from zend_vm_def.h
├── Optimizer/
│   ├── zend_dfg.c*               <- a marked cast defines its local
│   ├── zend_ssa.c*               <- a marked cast defines its local
│   ├── zend_inference.c*         <- a marked receiver may become an object
│   ├── sccp.c*                   <- never folds a marked cast
│   ├── escape_analysis.c*        <- a marked fetch lets its object escape
│   └── zend_dump.c*              <- prints a marked cast as its type
└── tests/sharp/
    ├── CollectionMethods.sharp   <- added, every method on every kind of place
    ├── collection_methods.inc    <- added, runs it with a hooked PHP property
    ├── collection_methods.phpt   <- added, without the JIT
    ├── collection_methods_jit_tracing.phpt   <- added, tracing JIT
    ├── collection_methods_jit_function.phpt  <- added, function JIT
    ├── Collections.sharp*        <- the Goal class adds to a list property
    ├── Collections.inc*          <- its twin
    ├── Expressions.sharp*        <- hoists a call out of a template
    ├── Expressions.inc*          <- its twin
    ├── Nulls.sharp*              <- one null-safe call per operand
    ├── Nulls.inc*                <- its twin
    └── Order.inc*                <- casts the receiver like PHP#
ext/
├── opcache/jit/
│   ├── zend_jit.c*               <- inline fetch unless the property may be an array
│   ├── zend_jit_trace.c*         <- the same for traces
│   ├── zend_jit_ir.c*            <- masks the mark off the cache slot
│   ├── zend_jit_helpers.c*       <- masks the mark off the cache slot
│   └── zend_jit_vm_helpers.c*    <- the trace recorder masks it too
└── sharp/
    ├── sharp.stub.php            <- added, Sharp\Collection and its methods
    ├── sharp_arginfo.h           <- added, generated from the stub
    ├── php_sharp.h*              <- the three Sharp\Collection constructors
    └── sharp.c*                  <- Sharp\Collection, its methods and spares
… template

opcodes.phpt needed two fixtures rewritten, because a twin cannot spell
the receiver cast of a null-safe chain with a call in the middle or of
a method call inside a template. Both forms stay PHP#, so the runtime
test now runs them without opcache, with it, and under both JITs:

- link?.plus(step).value gives the value, and null for a null link
- link?.plus(1)?.plus(2) chains two null-safe calls
- `${link.plus(1).value} of ${items.count()}` calls inside a template

Zend/tests/sharp/
├── CollectionMethods.sharp*                <- adds class Link with both forms
├── collection_methods.inc*                 <- calls them with a link and with null
├── collection_methods.phpt*                <- expects their results
├── collection_methods_jit_tracing.phpt*    <- the same under the tracing JIT
└── collection_methods_jit_function.phpt*   <- the same under the function JIT
A Sharp\Collection kept for reuse held the object whose property it
changes until the next collection call or the end of the request when
its call never ran, because an argument threw. The wrapper's dtor_obj
now runs whenever its last reference goes, after the call or while an
exception unwinds it. It lets go of the owner and the copy at that
moment and keeps the wrapper as a spare, as a destructor may keep its
$this. The methods no longer clear the wrapper themselves.

The release costs 78 instructions per call on a debug build: 10 million
lines.add(x) take 19.51G without opcache, 10.65G under the tracing JIT
and 11.65G under the function JIT.

Zend/
├── Optimizer/escape_analysis.c*            <- says why a marked fetch's object escapes
└── tests/sharp/
    ├── CollectionMethods.sharp*            <- share() adds size % parts
    ├── collection_methods.inc*             <- a throwing argument, then a WeakReference
    ├── collection_methods.phpt*            <- expects the owner freed
    ├── collection_methods_jit_tracing.phpt*
    └── collection_methods_jit_function.phpt*
ext/sharp/
└── sharp.c*                                <- dtor_obj releases and keeps the spare
Master runs every PHP# fixture through the checker differential, keeps
the PHP classes fixtures call in Zend/tests/sharp/harness/, and gives
Nulls back its original null-safe chain, other?.itself()?.either(7, null).
That chain broke opcodes.phpt: the receiver cast of a `?.` call sat
inside the chain, so the chain's first JMP_NULL skipped the cast, and
PHP cannot write that shape.

Run a null-safe chain with a call in the middle as its twin does:
- Before a `?.` call, the receiver ends its own null-safe chain ahead of
  the cast, as PHP's ((object) $a?->b())?->c() does. Both give null.
- Before a `.` call the chain still skips the call, so a?.b().c() gives
  null when a is null, and collection_methods.phpt checks it
- Nulls keeps master's line, and its twin casts both receivers

Check CollectionMethods.sharp with the classes it calls:
- Lib\Basket moves to harness/Basket.inc, where the checker reads it

Zend/
├── zend_compile.c*                      <- a `?.` call's receiver ends its chain before the cast
└── tests/sharp/
    ├── Nulls.sharp*                     <- master's other?.itself()?.either(7, null)
    ├── Nulls.inc*                       <- its twin, with both receiver casts
    ├── CollectionMethods.sharp*         <- Link::skipped calls past a null-safe call
    ├── collection_methods.inc*          <- requires harness/Basket.inc, calls skipped
    ├── collection_methods.phpt*         <- expects skipped's results
    ├── collection_methods_jit_tracing.phpt*
    ├── collection_methods_jit_function.phpt*
    └── harness/Basket.inc               <- added, Lib\Basket from collection_methods.inc
Brings in the register of PHP# engine marks and its census, the per-pass
test mode, and the Composer plugin, and builds against Mago's generated
sharp_kind.

The register now names every mark PHP# collections set, with a static
assert per field, so the build and the census catch one that collides or
is dropped:
- ZEND_SHARP_OPERATOR on ZEND_FETCH_DIM_R and ZEND_FETCH_DIM_FUNC_ARG, the
  index read that throws OutOfRangeException.
- ZEND_SHARP_OPERATOR on ZEND_FETCH_OBJ_R and ZEND_CAST to IS_OBJECT, the
  receiver of a collection method.
- ZEND_DIM_SHARP and ZEND_METHOD_CALL_SHARP on their AST kinds, asserted
  against ZEND_SHORT_CIRCUITING_INNER beside that flag.

The bridge's sharp_kind now carries zend_ast.h's values, so ext/sharp
casts it and asserts each kind instead of mapping it by hand, and CI checks
that the bridge's kinds match zend_ast.h.

.github/workflows/sharp.yml   <- checks the bridge's sharp_kind against zend_ast.h
Zend/
├── zend_compile.h            <- registers the collections marks with their asserts
└── zend_compile.c            <- asserts the AST marks against ZEND_SHORT_CIRCUITING_INNER
ext/sharp/sharp.c             <- casts the generated sharp_kind and asserts each kind
CollectionMethods.sharp declared Demo\Shelf, which Inventory.sharp already
declares, so checking the fixtures folder reported a duplicate definition.
The fixture's class is now Demo\Pantry.

Zend/tests/sharp/
├── CollectionMethods.sharp   <- declares Demo\Pantry
└── collection_methods.inc    <- calls Demo\Pantry
A PHP# Map<Status, int> could not use a Status case as a key: every
index, literal key and Map method threw "Cannot access offset of type
Status", because PHP arrays take only int and string keys. Spec section 12
lets a backed enum key a Map, and plain PHP receives the backing values.

The compiler now marks every PHP# index and every list or map literal with
ZEND_SHARP_OPERATOR. On the cold path where PHP refuses an object key, a
marked opline turns a backed enum case into its value, stored the way PHP
stores that int or string. Plain PHP keeps throwing.

Key a Map by a backed enum:
- counts[status] = 1, counts[status] ?? 0, counts[status] ??= 0, a bare
  counts[status] read and nested writes store and find the backing value
- [Status.Active: 1] literals and property defaults store it too
- counts.get(status) and counts.delete(status) take the case
- a '5'-backed case becomes the int key 5, as PHP stores "5"
- a missing key's OutOfRangeException names the backing value

Keep the optimizer and the JIT correct:
- inference treats a marked object key as an int or string key, so the
  JIT never assumes a write added nothing
- the INIT_ARRAY size readers mask the mark out of extended_value
- the register lists the new opcodes and ZEND_ARRAY_SHARP, with its assert

Zend/
├── zend_compile.h*                 <- ZEND_ARRAY_SHARP and the register lines
├── zend_compile.c*                 <- marks every PHP# index and literal element
├── zend_enum.h*                    <- zend_sharp_enum_key(), a case's key value
├── zend_execute.h*                 <- declares zend_sharp_index_key()
├── zend_execute.c*                 <- converts the key on a marked opline
├── zend_ast.c*                     <- converts a key in a constant expression
├── zend_vm_def.h*                  <- literal keys convert, size masks the mark
├── zend_vm_execute.h*              <- regenerated
├── Optimizer/zend_inference.c*     <- a marked object key adds int or string keys
├── Optimizer/zend_dump.c*          <- masks the mark out of the size
└── tests/sharp/
    ├── EnumKeys.sharp*             <- added, every write, read and literal form
    ├── EnumKeys.inc*               <- added, the PHP twin for opcodes.phpt
    ├── enum_keys.inc*              <- added, runs it and pins plain PHP's refusal
    ├── enum_keys.phpt*             <- added, without opcache
    ├── enum_keys_jit_function.phpt* <- added, under the function JIT
    ├── enum_keys_jit_tracing.phpt* <- added, under the tracing JIT
    ├── harness/Status.inc*         <- added, string, int and numeric-string enums
    ├── map_key.phpt*               <- the checker's new Map key message
    └── opcodes.phpt*               <- compares EnumKeys with its twin
ext/
├── opcache/jit/zend_jit_helpers.c* <- the r, is, rw and w helpers convert the key
└── sharp/
    ├── sharp.c*                    <- marks ZEND_AST_ARRAY, get and delete take a case
    ├── sharp.stub.php*             <- get and delete accept BackedEnum
    └── sharp_arginfo.h*            <- regenerated
The engine tests had no loop that reads a Map's keys back, and no list
literal with a spread. The fixtures now read an enum key back as its case,
read the key "5" back as the string "5" though PHP stores it as an int,
and join Lists with spreads. Each runs plain, from the opcache file cache,
and under the tracing and function JITs, with the same opcodes as its
plain PHP twin.

- byName reads each Status key back as its case, and a key that is no
  case throws ValueError on the loop's line.
- skus reads the key "5" back as string(1) "5".
- withPrices returns [...before, ...prices, 0, ...after] as 1,2,3,7,0,9.
- The method seeded is now seededCounts, because a PHP# class cannot
  declare a method and a field with one name.

Zend/tests/sharp/
├── EnumKeys.sharp*                  <- byName and skus read typed loop keys back
├── EnumKeys.inc*                    <- the twin reads keys back with from and (string)
├── enum_keys.inc*                   <- calls byName and skus, including the key "5"
├── enum_keys.phpt*                  <- expects the cases, the ValueError and "5"
├── enum_keys_jit_function.phpt*     <- the same under the function JIT
├── enum_keys_jit_tracing.phpt*      <- the same under the tracing JIT
├── Collections.sharp*               <- withPrices spreads Lists into a literal
├── Collections.inc*                 <- the twin spreads with PHP's unpack
├── collections.phpt*                <- expects 1,2,3,7,0,9
└── opcodes.phpt*                    <- EnumKeys has 13 op arrays, Collections 7
Brings the collections slice up to master: the mago-sharp 0.1.0 pin
(6d6bdf2), expressions-2, classes and the docs. Every conflict keeps
both sides.

Zend/zend_compile.h, the PHP# marks register: master's lines for the
static property increments and the (int) cast, the Class.y read and
ZEND_ACC_PARENT_IN_INTERFACES sit beside this branch's index read,
method call receiver and list or map literal marks, each with its static
assert. The identical ZEND_CAST assert is kept once. The cache slot
sentence is this branch's, which also covers master's static property
slots: their readers mask the mark out too.

ext/opcache/jit/zend_jit_trace.c: both ZEND_CAST guards keep master's
clause for (int) on an int and this branch's clause for the receiver on
an object, so each marked cast keeps its own rule.

Zend/Optimizer/zend_dfg.c, zend_ssa.c, sccp.c: this branch treated any
ZEND_CAST carrying ZEND_SHARP_OPERATOR as a method call receiver. Master
now marks (int) casts with the same bit, so the three checks compare
against IS_OBJECT | ZEND_SHARP_OPERATOR and (int) casts keep master's
SSA and constant propagation.

ext/sharp/sharp.c: master's Sharp\Int and Sharp\Float parsing and this
branch's Sharp\Collection both stay, and MINIT registers all three
classes. sharp_operator_attr keeps this branch's index, literal and
method call cases plus master's (int) cast case. The kind switch was
already replaced by the generated sharp_kind on both sides.

ext/sharp/sharp.stub.php holds the three classes, and
ext/sharp/sharp_arginfo.h is regenerated with build/gen_stub.php.

Zend/tests/sharp/opcodes.phpt: master's fixture map, which names each
fixture's PHP library, gains Collections and EnumKeys, neither of which
links against a library.

Zend/zend_vm_execute.h is regenerated with Zend/zend_vm_gen.php and
matches the textual merge.

sharp/bin/census: the census kept the IS_* values the register names in
one set for every field and kind. With both registers merged, IS_OBJECT
(this branch's marked receiver cast) and the marked attr of ZEND_AST_CAST
(master's (int) cast) together flagged upstream's `ast->attr ==
IS_OBJECT` in zend_compile_const_expr, which no PHP# mark reaches. The
census now keys each marked value by the field and the opcodes or kinds
of its register line, as its docblock already describes.

Zend/tests/sharp/EnumKeys.sharp, EnumKeys.inc, enum_keys.inc: both sides
added a Demo\Tally fixture class, so checking the fixtures folder
reported a duplicate definition. This branch's class is now
Demo\Headcount, as 2960467 renamed Demo\Shelf.
The enum-key fixtures keyed their Maps by Lib\Status from
harness/Status.inc, and the classes slice's harness/SiteLib.inc declares
another Lib\Status with other cases. The fixtures' mago.toml loads every
harness file, so the checker kept SiteLib's enum and reported
`Enum constant or case Active does not exist` in EnumKeys.sharp, and which
enum it kept depended on the order it read the files.

The enum-key fixtures now use their own enum, Lib\Standing, with the same
cases Active and Closed, declared in harness/Standing.inc. The three
enum_keys tests change only the enum's name in their expected lines. The
checker now refuses EnumKeys.sharp only for its deliberate bare Map index
at line 49, which the tests run to reach the engine's OutOfRangeException.

Zend/tests/sharp/
├── harness/Standing.inc          <- renamed from harness/Status.inc; declares Lib\Standing
├── EnumKeys.sharp                <- keys its Maps by Lib\Standing
├── EnumKeys.inc                  <- the PHP twin, the same
├── enum_keys.inc                 <- requires harness/Standing.inc, passes Lib\Standing cases
├── enum_keys.phpt                <- expects Lib\Standing in the ValueError and TypeError lines
├── enum_keys_jit_function.phpt   <- the same
└── enum_keys_jit_tracing.phpt    <- the same
@heyJordanParker
heyJordanParker merged commit 5254ca9 into master Oct 7, 2026
6 checks passed
heyJordanParker added a commit that referenced this pull request Oct 13, 2026
PHP# generics (G1) last took master at 39a57d0. Master has since merged
#39 to #55, ending at 9c95c77: static classes and extern methods, the
standard library's Int, Float and Bool, Replaces and the refusal of calls
PHP# replaces with syntax, the List index and Map key refusals, recorded
reads, unsuppressible PHP# errors, mago compile inputs and Position's
file. G1 has to sit on that master before its pull request.

Eight files conflicted. Each keeps both sides:
- composer/src/Sdk/Internal/Analyzer/Protocol.php and
  crates/analyzer/src/external/protocol.rs: master moved the analyzer
  protocol from 1.7 to 1.9 for recorded reads and type comparison reads,
  and G1 moved it to 1.8 for the 22-byte node record. The merged wire
  format is neither side's, so the protocol is 1.10 on both sides, and
  VERSION_U32 stays public as master's InvocationTest reads it. The
  linter protocol stays at G1's 1.2, which master did not change.
- crates/syntax/src/parser/internal/type_hint.rs: master's
  is_at_conditional, which reads `value is string ? a : b` as a
  conditional, and G1's is_at_generic_hint with its `Class<` comment.
- crates/syntax/tests/walker.rs: master walks slice.sharp and
  library.sharp, and G1's slice_fixture() still feeds its type parameter
  walk test.
- crates/semantics/tests/fixtures/slice.sharp: G1's generic section
  (Page, Listing, Source, Comparable, Entry, Version), then master's
  static class Slug.
- crates/semantics/src/internal/checker/sharp.rs: ClassLike carries both
  G1's type_parameters and master's is_static, and ClassLike::of_class
  fills both. enter keeps G1's report_methods_named_as_properties(&Class)
  and runs master's check_static_class. check_slice's documentation
  lists master's static class beside G1's type parameters.
- crates/analyzer/src/expression/mod.rs: the imports of both sides,
  master's As and LocalIdentifier for its pattern calls and G1's Access,
  Call, Hint and Identifier for is_refused.
- crates/analyzer/tests/sharp.rs: both sides appended tests at the same
  place. Both sets stay.

Two master tests met G1's rule that a .sharp message names types as
PHP# writes them, which master's tests were written before. Each now
expects G1's wording, with the same exact assertion:
- tests/sharp.rs
  analyze_types_the_parse_calls_of_the_standard_library_from_the_vendored_package:
  `float|null` and `bool|null` read `float?` and `bool?`.
- crates/analyzer/tests/sharp.rs
  a_bare_call_of_a_method_that_no_function_shares_names_the_member_to_write:
  "Saw type `mixed`" reads "Saw type `Any?`".

The SDK's NodeKind regenerates unchanged from the merged syntax tree.

.
├── composer/src/Sdk/Internal/Analyzer/Protocol.php  <- analyzer protocol 1.10
├── crates/
│   ├── analyzer/
│   │   ├── src/external/protocol.rs                 <- analyzer protocol 1.10
│   │   ├── src/expression/mod.rs                    <- both sides' imports
│   │   └── tests/sharp.rs                           <- both sides' tests; Any? wording
│   ├── semantics/
│   │   ├── src/internal/checker/sharp.rs            <- ClassLike with type parameters and is_static
│   │   └── tests/fixtures/slice.sharp               <- generic section, then Slug
│   └── syntax/
│       ├── src/parser/internal/type_hint.rs         <- is_at_conditional and is_at_generic_hint
│       └── tests/walker.rs                          <- both fixtures, slice_fixture kept
└── tests/sharp.rs                                   <- float? and bool? wording
@heyJordanParker
heyJordanParker deleted the feat/slice-collections branch November 3, 2026 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant