andygeiss/esp32-transpiler

View on GitHub
transpile/handlers/handleValueSpecType.go

Summary

Maintainability
A
0 mins
Test Coverage
package handlers

import "go/ast"

func handleValueSpecType(expr ast.Expr) string {
    code := ""
    switch t := expr.(type) {
    case *ast.SelectorExpr:
        code += handleSelectorExpr(t)
    case *ast.Ident:
        code += handleIdent(t)
    }
    return code
}