Expand description
Compile-time string interpolation compilation.
Interpolation syntax parsing itself lives in shape-ast so compiler,
type inference, and LSP all use the same parser.
Functions§
- has_
content_ style_ spec - R8 W4 W18.4: presence-test for any
ContentStylearm in a parsed f-string. Drives the D1 syntax-determinedstring→contentflip: if any interpolation part carries a content-styling spec, the whole f-string lowers through theContentNode::Fragmentpath and the inference engine reportscontentas the return type. - has_
interpolation - Check whether a string contains at least one interpolation segment.
- has_
interpolation_ with_ mode - Check whether a string contains at least one interpolation segment for the mode.