Saxonberg Server API
    Preparing search index...

    Interface DesugarResult

    Output of the desugar pass.

    • rewritten — the post-desugar string fed to the lexer.
    • quantityHint — present when the natural-language quantity prefix matched. Always mode: 'lenient' here; strict-mode hints come from the parser's QuantityNode.
    • error — set when desugar detected an unrecoverable ambiguity (quantity + ordinal collision). When set, rewritten is the original input and quantityHint is undefined; the resolver surfaces the message.
    interface DesugarResult {
        error?: string;
        quantityHint?: MqlQuantity;
        rewritten: string;
    }
    Index

    Properties

    error?: string
    quantityHint?: MqlQuantity
    rewritten: string