MCPcopy Create free account
hub / github.com/devfile/api / simplifyUnion

Function simplifyUnion

pkg/apis/workspaces/v1alpha1/union_implementation.go:52–55  ·  view source on GitHub ↗
(union Union, visitorType reflect.Type)

Source from the content-addressed store, hash-verified

50}
51
52func simplifyUnion(union Union, visitorType reflect.Type) {
53 _ = normalizeUnion(union, visitorType)
54 *union.discriminator() = ""
55}
56
57func normalizeUnion(union Union, visitorType reflect.Type) error {
58 err := updateDiscriminator(union, visitorType)

Callers 7

SimplifyMethod · 0.70
SimplifyMethod · 0.70
SimplifyMethod · 0.70
SimplifyMethod · 0.70
SimplifyMethod · 0.70
SimplifyMethod · 0.70
SimplifyMethod · 0.70

Calls 2

normalizeUnionFunction · 0.70
discriminatorMethod · 0.65

Tested by

no test coverage detected