Donner 0.5.1
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
donner::editor::ClassifyResult Struct Reference

Result of classifying a text change. More...

#include "donner/editor/ChangeClassifier.h"

Public Attributes

std::optional< EditorCommandcommand
 The command to emit if the change was classified as an attribute edit. std::nullopt means "structural — fall back to ReplaceDocument.".

Detailed Description

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.

Member Data Documentation

◆ command

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.".


The documentation for this struct was generated from the following file: