LA gets the value of the symbol at offset from the current position from the underlying CharStream and converts it to either upper case or lower case.
(offset int)
| 41 | // from the underlying CharStream and converts it to either upper case |
| 42 | // or lower case. |
| 43 | func (is *CaseChangingStream) LA(offset int) int { |
| 44 | in := is.CharStream.LA(offset) |
| 45 | if in < 0 { |
| 46 | // Such as antlr.TokenEOF which is -1 |
| 47 | return in |
| 48 | } |
| 49 | if is.upper { |
| 50 | return int(unicode.ToUpper(rune(in))) |
| 51 | } |
| 52 | return int(unicode.ToLower(rune(in))) |
| 53 | } |
no outgoing calls
no test coverage detected