Skip to content

By default, the Explorer should display expressions using their textual representations #2105

@pcdavid

Description

@pcdavid

Currently, Expression elements are represented in the Explorer view as the "raw AST", i.e. a tree of very low-level nodes with (most) empty labels which represent the internal structure of the parsed expression.

This is not very useful for end-users.

For example, here's own a constraint massActual <= massRequired is displayed in the Explorer vs on the diagram:

Image

In other words, on the diagram side we already have everything needed to actually show the textual representation of the expression.

By default, the Explorer should also display Expression elements like this: a single node (no need to expose the internal details of a the AST) with a meaningful label corresponding to what we already display on the diagram.

This behavior should be the default, but it should also be possible to disable it to revert to the current behavior for the (rare) cases where the users needs to dig into the actual details.

It could probably be implemented by a filter similar to the existing Hide membership, also enabled by default. Proposed name: Hide expression internals.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions