const makeASTParser: (
code: string,
tree: Tree,
name?: string,
) => {
getImports:
() => ({
at: number,
symbols: string[],
name: string,
imports: ImportRef[],
})[],
getDeclarations: () => DeclarationRef[],
getSymbolTable: () => SymbolTable,
getShakeTable: (
table?: SymbolTable,
) => ShakeTable | undefined,
}
packages / shader / src / wgsl / ast.ts