@@ -30,7 +30,7 @@ import (
3030// Inspector is an interface that allows for the inspection of fields in structs.
3131type Inspector interface {
3232 // InspectFields is a function that iterates over fields in structs.
33- InspectFields (func (field * ast.Field , stack []ast. Node , jsonTagInfo extractjsontags.FieldTagInfo , markersAccess markers.Markers ))
33+ InspectFields (func (field * ast.Field , jsonTagInfo extractjsontags.FieldTagInfo , markersAccess markers.Markers ))
3434
3535 // InspectTypeSpec is a function that inspects the type spec and calls the provided inspectTypeSpec function.
3636 InspectTypeSpec (func (typeSpec * ast.TypeSpec , markersAccess markers.Markers ))
@@ -55,7 +55,7 @@ func newInspector(astinspector *astinspector.Inspector, jsonTags extractjsontags
5555// InspectFields iterates over fields in structs, ignoring any struct that is not a type declaration, and any field that is ignored and
5656// therefore would not be included in the CRD spec.
5757// For the remaining fields, it calls the provided inspectField function to apply analysis logic.
58- func (i * inspector ) InspectFields (inspectField func (field * ast.Field , stack []ast. Node , jsonTagInfo extractjsontags.FieldTagInfo , markersAccess markers.Markers )) {
58+ func (i * inspector ) InspectFields (inspectField func (field * ast.Field , jsonTagInfo extractjsontags.FieldTagInfo , markersAccess markers.Markers )) {
5959 // Filter to fields so that we can iterate over fields in a struct.
6060 nodeFilter := []ast.Node {
6161 (* ast .Field )(nil ),
@@ -75,7 +75,7 @@ func (i *inspector) InspectFields(inspectField func(field *ast.Field, stack []as
7575 return false
7676 }
7777
78- i .processFieldWithRecovery (field , stack , inspectField )
78+ i .processFieldWithRecovery (field , inspectField )
7979
8080 return true
8181 })
@@ -117,7 +117,7 @@ func (i *inspector) shouldSkipField(field *ast.Field) bool {
117117}
118118
119119// processFieldWithRecovery processes a field with panic recovery.
120- func (i * inspector ) processFieldWithRecovery (field * ast.Field , stack []ast. Node , inspectField func (field * ast.Field , stack []ast. Node , jsonTagInfo extractjsontags.FieldTagInfo , markersAccess markers.Markers )) {
120+ func (i * inspector ) processFieldWithRecovery (field * ast.Field , inspectField func (field * ast.Field , jsonTagInfo extractjsontags.FieldTagInfo , markersAccess markers.Markers )) {
121121 tagInfo := i .jsonTags .FieldTags (field )
122122
123123 defer func () {
@@ -128,7 +128,7 @@ func (i *inspector) processFieldWithRecovery(field *ast.Field, stack []ast.Node,
128128 }
129129 }()
130130
131- inspectField (field , stack , tagInfo , i .markers )
131+ inspectField (field , tagInfo , i .markers )
132132}
133133
134134// InspectTypeSpec inspects the type spec and calls the provided inspectTypeSpec function.
0 commit comments