use our tag parser (#1327)

This commit is contained in:
Weston Haught 2020-05-12 12:45:58 -05:00 committed by GitHub
parent 00ce2bb1b4
commit 2a7c3fd8e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 8 deletions

View File

@ -173,17 +173,11 @@ func MustParseClientGenTags(lines []string) Tags {
Tags: util.MustParseClientGenTags(lines),
}
values := types.ExtractCommentTags("+", lines)
values := ExtractCommentTags("+", lines)
_, ret.GenerateDuck = values["genduck"]
_, genRec := values["genreconciler"]
_, genRecClass := values["genreconciler:class"]
// Generate Reconciler code if genreconciler OR genreconciler:class exist.
if genRec || genRecClass {
ret.GenerateReconciler = true
}
_, ret.GenerateReconciler = values["genreconciler"]
return ret
}