andygeiss/esp32-transpiler

View on GitHub
transpile/handlers/handleFuncDeclName.go

Summary

Maintainability
A
0 mins
Test Coverage
package handlers

import "go/ast"

func handleFuncDeclName(ident *ast.Ident) string {
    code := ""
    if ident == nil {
        return code
    }
    code += ident.Name
    if val, ok := mapping[code]; ok {
        code = val
    }
    return code
}