Function datatype_to_value

Source
pub fn datatype_to_value(defn: &DatatypeDef) -> Value
Expand 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
}