Skip to main content

Module lower

Module lower 

Source
Expand description

XSD AST → IR lowering pass.

The single public entry point is lower, which converts a parsed xsd::Schema into a TypeGraph.

§Name-conversion rules

SourceRuleExample
XSD type namekept verbatim (already PascalCase)BusinessApplicationHeaderV04
Sequence element name → struct fieldxml_to_snake_caseBizMsgIdrbiz_msg_idr
Choice element name → variant namekept verbatimOrgIdOrgId
Enumeration value → code variantcode_to_pascal_case"ADDR"Addr
Attribute name → field namexml_to_snake_caseCcyccy

Enums§

LowerError
Errors that can occur during the lowering pass.

Functions§

code_to_pascal_case
Convert an XSD enumeration value (typically all-caps) to a PascalCase Rust variant name.
lower
Lower an XSD Schema into a TypeGraph.
xml_to_snake_case
Convert an ISO 20022 XML element name (PascalCase / mixed-case / all-caps) to a snake_case Rust identifier.