We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d654e71 commit b800432Copy full SHA for b800432
helper/protocolHelper.go
@@ -38,16 +38,16 @@ func FromProtocolRange(rang protocol.Range) token.Range {
38
39
func ToProtocolPosition(pos token.Position) protocol.Position {
40
return protocol.Position{
41
- Line: uint32(pos.Line - 1),
42
- Character: uint32(pos.Column - 1),
43
- }
+ Line: uint32(pos.Line - 1),
+ Character: uint32(pos.Column - 1),
+ }
44
}
45
46
func FromProtocolPosition(pos protocol.Position) token.Position {
47
return token.Position{
48
- Line: uint(pos.Line + 1),
49
- Column: uint(pos.Character + 1),
50
+ Line: uint(pos.Line + 1),
+ Column: uint(pos.Character + 1),
51
52
53
// returns the length of a token.Range
helper/protocolHelper.go~
0 commit comments