Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
Add Selection struct
Browse files Browse the repository at this point in the history
  • Loading branch information
harry-hov committed Sep 22, 2023
1 parent 394dd10 commit 720aaf1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions internal/lsp/selection.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package lsp

import "go/token"

// A Selection represents the cursor position and surrounding identifier.
type Selection struct {
content string
tokFile *token.File
start, end, cursor token.Pos
}

0 comments on commit 720aaf1

Please sign in to comment.