(in string)
| 159 | } |
| 160 | |
| 161 | func unescapeIdent(in string) (string, error) { |
| 162 | if len(in) <= 2 { |
| 163 | return "", errors.New("invalid escaped identifier: underflow") |
| 164 | } |
| 165 | return in[1 : len(in)-1], nil |
| 166 | } |
| 167 | |
| 168 | // normalizeIdent returns the interpreted identifier. |
| 169 | func (p *parser) normalizeIdent(ctx gen.IEscapeIdentContext) (string, error) { |