-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathutils_gen.go
247 lines (200 loc) · 6.94 KB
/
utils_gen.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
// Code generated by "go run genlist.go -o utils_gen.go"; DO NOT EDIT THIS FILE.
package goen
import (
"container/list"
"github.com/Masterminds/squirrel"
)
// PatchList is typed version of list.List
type PatchList list.List
func wrapPatchElementOrNil(e *list.Element) *PatchElement {
if e == nil {
return nil
}
return &PatchElement{e}
}
// Back is typed version of (*list.List).Back
func (l *PatchList) Back() *PatchElement {
ret0 := (*list.List)(l).Back()
return wrapPatchElementOrNil(ret0)
}
// Front is typed version of (*list.List).Front
func (l *PatchList) Front() *PatchElement {
ret0 := (*list.List)(l).Front()
return wrapPatchElementOrNil(ret0)
}
// Init is typed version of (*list.List).Init
func (l *PatchList) Init() *PatchList {
ret0 := (*list.List)(l).Init()
return (*PatchList)(ret0)
}
// InsertAfter is typed version of (*list.List).InsertAfter
func (l *PatchList) InsertAfter(v *Patch, mark *PatchElement) *PatchElement {
ret0 := (*list.List)(l).InsertAfter(v, mark.el)
return wrapPatchElementOrNil(ret0)
}
// InsertBefore is typed version of (*list.List).InsertBefore
func (l *PatchList) InsertBefore(v *Patch, mark *PatchElement) *PatchElement {
ret0 := (*list.List)(l).InsertBefore(v, mark.el)
return wrapPatchElementOrNil(ret0)
}
// Len is typed version of (*list.List).Len
func (l *PatchList) Len() int {
ret0 := (*list.List)(l).Len()
return (int)(ret0)
}
// MoveAfter is typed version of (*list.List).MoveAfter
func (l *PatchList) MoveAfter(e *PatchElement, mark *PatchElement) {
(*list.List)(l).MoveAfter(e.el, mark.el)
}
// MoveBefore is typed version of (*list.List).MoveBefore
func (l *PatchList) MoveBefore(e *PatchElement, mark *PatchElement) {
(*list.List)(l).MoveBefore(e.el, mark.el)
}
// MoveToBack is typed version of (*list.List).MoveToBack
func (l *PatchList) MoveToBack(e *PatchElement) {
(*list.List)(l).MoveToBack(e.el)
}
// MoveToFront is typed version of (*list.List).MoveToFront
func (l *PatchList) MoveToFront(e *PatchElement) {
(*list.List)(l).MoveToFront(e.el)
}
// PushBack is typed version of (*list.List).PushBack
func (l *PatchList) PushBack(v *Patch) *PatchElement {
ret0 := (*list.List)(l).PushBack(v)
return wrapPatchElementOrNil(ret0)
}
// PushBackList is typed version of (*list.List).PushBackList
func (l *PatchList) PushBackList(other *PatchList) {
(*list.List)(l).PushBackList((*list.List)(other))
}
// PushFront is typed version of (*list.List).PushFront
func (l *PatchList) PushFront(v *Patch) *PatchElement {
ret0 := (*list.List)(l).PushFront(v)
return wrapPatchElementOrNil(ret0)
}
// PushFrontList is typed version of (*list.List).PushFrontList
func (l *PatchList) PushFrontList(other *PatchList) {
(*list.List)(l).PushFrontList((*list.List)(other))
}
// Remove is typed version of (*list.List).Remove
func (l *PatchList) Remove(e *PatchElement) *Patch {
ret0 := (*list.List)(l).Remove(e.el)
return ret0.(*Patch)
}
// PatchElement is typed version of list.Element
type PatchElement struct {
el *list.Element
}
// Next returns the next list element or nil.
func (e *PatchElement) Next() *PatchElement {
return wrapPatchElementOrNil(e.el.Next())
}
// Prev returns the previous list element or nil.
func (e *PatchElement) Prev() *PatchElement {
return wrapPatchElementOrNil(e.el.Prev())
}
// GetValue gets the value stored with this element.
func (e *PatchElement) GetValue() *Patch {
return e.el.Value.(*Patch)
}
// SetValue sets value with this element.
func (e *PatchElement) SetValue(v *Patch) {
e.el.Value = v
}
// SqlizerList is typed version of list.List
type SqlizerList list.List
func wrapSqlizerElementOrNil(e *list.Element) *SqlizerElement {
if e == nil {
return nil
}
return &SqlizerElement{e}
}
// Back is typed version of (*list.List).Back
func (l *SqlizerList) Back() *SqlizerElement {
ret0 := (*list.List)(l).Back()
return wrapSqlizerElementOrNil(ret0)
}
// Front is typed version of (*list.List).Front
func (l *SqlizerList) Front() *SqlizerElement {
ret0 := (*list.List)(l).Front()
return wrapSqlizerElementOrNil(ret0)
}
// Init is typed version of (*list.List).Init
func (l *SqlizerList) Init() *SqlizerList {
ret0 := (*list.List)(l).Init()
return (*SqlizerList)(ret0)
}
// InsertAfter is typed version of (*list.List).InsertAfter
func (l *SqlizerList) InsertAfter(v squirrel.Sqlizer, mark *SqlizerElement) *SqlizerElement {
ret0 := (*list.List)(l).InsertAfter(v, mark.el)
return wrapSqlizerElementOrNil(ret0)
}
// InsertBefore is typed version of (*list.List).InsertBefore
func (l *SqlizerList) InsertBefore(v squirrel.Sqlizer, mark *SqlizerElement) *SqlizerElement {
ret0 := (*list.List)(l).InsertBefore(v, mark.el)
return wrapSqlizerElementOrNil(ret0)
}
// Len is typed version of (*list.List).Len
func (l *SqlizerList) Len() int {
ret0 := (*list.List)(l).Len()
return (int)(ret0)
}
// MoveAfter is typed version of (*list.List).MoveAfter
func (l *SqlizerList) MoveAfter(e *SqlizerElement, mark *SqlizerElement) {
(*list.List)(l).MoveAfter(e.el, mark.el)
}
// MoveBefore is typed version of (*list.List).MoveBefore
func (l *SqlizerList) MoveBefore(e *SqlizerElement, mark *SqlizerElement) {
(*list.List)(l).MoveBefore(e.el, mark.el)
}
// MoveToBack is typed version of (*list.List).MoveToBack
func (l *SqlizerList) MoveToBack(e *SqlizerElement) {
(*list.List)(l).MoveToBack(e.el)
}
// MoveToFront is typed version of (*list.List).MoveToFront
func (l *SqlizerList) MoveToFront(e *SqlizerElement) {
(*list.List)(l).MoveToFront(e.el)
}
// PushBack is typed version of (*list.List).PushBack
func (l *SqlizerList) PushBack(v squirrel.Sqlizer) *SqlizerElement {
ret0 := (*list.List)(l).PushBack(v)
return wrapSqlizerElementOrNil(ret0)
}
// PushBackList is typed version of (*list.List).PushBackList
func (l *SqlizerList) PushBackList(other *SqlizerList) {
(*list.List)(l).PushBackList((*list.List)(other))
}
// PushFront is typed version of (*list.List).PushFront
func (l *SqlizerList) PushFront(v squirrel.Sqlizer) *SqlizerElement {
ret0 := (*list.List)(l).PushFront(v)
return wrapSqlizerElementOrNil(ret0)
}
// PushFrontList is typed version of (*list.List).PushFrontList
func (l *SqlizerList) PushFrontList(other *SqlizerList) {
(*list.List)(l).PushFrontList((*list.List)(other))
}
// Remove is typed version of (*list.List).Remove
func (l *SqlizerList) Remove(e *SqlizerElement) squirrel.Sqlizer {
ret0 := (*list.List)(l).Remove(e.el)
return ret0.(squirrel.Sqlizer)
}
// SqlizerElement is typed version of list.Element
type SqlizerElement struct {
el *list.Element
}
// Next returns the next list element or nil.
func (e *SqlizerElement) Next() *SqlizerElement {
return wrapSqlizerElementOrNil(e.el.Next())
}
// Prev returns the previous list element or nil.
func (e *SqlizerElement) Prev() *SqlizerElement {
return wrapSqlizerElementOrNil(e.el.Prev())
}
// GetValue gets the value stored with this element.
func (e *SqlizerElement) GetValue() squirrel.Sqlizer {
return e.el.Value.(squirrel.Sqlizer)
}
// SetValue sets value with this element.
func (e *SqlizerElement) SetValue(v squirrel.Sqlizer) {
e.el.Value = v
}