- <init>
Construct a .pdl source code encoder.
- coercePropertyToDataMapOrFail
Coerces a schema property value to a DataMap or, if it cannot be coerced, throws
an exception. If th
- computeImports
See @{link computeImports}.
- encode
Write the provided schema as the top level type in a .pdl file.
- escapeIdentifier
Escape an identifier for use in .pdl source code, replacing all identifiers that
would conflict with
- indent
Writes the current indentation as .pdl source. Typically used in conjunction
with write() and newlin
- markEncountered
- newline
Write a newline as .pdl source. Typically used in conjunction with indent() and
write() to emit an e
- pathToString
Converts a property path list to an escaped .pdl path string.
- requiredNewlineLayout
For inline declarations, determine if a type requires a newline to be declared.
Only types without a
- selectTypeRepresentation
- setTypeReferenceFormat