andygeiss/esp32-transpiler

View on GitHub
transpile/handlers/handleDeclStmt.go

Summary

Maintainability
A
0 mins
Test Coverage
package handlers

import "go/ast"

func handleDeclStmt(stmt *ast.DeclStmt) string {
    code := ""
    switch decl := stmt.Decl.(type) {
    case *ast.GenDecl:
        code += handleGenDecl(decl)
    }
    return code
}