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

Function parseStatement

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

Source from the content-addressed store, hash-verified

145};
146
147const parseStatement = ({ parseSrc }: Context) => (
148 src: string,
149 options: ParserOptions = {}
150) => {
151 const program = `void main() {${src}}`;
152 return parseSrc(program, options);
153};
154
155const expectParsedProgram = ({ parseSrc }: Context) => (
156 src: string,

Callers 1

buildParserFunction · 0.85

Calls 1

parseSrcFunction · 0.85

Tested by

no test coverage detected