Skip to main content

internal_normalize_node_structure

Function internal_normalize_node_structure 

Source
pub fn internal_normalize_node_structure(
    node: &NodeRef,
) -> Result<(), LexicalError>
Expand description

INTERNAL_$normalizeNodeStructure(node) (internal): normalize the subtree rooted at node now, as NodeStructureExtension does, bottom-up (which may split node in its parent), then merge node (or what it was split into) with its equal siblings. For code that applies an update with skip_transforms, which the extension doesn’t normalize.