Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actually share reference to text in CommonToken.fromToken #415

Merged
merged 1 commit into from
Jul 2, 2019

Conversation

dberlin
Copy link
Contributor

@dberlin dberlin commented Apr 21, 2019

This looks like a java conversion error.

The doc comment above (and java version) attempt to share the string/reference if the fromToken is a CommonToken.

However, the field got underscored'd in the conversion to typescript, and it looks like only the LHS got updated.
The upshot is that the without this change, if oldToken is a CommonToken, it will retrieve and copy the text from the oldToken, not share it.
With this change, it will share the reference if possible.

@codecov-io
Copy link

Codecov Report

Merging #415 into master will not change coverage.
The diff coverage is 0%.

@@           Coverage Diff           @@
##           master     #415   +/-   ##
=======================================
  Coverage   75.51%   75.51%           
=======================================
  Files         159      159           
  Lines       10503    10503           
  Branches     1612     1612           
=======================================
  Hits         7931     7931           
  Misses       2008     2008           
  Partials      564      564

@BurtHarris BurtHarris merged commit 9d331a5 into tunnelvisionlabs:master Jul 2, 2019
@sharwell sharwell added this to the 0.5.0-alpha.4 milestone Jan 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants