(in string)
| 152 | } |
| 153 | |
| 154 | func unescapeIdent(in string) (string, error) { |
| 155 | if len(in) <= 2 { |
| 156 | return "", errors.New("invalid escaped identifier: underflow") |
| 157 | } |
| 158 | return in[1 : len(in)-1], nil |
| 159 | } |
| 160 | |
| 161 | // normalizeIdent returns the interpreted identifier. |
| 162 | func (p *parser) normalizeIdent(ctx gen.IEscapeIdentContext) (string, error) { |