MCPcopy Create free account
hub / github.com/foxcpp/maddy / isSnippet

Method isSnippet

framework/cfgparser/parse.go:184–189  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

182}
183
184func (ctx *parseContext) isSnippet(name string) (bool, string) {
185 if strings.HasPrefix(name, "(") && strings.HasSuffix(name, ")") {
186 return true, name[1 : len(name)-1]
187 }
188 return false, ""
189}
190
191func (ctx *parseContext) parseAsMacro(node *Node) (macroName string, args []string, err error) {
192 if !strings.HasPrefix(node.Name, "$(") {

Callers 1

readNodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected