Skip to content

Commit 975d10e

Browse files
committed
removed unused
1 parent 5b6a2ca commit 975d10e

File tree

6 files changed

+9
-87
lines changed

6 files changed

+9
-87
lines changed

node/engine/parse/parse_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func assertPositionsAreSet(t *testing.T, v any) {
1414
RecursivelyVisitPositions(v, func(gp GetPositioner) {
1515
pos := gp.GetPosition()
1616
// if not set, this will tell us the struct
17-
assert.True(t, pos.IsSet, "position is not set. struct type: %T", gp)
17+
assert.True(t, pos.isSet, "position is not set. struct type: %T", gp)
1818
})
1919
}
2020

node/engine/parse/postgres/doc.go

Lines changed: 0 additions & 19 deletions
This file was deleted.

node/engine/parse/postgres/parse.go

Lines changed: 0 additions & 25 deletions
This file was deleted.

node/engine/parse/postgres/parse_cgo.go

Lines changed: 0 additions & 22 deletions
This file was deleted.

node/engine/parse/postgres/parse_test.go

Lines changed: 0 additions & 12 deletions
This file was deleted.

node/engine/parse/types.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ import (
99
type Position struct {
1010
// Set is true if the position of the Position has been set.
1111
// This is useful for testing parsers.
12-
IsSet bool `json:"-"`
13-
StartLine int `json:"start_line"`
14-
StartCol int `json:"start_col"`
15-
EndLine int `json:"end_line"`
16-
EndCol int `json:"end_col"`
12+
isSet bool
13+
StartLine int `json:"start_line"`
14+
StartCol int `json:"start_col"`
15+
EndLine int `json:"end_line"`
16+
EndCol int `json:"end_col"`
1717
}
1818

1919
// Set sets the position of the Position based on the given parser rule context.
2020
func (n *Position) Set(r antlr.ParserRuleContext) {
21-
n.IsSet = true
21+
n.isSet = true
2222
n.StartLine = r.GetStart().GetLine()
2323
n.StartCol = r.GetStart().GetColumn()
2424
n.EndLine = r.GetStop().GetLine()
@@ -27,7 +27,7 @@ func (n *Position) Set(r antlr.ParserRuleContext) {
2727

2828
// SetToken sets the position of the Position based on the given token.
2929
func (n *Position) SetToken(t antlr.Token) {
30-
n.IsSet = true
30+
n.isSet = true
3131
n.StartLine = t.GetLine()
3232
n.StartCol = t.GetColumn()
3333
n.EndLine = t.GetLine()
@@ -42,7 +42,7 @@ func (n *Position) GetPosition() *Position {
4242

4343
// Clear clears the position of the Position.
4444
func (n *Position) Clear() {
45-
n.IsSet = false
45+
n.isSet = false
4646
n.StartLine = 0
4747
n.StartCol = 0
4848
n.EndLine = 0

0 commit comments

Comments
 (0)