wesl
    Preparing search index...

    Interface WeslAST

    result of a parse for one wesl module (e.g. one .wesl file)

    The parser constructs the AST constructed into three sections for convenient access by the binding stage.

    • import statements
    • language elements (fn, struct, etc)
    • scopes
    interface WeslAST {
        imports: ImportStatement[];
        moduleAsserts?: ConstAssertElem[];
        moduleElem: ModuleElem;
        rootScope: Scope;
        srcModule: SrcModule;
    }

    Hierarchy (View Summary)

    Index

    Properties

    imports: ImportStatement[]

    imports found in this module

    moduleAsserts?: ConstAssertElem[]

    module level const_assert statements

    moduleElem: ModuleElem

    root module element

    rootScope: Scope

    root scope for this module

    srcModule: SrcModule

    source text for this module