Skip to content

Commit

Permalink
Added fields to node
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRumle committed Mar 7, 2022
1 parent 43bb18f commit f52566a
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions src/tree-sitter/Node.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
import Point


class Node:
def __init__(self):
pass
def __init__(self, node_obj):
self._string: str = node_obj.string
self._type: str = node_obj.type
self._childCount: int = node_obj.childCount
self._namedChildCount: int = node_obj.namedChildCount
self._startByte: int = node_obj.startByte
self._endByte: int = node_obj.endByte
self._startPoint: Point = node_obj.startPoint
self._endPoint: Point = node_obj.endPoint
self._isNamed: bool = node_obj.isNamed
self._isNull: bool = node_obj.isNull
self._nextNamedSibling: Node = node_obj.nextNamedSibling
self._internalNode = node_obj

pass

0 comments on commit f52566a

Please sign in to comment.