Skip to content

Conversation

nvlled
Copy link

@nvlled nvlled commented Jul 7, 2025

Fixed compile errors:

  • ignored return value of gotoFirstChild
  • ArrayList.init expects a non-pointer allocator
  • node.language() should be node.getLanguage()
  • change field_id size to u32
  • don't use pointers for Allocator

Fixed runtime bugs:

  • children() and namedChildren() failed to add first child
  • childrenByFieldId() did something completely different

Added some tests too since zig doesn't check compile errors for functions that aren't called anywhere else.

nvlled added 3 commits July 7, 2025 16:07
fixed compile errors:
- ignored return value of gotoFirstChild
- ArrayList.init expects a non-pointer allocator
- node.language() should be node.getLanguage()
- change field_id size to u32

fixed runtime errors:
- children() and namedChildren() failed to add first child
- childrenByFieldId() did something completely different
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