(t *token.Token, length int)
| 17 | ) |
| 18 | |
| 19 | func createRange(t *token.Token, length int) protocol.Range { |
| 20 | offset := 0 |
| 21 | if t.Type == token.DoubleQuoteType { |
| 22 | offset = 1 |
| 23 | } |
| 24 | return protocol.Range{ |
| 25 | Start: protocol.Position{ |
| 26 | Line: protocol.UInteger(t.Position.Line - 1), |
| 27 | Character: protocol.UInteger(t.Position.Column + offset - 1), |
| 28 | }, |
| 29 | End: protocol.Position{ |
| 30 | Line: protocol.UInteger(t.Position.Line - 1), |
| 31 | Character: protocol.UInteger(t.Position.Column + offset + length - 1), |
| 32 | }, |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | func createLink(folderAbsolutePath string, wslDollarSign bool, node *token.Token) *protocol.DocumentLink { |
| 37 | file := node.Value |
no outgoing calls
no test coverage detected