MCPcopy
hub / github.com/purpleidea/mgmt / Apply

Method Apply

lang/interfaces/ast.go:51–51  ·  view source on GitHub ↗

must implement this since we store these in our graphs Apply is a general purpose iterator method that operates on any node.

(fn func(Node) error)

Source from the content-addressed store, hash-verified

49
50 // Apply is a general purpose iterator method that operates on any node.
51 Apply(fn func(Node) error) error
52
53 //Parent() Node // TODO: should we implement this?
54}

Callers 15

ApplyMethod · 0.65
ApplyMethod · 0.65
ApplyMethod · 0.65
ApplyMethod · 0.65
ApplyMethod · 0.65
ApplyMethod · 0.65
ApplyMethod · 0.65
ApplyMethod · 0.65
ApplyMethod · 0.65
ApplyMethod · 0.65
ApplyMethod · 0.65
ApplyMethod · 0.65

Implementers 15

StmtBindlang/ast/structs.go
StmtReslang/ast/structs.go
StmtEdgelang/ast/structs.go
StmtIflang/ast/structs.go
StmtForlang/ast/structs.go
StmtProglang/ast/structs.go
StmtFunclang/ast/structs.go
StmtClasslang/ast/structs.go
StmtIncludelang/ast/structs.go
StmtImportlang/ast/structs.go
StmtCommentlang/ast/structs.go
ExprBoollang/ast/structs.go

Calls

no outgoing calls

Tested by

no test coverage detected