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

Function debugStatement

src/parser/test-helpers.ts:127–131  ·  view source on GitHub ↗
({ parseSrc }: Context)

Source from the content-addressed store, hash-verified

125};
126
127const debugStatement = ({ parseSrc }: Context) => (stmt: AstNode) => {
128 const program = `void main() {/* start */${stmt}/* end */}`;
129 const ast = parseSrc(program);
130 inspect((ast.program[0] as FunctionNode).body.statements[0]);
131};
132
133const expectParsedStatement = ({ parseSrc }: Context) => (
134 src: string,

Callers 1

buildParserFunction · 0.85

Calls 2

parseSrcFunction · 0.85
inspectFunction · 0.85

Tested by

no test coverage detected