pub fn datatype_to_value(defn: &DatatypeDef) -> ValueExpand description
Convert a SDML DatatypeDef into a context object, in the form shown as JSON below.
{
"__type": "datatype",
"source_span": {}, // optional
"name": "Identifier",
"is_opaque": false,
"base_type": "IdentifierReference",
"annotations": [] // optional
}