MCPcopy Create free account
hub / github.com/despiteallobjections/amigo / Add

Method Add

syntax/syntax.go:49–49  ·  view source on GitHub ↗

Add adds a new pragma. The text is the directive, with the "//" prefix stripped.

(pos Pos, text string)

Source from the content-addressed store, hash-verified

47 // Add adds a new pragma.
48 // The text is the directive, with the "//" prefix stripped.
49 Add(pos Pos, text string)
50
51 // Take returns the current Pragma to apply to the next package,
52 // import, const, func, type, or var declaration.

Callers 5

walkDirsFunction · 0.65
errh0Method · 0.65
parseFilesMethod · 0.65
TestImportStdLibFunction · 0.65
parseFilesFunction · 0.65

Implementers 1

handlergcpragma/pragma.go

Calls

no outgoing calls

Tested by 2

walkDirsFunction · 0.52
TestImportStdLibFunction · 0.52