wesl
    Preparing search index...

    Interface DeclIdent

    interface DeclIdent {
        containingScope: Scope;
        declElem?: DeclarationElem;
        dependentScope?: Scope;
        id?: number;
        isGlobal: boolean;
        kind: "decl";
        mangledName?: string;
        originalName: string;
        srcModule: SrcModule;
    }

    Hierarchy

    • IdentBase
      • DeclIdent
    Index

    Properties

    containingScope: Scope

    scope in which this declaration is found

    declElem?: DeclarationElem

    link to AST so that we can traverse scopes and know what elems to emit

    dependentScope?: Scope

    scope for the references within this declaration (only needed for global decls.) if this decl is included in the link, dependentScope holds other refIdents that should be included too

    id?: number
    isGlobal: boolean

    true if this is a global declaration (e.g. not a local variable)

    kind: "decl"
    mangledName?: string

    name in the output code

    originalName: string
    srcModule: SrcModule

    To figure out which module this declaration is from.