validateShape method
Validates one authored shape against its registered production.
Hosts may call this before dispatching an insertion. The resolver calls it again at scene admission so every input path obeys the same grammar.
Implementation
void validateShape(ShapeElement shape) {
if (_validatedShapes[shape] == true) return;
_validateShape(shape);
_validatedShapes[shape] = true;
}