MCPcopy Index your code
hub / github.com/php/frankenphp / generate

Method generate

internal/extgen/cfile.go:28–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28func (cg *cFileGenerator) generate() error {
29 filename := filepath.Join(cg.generator.BuildDir, cg.generator.BaseName+".c")
30 content, err := cg.buildContent()
31 if err != nil {
32 return err
33 }
34
35 return writeFile(filename, content)
36}
37
38func (cg *cFileGenerator) buildContent() (string, error) {
39 var builder strings.Builder

Callers 4

generateCFileMethod · 0.95
TestCFileErrorHandlingFunction · 0.95

Calls 2

buildContentMethod · 0.95
writeFileFunction · 0.85

Tested by 3

TestCFileErrorHandlingFunction · 0.76