File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tools/codegen/pkg/compatibility Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import (
14
14
"github.com/dave/dst"
15
15
"github.com/dave/dst/decorator"
16
16
"github.com/dave/dst/dstutil"
17
- "k8s.io/gengo/types "
17
+ "k8s.io/gengo/v2 "
18
18
"k8s.io/klog/v2"
19
19
)
20
20
@@ -252,7 +252,7 @@ func (g *compatibilityLevelCommentGenerator) applyCompatibilityLevelComment() ds
252
252
}
253
253
254
254
func extractCompatibilityLevel (spec * dst.GenDecl ) (int , bool ) {
255
- tags := types .ExtractCommentTags ("// +" , spec .Decorations ().Start .All ())
255
+ tags := gengo .ExtractCommentTags ("// +" , spec .Decorations ().Start .All ())
256
256
value , ok := tags [levelTagName ]
257
257
if ! ok {
258
258
return 0 , false
@@ -270,7 +270,7 @@ func extractCompatibilityLevel(spec *dst.GenDecl) (int, bool) {
270
270
}
271
271
272
272
func extractIsInternal (spec * dst.GenDecl ) bool {
273
- tags := types .ExtractCommentTags ("// +" , spec .Decorations ().Start .All ())
273
+ tags := gengo .ExtractCommentTags ("// +" , spec .Decorations ().Start .All ())
274
274
value , ok := tags [internalTagName ]
275
275
if ! ok {
276
276
return false
You can’t perform that action at this time.
0 commit comments