MCPcopy Create free account
hub / github.com/ShaderFrog/glsl-parser / debugProgram

Function debugProgram

src/preprocessor/preprocessor.test.ts:19–21  ·  view source on GitHub ↗
(program: string)

Source from the content-addressed store, hash-verified

17const parse = (src: string) => parser.parse(src) as PreprocessorProgram;
18
19const debugProgram = (program: string): void => {
20 debugAst(parse(program));
21};
22
23const debugAst = (ast: any) => {
24 console.log(util.inspect(ast, false, null, true));

Callers

nothing calls this directly

Calls 2

debugAstFunction · 0.85
parseFunction · 0.85

Tested by

no test coverage detected