Commit 1f397b3b authored by Eric Myhre's avatar Eric Myhre

fix small consistency typo in gen function names.

Should not affect most user code; though these are technically
exported symbols, they're very unlikely to be used directly.
parent 2f7f3437
......@@ -18,7 +18,7 @@ var _ TypeGenerator = &unionKindedGenerator{}
// this depends on whether the error is an ErrWrongKind that was found while checking the method for appropriateness on the union's inhabitant
// versus if the error came from the union inhabitant itself after delegation occured.
func NewUnionKindedGenerator(pkgName string, typ *schema.TypeUnion, adjCfg *AdjunctCfg) TypeGenerator {
func NewUnionReprKindedGenerator(pkgName string, typ *schema.TypeUnion, adjCfg *AdjunctCfg) TypeGenerator {
return unionKindedGenerator{
unionGenerator{
adjCfg,
......
......@@ -73,7 +73,7 @@ func Generate(pth string, pkgName string, ts schema.TypeSystem, adjCfg *AdjunctC
case schema.UnionRepresentation_Keyed:
fn(NewUnionReprKeyedGenerator(pkgName, t2, adjCfg), f)
case schema.UnionRepresentation_Kinded:
fn(NewUnionKindedGenerator(pkgName, t2, adjCfg), f)
fn(NewUnionReprKindedGenerator(pkgName, t2, adjCfg), f)
default:
panic("unrecognized union representation strategy")
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment