Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion runtime/Go/antlr/v4/lexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (b *BaseLexer) GetTokenFactory() TokenFactory {
return b.factory
}

func (b *BaseLexer) setTokenFactory(f TokenFactory) {
func (b *BaseLexer) SetTokenFactory(f TokenFactory) {
b.factory = f
}

Expand Down
4 changes: 2 additions & 2 deletions runtime/Go/antlr/v4/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,8 @@ func (p *BaseParser) GetTokenFactory() TokenFactory {
}

// setTokenFactory is used to tell our token source and error strategy about a new way to create tokens.
func (p *BaseParser) setTokenFactory(factory TokenFactory) {
p.input.GetTokenSource().setTokenFactory(factory)
func (p *BaseParser) SetTokenFactory(factory TokenFactory) {
p.input.GetTokenSource().SetTokenFactory(factory)
}

// GetATNWithBypassAlts - the ATN with bypass alternatives is expensive to create, so we create it
Expand Down
2 changes: 1 addition & 1 deletion runtime/Go/antlr/v4/token_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ type TokenSource interface {
GetCharPositionInLine() int
GetInputStream() CharStream
GetSourceName() string
setTokenFactory(factory TokenFactory)
SetTokenFactory(factory TokenFactory)
GetTokenFactory() TokenFactory
}
Loading