MCPcopy
hub / github.com/MadAppGang/dingo / NewMatchCodeGen

Function NewMatchCodeGen

pkg/codegen/expr.go:144–149  ·  view source on GitHub ↗

Stub implementations (to be implemented in their respective files): NewMatchCodeGen creates a match expression codegen (match.go) Implementation in match.go

(e *ast.MatchExpr)

Source from the content-addressed store, hash-verified

142// NewMatchCodeGen creates a match expression codegen (match.go)
143// Implementation in match.go
144func NewMatchCodeGen(e *ast.MatchExpr) Generator {
145 return &MatchCodeGen{
146 BaseGenerator: NewBaseGenerator(),
147 Match: e,
148 }
149}
150
151// NewLambdaCodeGen creates a lambda expression codegen (lambda.go)
152// Implementation in lambda.go

Calls 1

NewBaseGeneratorFunction · 0.85