MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / scaffoldSource

Function scaffoldSource

__tests__/cpp-raw-string-preparse-1505.test.ts:18–37  ·  view source on GitHub ↗
(delimiter = 'GEN')

Source from the content-addressed store, hash-verified

16// The original parses cleanly; #1505 is preParse corrupting its short delimiter,
17// distinct from the vendored grammar's 16-character delimiter error (#1522).
18function scaffoldSource(delimiter = 'GEN'): string {
19 return `#include <string>
20
21namespace {
22const char* kTpl = R"${delimiter}(
23DECLARE_THING(
24struct Ignored { int v; };
25int nested_fn() { return 1; }
26)${delimiter}";
27}
28
29int create_scaffold(int x) {
30 return x;
31}
32
33int helper_after(int y) {
34 return y + 1;
35}
36`;
37}
38
39const annotationBlankers = [
40 { name: 'line-leading annotations', blank: blankCppAnnotationMacroCalls },

Calls

no outgoing calls

Tested by

no test coverage detected