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
Child() and NamedChiled() parameters are currently int. Shouldn't they be of type uint32?
// Child returns the node's child at the given index, where zero represents the first child.func (nNode) Child(idxint) *Node {
nn:=C.ts_node_child(n.c, C.uint32_t(idx))
returnn.t.cachedNode(nn)
}
// NamedChild returns the node's *named* child at the given index.func (nNode) NamedChild(idxint) *Node {
nn:=C.ts_node_named_child(n.c, C.uint32_t(idx))
returnn.t.cachedNode(nn)
}
The text was updated successfully, but these errors were encountered:
I chose to use int instead of unit32 here because it is the most common integer type in Go according to my experience and is normally used for indexing. Build-in functions such as len or copy also operate with int type which allows to avoid type conversion.
Child()
andNamedChiled()
parameters are currentlyint
. Shouldn't they be of typeuint32
?The text was updated successfully, but these errors were encountered: