/// <summary> /// Constructs a new text modification state object. /// </summary> /// <param name="parentScope">Parent scope, i.e., the previous top of the stack.</param> /// <param name="modifier">Text modifier run fetched from the client.</param> /// <param name="cp">Text source character index of the run.</param> internal TextModifierScope(TextModifierScope parentScope, TextModifier modifier, int cp) { _parentScope = parentScope; _modifier = modifier; _cp = cp; }