LambdaCodeGen generates Go function literals from Dingo lambda expressions. Transforms: - Rust-style: |x| x + 1 → func(x any) any { return x + 1 } - TypeScript-style: (x) => x + 1 → func(x any) any { return x + 1 } - Block lambda: |x| { ... } → func(x any) any { ... } Handles: - Type annotations o
| 20 | // - Block bodies (pass through) |
| 21 | // - Type inference placeholders (any - replaced in type inference pass) |
| 22 | type LambdaCodeGen struct { |
| 23 | *BaseGenerator |
| 24 | expr *ast.LambdaExpr |
| 25 | } |
| 26 | |
| 27 | // Generate produces Go code for the lambda expression. |
| 28 | // |
nothing calls this directly
no outgoing calls
no test coverage detected