andygeiss/esp32-transpiler

View on GitHub
transpile/handlers/handleAssignStmt.go

Summary

Maintainability
A
0 mins
Test Coverage
package handlers

import (
    "go/ast"
)

func handleAssignStmt(as *ast.AssignStmt) string {
    code := handleAssignStmtExpr(as.Lhs)
    code += as.Tok.String()
    code += handleAssignStmtExpr(as.Rhs)
    return code
}