preserves_schema_nim: use "E" as a default emebedding ident

This commit is contained in:
Emery Hemingway 2023-03-01 20:57:09 -06:00
parent 6b965c5c0e
commit 8ff65486ff
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ proc hasEmbeddedType(scm: Schema): bool =
proc embeddedIdentString(scm: Schema): string =
case scm.data.embeddedType.orKind
of EmbeddedtypenameKind.false:
raiseAssert "no embedded type for this module"
"E"
of EmbeddedtypenameKind.Ref:
doAssert $scm.data.embeddedType.ref.name != ""
$scm.data.embeddedType.ref.name