Wrong method name used on TreeCusor in node.zig · Issue #39 · tree-sitter/zig-tree-sitter · GitHub
Skip to content

Wrong method name used on TreeCusor in node.zig #39

Description

@M0urban

In node.zig, in the methods children(), namedChildren() and childrenByFieldId(), a TreeCursor in used. On it the methods cursor.currentFieldId() and cursor.currentNode() are used.

But in tree_cursor.zig the methods calling ts_tree_cursor_current_field_id and ts_tree_cursor_current_node are called .node() and . fieldId().

This causes a build error when using children(), namedChildren() or childrenByFieldId().

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions