Skip to content

removing unused nextFunction#771

Merged
mattbaileyuk merged 2 commits intojsonata-js:masterfrom
mikhail-barg:master
Mar 21, 2026
Merged

removing unused nextFunction#771
mattbaileyuk merged 2 commits intojsonata-js:masterfrom
mikhail-barg:master

Conversation

@mikhail-barg
Copy link
Copy Markdown
Contributor

@mikhail-barg mikhail-barg commented Feb 25, 2026

also a minor fix removing unused nextFunction attribute

Fixes #769

@andrew-coleman
Copy link
Copy Markdown
Member

Hi @mikhail-barg - apologies, I just noticed after moving the tests that you'd raised this PR to do the same a while back. My bad!
Please could you rebase on master, and I'll merge the remainder of this.
Thanks!

@mikhail-barg
Copy link
Copy Markdown
Contributor Author

@andrew-coleman done!

Comment thread src/parser.js
Comment on lines 1050 to 1057
if (rest.type === 'function' &&
rest.procedure.type === 'path' &&
rest.procedure.steps.length === 1 &&
rest.procedure.steps[0].type === 'name' &&
result.steps[result.steps.length - 1].type === 'function') {
// next function in chain of functions - will override a thenable
result.steps[result.steps.length - 1].nextFunction = rest.procedure.steps[0].value;
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You'll need to take out the whole if block.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, thanks for noticing. Done

@mikhail-barg mikhail-barg changed the title proper placement for recently added function signature tests removing unused nextFunction Mar 21, 2026
@mattbaileyuk mattbaileyuk merged commit 597e5ee into jsonata-js:master Mar 21, 2026
9 checks passed
@mattbaileyuk
Copy link
Copy Markdown
Member

@mikhail-barg Thanks!

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.

nextFunction is never used

3 participants