Class ParameterisedConstructionForm
List of
String(), Dict of (String, Integer)(), echo of Integer() - which has ONE reading,
List() of String (Steve, 2026-10-08, GENERIC CONSTRUCTION b). Use this; do not re-derive it.
It parses as a call of the type List of String - written without parentheses, which a construction
needs - so the compiler reports E06210 on the generic's name. Nothing else can be meant: the parentheses belong
to the generic, and the type arguments follow them. It was the most-chosen form in an LLM survey (Sonnet chose it
9 times in 9 in a five-way choice), so it is repaired rather than only explained. The taught form stays
x <- List() of String; a declared target makes a bare List() enough
(support/TargetTypedConstruction).
Applied only where the E06210 diagnostic's column is exactly on the name and the name is followed by
of, type arguments and an EMPTY () - List of String with no parentheses at all, or with
arguments, is not this shape and is left alone. Rewrites within one line; the caller re-verifies.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordThe rewritten text and one note per rewrite;notesempty means nothing moved. -
Method Summary
Modifier and TypeMethodDescriptionRepair eachG of T()an E06210 diagnostic points at.static StringOne line withG of T()atcolumnrewritten toG() of T, or null when the shape is not there.
-
Method Details
-
repaired
-
repair
-