antlr4 icon indicating copy to clipboard operation
antlr4 copied to clipboard

Remove unused function createThin()

Open alexeyerm opened this issue 1 year ago • 0 comments
trafficstars

Remove unused function createThin() from common_token_factory.go, CommonTokenFactory.py, CommonTokenFactory.js.

The unexported function 'antlr.createThin' is never used but has a potential bug. Using nil constant at common_token_factory.go:52, it is passed as 1st parameter in call to function 'antlr.NewCommonToken' at common_token_factory.go:52, where it is dereferenced at token.go:140.


alexeyerm avatar Sep 05 '24 16:09 alexeyerm