-
Notifications
You must be signed in to change notification settings - Fork 434
Fixing parsing of method invocations in Javascript #5484
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
Open
greg-at-moderne
wants to merge
25
commits into
main
Choose a base branch
from
greg-parsing-method-invocation
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
25 commits
8000
Select commit
Hold shift + click to select a range
3314617
Fixing parsing of method invocations
greg-at-moderne 318a929
Merge remote-tracking branch 'origin/main' into greg-parsing-method-i…
greg-at-moderne e67fb1a
Fixing handling of question dot token
greg-at-moderne 8f0046b
Simplify hasQuestionDotToken
greg-at-moderne 4944627
Introducing FunctionCall
greg-at-moderne 809a54b
Merge remote-tracking branch 'origin/main' into greg-parsing-method-i…
greg-at-moderne 3b998be
Renaming select to function
greg-at-moderne 244130e
Merge remote-tracking branch 'origin/main' into greg-parsing-method-i…
greg-at-moderne 71dadef
Merge remote-tracking branch 'origin/main' into greg-parsing-method-i…
greg-at-moderne 3887d8d
Adding JS.FunctionCall
greg-at-moderne 2d0dbcf
Adding JS.FunctionCall
greg-at-moderne 4c80c6d
Adding JS.FunctionCall
greg-at-moderne 9c8d727
Merge branch 'main' into greg-parsing-method-invocation
greg-at-moderne 0d2f21e
Merge remote-tracking branch 'origin/main' into greg-parsing-method-i…
greg-at-moderne 5fb8c1d
Moving the comments before ?. to select.after
greg-at-moderne c266bf0
Merge remote-tracking branch 'origin/main' into greg-parsing-method-i…
greg-at-moderne 666f836
Merge remote-tracking branch 'origin/main' into greg-parsing-method-i…
greg-at-moderne 166f663
override instead of protected method modifiers
greg-at-moderne fadd2bb
Using f variable name
greg-at-moderne 2d4e017
Adding assertions about comments for JS.FunctionCall
greg-at-moderne 04cdf8d
Removing withDeclaringType method
greg-at-moderne 6acda6b
Merge branch 'main' into greg-parsing-method-invocation
greg-at-moderne 752d300
JsRightPadded.Location.FUNCTION_CALL_FUNCTION
greg-at-moderne fdcbe63
Merge remote-tracking branch 'origin/main' into greg-parsing-method-i…
greg-at-moderne 5d4fd99
Custom withTypeParameters method
greg-at-moderne File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice if we could detangle this a bit and have the
?
be printed by the presence of the marker and then only here print the.
. Would that make sense?Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had it like you suggest before in my code, but then the Space handling is wrong:
For that to work, the
/*a*/
comment would need to land asOptional.prefix
.That in turn would make it inconsistent with how the
/*a*/
comment is placed in other similar syntaxes.See
call.test.ts / with optional chaining operator
.I suggest to keep it like it is. After all the
?.
is a single token with its own meaning, thus it feels OK to print it in one go.Wdyt?