antlr4 icon indicating copy to clipboard operation
antlr4 copied to clipboard

Possible bad copy paste in code

Open Bbulatov opened this issue 4 months ago • 0 comments

Hello! During the static analysis was found possible mistake in code:

  1. In runtime/Go/antlr/v4/parser_atn_simulator.go:1475 value 'GetLiteralNames' might be 'GetSymbolicNames', because before accessing the dimension, you need to check the existence as it was in the block runtime/Go/antlr/v4/parser_atn_simulator.go:1471-1473. Is this a bug and does it need to be fixed?
Image

Bbulatov avatar Aug 20 '25 15:08 Bbulatov