validateBlockPatternContentNesting
validateBlockPatternContentNesting(
content,options):ValidateBlockPatternContentNestingResult
Defined in: wp-typia-block-runtime/src/metadata-core-nesting.ts:991
Parse serialized WordPress block comments in a pattern file and compare the discovered block tree with a typed block nesting contract.
Relationship violations are returned as error diagnostics. Unknown blocks,
malformed block comments, and unparseable attributes are returned as
warning diagnostics so callers can surface them without mutating content.
Parameters
Section titled “Parameters”content
Section titled “content”string
PHP or HTML pattern source containing serialized block comments.
options
Section titled “options”ValidateBlockPatternContentNestingOptions
Pattern filename, nesting contract, and known block-name policy.
Returns
Section titled “Returns”ValidateBlockPatternContentNestingResult
Parsed block tree plus split warning/error diagnostics.