(id string)
| 28 | } |
| 29 | |
| 30 | func identifier(id string) string { |
| 31 | if len(id) >= 2 && id[0] == '"' && id[len(id)-1] == '"' { |
| 32 | unquoted, _ := strconv.Unquote(id) |
| 33 | return unquoted |
| 34 | } |
| 35 | return strings.ToLower(id) |
| 36 | } |
| 37 | |
| 38 | func NewIdentifier(t string) *ast.String { |
| 39 | return &ast.String{Str: identifier(t)} |
no outgoing calls
no test coverage detected