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

Fix lineSpan #193

Merged
merged 5 commits into from
Feb 13, 2020
Merged

Fix lineSpan #193

merged 5 commits into from
Feb 13, 2020

Conversation

dansanduleac
Copy link
Contributor

Before this PR

#192 added a function lineSpan that could sometimes throw a NPE.

After this PR

==COMMIT_MSG==
Fix lineSpan function to not throw NPE.
==COMMIT_MSG==

Possible downsides?

@changelog-app
Copy link

changelog-app bot commented Feb 13, 2020

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

Fix bug in 0.3.24 that could sometimes cause a NPE when encountering a newline right after a string concatenation expression.

Check the box to generate changelog(s)

  • Generate changelog entry

+ 1;
ImmutableRangeMap<Integer, ? extends Input.Token> positionTokenMap =
builder.getInput().getPositionTokenMap();
Function<Input.Token, Integer> lineNumberAt =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we make this an instance method?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

@bulldozer-bot bulldozer-bot bot merged commit 4355e8c into develop Feb 13, 2020
@bulldozer-bot bulldozer-bot bot deleted the ds/linespan-failing-test branch February 13, 2020 18:51
@svc-autorelease
Copy link
Collaborator

Released 0.3.25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants