Skip to content

fix(interpreter): update type name functions with missing types (#946)#958

Merged
SchoolyB merged 1 commit intobugfixes/1-9-2026from
fix/946-type-name-functions
Jan 8, 2026
Merged

fix(interpreter): update type name functions with missing types (#946)#958
SchoolyB merged 1 commit intobugfixes/1-9-2026from
fix/946-type-name-functions

Conversation

@SchoolyB
Copy link
Copy Markdown
Owner

@SchoolyB SchoolyB commented Jan 8, 2026

Summary

  • Update getEZTypeName in pkg/interpreter/builtins.go with missing type cases
  • Update objectTypeToEZ in pkg/interpreter/evaluator.go with missing type cases
  • Export FileHandle and Database type aliases from interpreter package

Both functions now properly handle:

  • Range → "Range<int>"
  • FileHandle → "File"
  • Database → "Database"
  • Reference → "Ref<innerType>" (with recursive type resolution)
  • Char → "char" (added to objectTypeToEZ)
  • Byte → "byte" (added to objectTypeToEZ)

Test plan

  • Build passes
  • All interpreter tests pass
  • All unit tests pass

Closes #946

Both getEZTypeName and objectTypeToEZ now handle all object types:
- Range → "Range<int>"
- FileHandle → "File"
- Database → "Database"
- Reference → "Ref<innerType>"
- Char → "char" (added to objectTypeToEZ)
- Byte → "byte" (added to objectTypeToEZ)

Also exports FileHandle and Database type aliases from interpreter
package for consistency.

Closes #946
@SchoolyB SchoolyB linked an issue Jan 8, 2026 that may be closed by this pull request
@SchoolyB SchoolyB merged commit 0774dde into bugfixes/1-9-2026 Jan 8, 2026
2 checks passed
@SchoolyB SchoolyB deleted the fix/946-type-name-functions branch January 8, 2026 20:10
SchoolyB added a commit that referenced this pull request Apr 3, 2026
#958)

Both getEZTypeName and objectTypeToEZ now handle all object types:
- Range → "Range<int>"
- FileHandle → "File"
- Database → "Database"
- Reference → "Ref<innerType>"
- Char → "char" (added to objectTypeToEZ)
- Byte → "byte" (added to objectTypeToEZ)

Also exports FileHandle and Database type aliases from interpreter
package for consistency.

Closes #946
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.

Bug: Type name functions in interpreter not updated after #904

1 participant