File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -80,8 +80,10 @@ type Input struct {
80
80
Encoding InputEncoding
81
81
}
82
82
83
- var ErrOperationLimit = errors .New ("operation limit was hit" )
84
- var ErrNoLanguage = errors .New ("cannot parse without language" )
83
+ var (
84
+ ErrOperationLimit = errors .New ("operation limit was hit" )
85
+ ErrNoLanguage = errors .New ("cannot parse without language" )
86
+ )
85
87
86
88
// Parse produces new Tree from content using old tree
87
89
//
@@ -529,7 +531,7 @@ func (n Node) ChildByFieldName(name string) *Node {
529
531
530
532
// FieldNameForChild returns the field name of the child at the given index, or "" if not named.
531
533
func (n Node ) FieldNameForChild (idx int ) string {
532
- return C .GoString (C .ts_node_field_name_for_child (n .c , C .uint32_t (idx )))
534
+ return C .GoString (C .ts_node_field_name_for_child (n .c , C .uint32_t (idx )))
533
535
}
534
536
535
537
// NextSibling returns the node's next sibling.
You can’t perform that action at this time.
0 commit comments