Skip to main content

has_content_style_spec

Function has_content_style_spec 

Source
pub fn has_content_style_spec(parts: &[InterpolationPart]) -> bool
Expand description

R8 W4 W18.4: presence-test for any ContentStyle arm in a parsed f-string. Drives the D1 syntax-determined string → content flip: if any interpolation part carries a content-styling spec, the whole f-string lowers through the ContentNode::Fragment path and the inference engine reports content as the return type.