-
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathcall_hierarchy.gen.go
More file actions
123 lines (100 loc) · 3.86 KB
/
Copy pathcall_hierarchy.gen.go
File metadata and controls
123 lines (100 loc) · 3.86 KB
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
112
113
114
115
116
117
118
119
120
121
122
123
// Copyright 2026 The Go Language Server Authors
// SPDX-License-Identifier: BSD-3-Clause
// Code generated by internal/genlsp from metaModel.json; DO NOT EDIT.
package protocol
import (
"go.lsp.dev/uri"
)
// CallHierarchyPrepareParams The parameter of a `textDocument/prepareCallHierarchy` request.
//
// Since: 3.16.0
type CallHierarchyPrepareParams struct {
TextDocumentPositionParams
WorkDoneProgressParams
}
// CallHierarchyItem Represents programming constructs like functions or constructors in the context
// of call hierarchy.
//
// Since: 3.16.0
type CallHierarchyItem struct {
// Name The name of this item.
Name string `json:"name"`
// Kind The kind of this item.
Kind SymbolKind `json:"kind"`
// Tags Tags for this item.
Tags []SymbolTag `json:"tags,omitzero"`
// Detail More detail for this item, e.g. the signature of a function.
Detail *string `json:"detail,omitzero"`
// URI The resource identifier of this item.
URI uri.URI `json:"uri"`
// Range The range enclosing this symbol not including leading/trailing whitespace but everything else, e.g. comments and code.
Range Range `json:"range"`
// SelectionRange The range that should be selected and revealed when this symbol is being picked, e.g. the name of a function.
// Must be contained by the [CallHierarchyItem.range].
SelectionRange Range `json:"selectionRange"`
// Data A data entry field that is preserved between a call hierarchy prepare and
// incoming calls or outgoing calls requests.
Data LSPAny `json:"data,omitzero"`
}
// CallHierarchyRegistrationOptions Call hierarchy options used during static or dynamic registration.
//
// Since: 3.16.0
type CallHierarchyRegistrationOptions struct {
TextDocumentRegistrationOptions
CallHierarchyOptions
StaticRegistrationOptions
}
// CallHierarchyIncomingCallsParams The parameter of a `callHierarchy/incomingCalls` request.
//
// Since: 3.16.0
type CallHierarchyIncomingCallsParams struct {
WorkDoneProgressParams
PartialResultParams
// Item is defined by the LSP specification.
Item CallHierarchyItem `json:"item"`
}
// CallHierarchyIncomingCall Represents an incoming call, e.g. a caller of a method or constructor.
//
// Since: 3.16.0
type CallHierarchyIncomingCall struct {
// From The item that makes the call.
From CallHierarchyItem `json:"from"`
// FromRanges The ranges at which the calls appear. This is relative to the caller
// denoted by [CallHierarchyIncomingCall.from].
FromRanges []Range `json:"fromRanges"`
}
// CallHierarchyOutgoingCallsParams The parameter of a `callHierarchy/outgoingCalls` request.
//
// Since: 3.16.0
type CallHierarchyOutgoingCallsParams struct {
WorkDoneProgressParams
PartialResultParams
// Item is defined by the LSP specification.
Item CallHierarchyItem `json:"item"`
}
// CallHierarchyOutgoingCall Represents an outgoing call, e.g. calling a getter from a method or a method from a constructor etc.
//
// Since: 3.16.0
type CallHierarchyOutgoingCall struct {
// To The item that is called.
To CallHierarchyItem `json:"to"`
// FromRanges The range at which this item is called. This is the range relative to the caller, e.g the item
// passed to [CallHierarchyItemProvider.provideCallHierarchyOutgoingCalls]
// and not [CallHierarchyOutgoingCall.to].
FromRanges []Range `json:"fromRanges"`
}
// CallHierarchyOptions Call hierarchy options used during static registration.
//
// Since: 3.16.0
type CallHierarchyOptions struct {
WorkDoneProgressOptions
}
// CallHierarchyClientCapabilities is defined by the LSP specification.
//
// Since: 3.16.0
type CallHierarchyClientCapabilities struct {
// DynamicRegistration Whether implementation supports dynamic registration. If this is set to `true`
// the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
// return value for the corresponding server capability as well.
DynamicRegistration *bool `json:"dynamicRegistration,omitzero"`
}