wesl
    Preparing search index...

    Interface WeslParseState

    stable and unstable state used during parsing

    interface WeslParseState {
        context: WeslParseContext;
        stable: WeslAST;
    }

    Hierarchy

    Index

    Properties

    Properties

    Context for user written parsers while parsing. e.g. for nested #if state The context value is reset to its original value if the parser fails. Set context to a new immutable value to update (don't internally mutate context)

    stable: WeslAST

    typical place for user written parsers to accumulate results, e.g. syntax tree