File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed
pkg/analysis/helpers/markers Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -169,17 +169,17 @@ func extractGenDeclMarkers(typ *ast.GenDecl, results *markers) {
169
169
}
170
170
}
171
171
172
- // The marker set would apply to all specs in the GenDecl.
173
- // This covers the case where multiple types are defined with
174
- // this pattern:
175
- //
176
- // // some generic comment
177
- // type(
178
- // Foo struct{}
179
- //
180
- // Bar struct{}
181
- // )
182
- //
172
+ // The marker set would apply to all specs in the GenDecl.
173
+ // This covers the case where multiple types are defined with
174
+ // this pattern:
175
+ //
176
+ // // some generic comment
177
+ // type(
178
+ // Foo struct{}
179
+ //
180
+ // Bar struct{}
181
+ // )
182
+ //
183
183
for _ , spec := range typ .Specs {
184
184
typeSpec , ok := spec .(* ast.TypeSpec )
185
185
if ! ok {
@@ -369,11 +369,13 @@ func NewMarkerSet(markers ...Marker) MarkerSet {
369
369
370
370
func mergeMarkerSets (markerSets ... MarkerSet ) MarkerSet {
371
371
ms := make (MarkerSet )
372
+
372
373
for _ , markerSet := range markerSets {
373
374
for _ , markers := range markerSet {
374
375
ms .Insert (markers ... )
375
376
}
376
377
}
378
+
377
379
return ms
378
380
}
379
381
You can’t perform that action at this time.
0 commit comments