andygeiss/esp32-transpiler

View on GitHub
transpile/handlers/handleBlockStmt.go

Summary

Maintainability
A
0 mins
Test Coverage
package handlers

import "go/ast"

func handleBlockStmt(body *ast.BlockStmt) string {
    code := ""
    if body == nil {
        return code
    }
    for _, stmt := range body.List {
        code += handleStmt(stmt)
    }
    return code
}