You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: add TypeScript-style array shorthand syntax `T[]`
- Add `String[]` as alternative to `Array<String>`
- Support nested arrays: `Integer[][]` → `Array[Array[Integer]]`
- Support nullable arrays: `String[]?` → `(Array[String] | nil)`
- Support arrays of nullable elements: `String?[]` → `Array[String?]`
- Support union type arrays: `(String | Integer)[]`
- Both syntaxes produce identical IR and RBS output
- Add parse_postfix_type_operators for `[]` and `?` suffix handling
- Add comprehensive unit tests (15 cases) and E2E tests (14 cases)
- Update README examples to show new syntax
* Update Gemfile.lock
* fix: restore Gemfile.lock with listen gem for CI compatibility
Ruby 4.0 skips listen gem installation, but CI runs on Ruby 3.x which
requires it. Restore the original Gemfile.lock from main branch.
* refactor: remove unused legacy type parsing code from IR::Builder
TypeParser now handles all type parsing including:
- Simple types, generics, array shorthand, union, intersection, function types
Remove legacy fallback code that was never executed, improving code coverage.
0 commit comments