-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgoto.go
111 lines (94 loc) · 2.96 KB
/
goto.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
package lsp
// DeclarationOptions contains the options for the go-to-declaration handler.
type DeclarationOptions struct {
WorkDoneProgressOptions
}
// DeclarationRegistrationOptions contains the options for the go-to-declaration
// handler registration.
type DeclarationRegistrationOptions struct {
DeclarationOptions
TextDocumentRegistrationOptions
StaticRegistrationOptions
}
// DeclarationParams contains the fields sent in a `textDocument/declaration`
// request.
type DeclarationParams struct {
TextDocumentPositionParams
WorkDoneProgressParams
PartialResultParams
}
// DefinitionOptions contains the options for the go-to-definition handler.
type DefinitionOptions struct {
WorkDoneProgressOptions
}
// DefinitionRegistrationOptions contains the options for the go-to-definition
// handler registration.
type DefinitionRegistrationOptions struct {
TextDocumentRegistrationOptions
DefinitionOptions
}
// DefinitionParams contains the fields sent in a `textDocument/definition`
// request.
type DefinitionParams struct {
TextDocumentPositionParams
WorkDoneProgressParams
PartialResultParams
}
// TypeDefinitionOptions contains the options for the go-to-type-definition
// handler.
type TypeDefinitionOptions struct {
WorkDoneProgressOptions
}
// TypeDefinitionRegistrationOptions contains the options for the
// go-to-type-definition handler registration.
type TypeDefinitionRegistrationOptions struct {
TextDocumentRegistrationOptions
DefinitionOptions
}
// TypeDefinitionParams contains the fields sent in a
// `textDocument/typeDefinition` request.
type TypeDefinitionParams struct {
TextDocumentPositionParams
WorkDoneProgressParams
PartialResultParams
}
// ImplementationOptions contains the options for the go-to-implementation
// handler.
type ImplementationOptions struct {
WorkDoneProgressOptions
}
// ImplementationRegistrationOptions contains the options for the
// go-to-implementation handler registration.
type ImplementationRegistrationOptions struct {
TextDocumentRegistrationOptions
DefinitionOptions
}
// ImplementationParams contains the fields sent in a
// `textDocument/implementation` request.
type ImplementationParams struct {
TextDocumentPositionParams
WorkDoneProgressParams
PartialResultParams
}
// ReferenceContext defines additional context to a reference parameter.
type ReferenceContext struct {
// Include the declaration of the current symbol.
IncludeDeclaration bool `json:"includeDeclaration,omitempty"`
}
// ReferenceOptions contains the options for the find references handler.
type ReferenceOptions struct {
WorkDoneProgressOptions
}
// ReferenceRegistrationOptions contains the options for the find references
// handler registration.
type ReferenceRegistrationOptions struct {
TextDocumentRegistrationOptions
ReferenceOptions
}
// ReferenceParams contains the fields sent in a `textDocument/references`
// request.
type ReferenceParams struct {
WorkDoneProgressParams
PartialResultParams
Context ReferenceContext `json:"context"`
}