|
|
Donner 0.5.1
Embeddable browser-grade SVG2 engine
|
Result of classifying a text change. More...
#include "donner/editor/ChangeClassifier.h"
Public Attributes | |
| std::optional< EditorCommand > | command |
| The command to emit if the change was classified as an attribute edit. std::nullopt means "structural — fall back to ReplaceDocument.". | |
Result of classifying a text change.
If command is set, the change was classified as an attribute-value edit and the caller should emit command instead of a ReplaceDocumentCommand. If command is std::nullopt, the change is structural and the caller should fall back to a full re-parse.
| std::optional<EditorCommand> donner::editor::ClassifyResult::command |
The command to emit if the change was classified as an attribute edit. std::nullopt means "structural — fall back to ReplaceDocument.".