Skip to content

Add a way for statements nodes to be internal in Painless #51836

@jdconrad

Description

@jdconrad

All statement nodes in Painless contain a Location object that describes information about what generated the statement including a character offset and possibly a source code snippet. Currently, during ASM writing we check to ensure there are no statement offsets that collide with each other with an assert. We need a way to mark a statement as internal since we are going to decorate the ir tree with statements generated by code as opposed to a user. Collision detection can then ignore any internal statements.

Relates to: #49869

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions