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 PainlessCast from AExpression as mutable state #56047

Merged
merged 36 commits into from
May 4, 2020

Conversation

jdconrad
Copy link
Contributor

PainlessCast currently exists as mutable state on the AExpression node, but this is no longer necessary as each cast is only used directly in the semantic pass after its creation. This change moves it to be local state during the semantic pass as opposed to mutable state on the nodes.

@jdconrad jdconrad added :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >refactoring v8.0.0 labels Apr 30, 2020
@jdconrad jdconrad requested a review from stu-elastic April 30, 2020 16:03
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Scripting)

@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Apr 30, 2020
Copy link
Contributor

@stu-elastic stu-elastic left a comment

Choose a reason for hiding this comment

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

Nice change dude.

@jdconrad
Copy link
Contributor Author

jdconrad commented May 4, 2020

@stu-elastic Thanks for the review!

@jdconrad
Copy link
Contributor Author

jdconrad commented May 4, 2020

Relates #53702

@jdconrad jdconrad merged commit 022d3d7 into elastic:master May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >refactoring Team:Core/Infra Meta label for core/infra team v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants