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

Remove undefined from joinTracedToNode signature #1711

Merged
merged 3 commits into from
Oct 14, 2024

Conversation

aabounegm
Copy link
Member

Since it calls the function returned by traceToNode, which always returns CompositeGeneratorNode, it can never return undefined

Since it calls the function returned by `traceToNode`, which
always returns `CompositeGeneratorNode`, it can never return `undefined`
@@ -167,7 +167,7 @@ export function joinTracedToNode<T extends AstNode>(astNode: T, property?: Prope
* arguments as expected by {@link joinToNode}, i.e. an `iterable`, a function `toGenerated`
* converting each element into a `Generated`, as well as some `options`.
*
* That function than joins the elements of `iterable` by delegating to {@link joinToNode}.
* That function then joins the elements of `iterable` by delegating to {@link joinToNode}.
Copy link
Member

Choose a reason for hiding this comment

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

Suggestion: The signature before this change also needs to be adjusted.

Copy link
Member Author

Choose a reason for hiding this comment

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

Right, seems I forgot it earlier

Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

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

Thanks, looks good to me 👍

@msujew msujew merged commit b52cb60 into eclipse-langium:main Oct 14, 2024
4 checks passed
@aabounegm aabounegm deleted the improve-generator-type branch October 14, 2024 10:04
@spoenemann spoenemann added this to the v3.3.0 milestone Oct 25, 2024
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.

3 participants