A problem is a diagnostic produced when domain-specific language content violates a constraint. The constraint checker reports each violation as an issue message, allowing domain experts to repair invalid AST content before later failures occur. section 9.0
Treat problems as part of a staged failure-prevention workflow:
- Define a condition that must hold throughout the AST. section 9.0
- Compute violations with issuesFor(astObject), returning issue messages as an array. section 9.2.2
- Project the messages reactively near the affected language element, using markers, tooltips, or clickable indicators. section 9.2.2
Empty data-attribute name
For a Data Attribute, test whether settings["name"] is a non-empty string. If the test fails, return "An attribute must have a name"; the interface can show a warning marker and tooltip.
