andygeiss/esp32-transpiler

View on GitHub
transpile/handlers/handleExprStmt.go

Summary

Maintainability
A
0 mins
Test Coverage
package handlers

import "go/ast"

func handleExprStmt(stmt *ast.ExprStmt) string {
    code := ""
    switch x := stmt.X.(type) {
    case *ast.CallExpr:
        code += handleCallExpr(x)
    }
    return code
}