Skip to content

Commit

Permalink
Restore "Obtained from string" source name.
Browse files Browse the repository at this point in the history
This causes a fair number of diffs when importing into Google. If a way of setting the source name for string input streams was provided, then we could have the default be the empty string.

Signed-off-by: Jerry Berg <107155935+googleberg@users.noreply.github.com>
  • Loading branch information
googleberg authored and parrt committed Aug 28, 2023
1 parent 9bd489a commit e0df58f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/Go/antlr/v4/input_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (is *InputStream) GetTextFromInterval(i Interval) string {
}

func (*InputStream) GetSourceName() string {
return ""
return "Obtained from string"
}

// String returns the entire input stream as a string
Expand Down

0 comments on commit e0df58f

Please sign in to comment.