extractPatternSectionRoleMatches
extractPatternSectionRoleMatches(
blocks,convention?):PatternCatalogSectionRoleMatch[]
Defined in: wp-typia-project-tools/src/runtime/pattern-catalog.ts:371
Find section wrapper blocks and their role markers in parsed pattern content.
Parameters
Section titled “Parameters”blocks
Section titled “blocks”readonly ParsedBlockPatternBlock[]
Parsed block tree returned by validateBlockPatternContentNesting.
convention?
Section titled “convention?”PatternCatalogSectionRoleConvention = {}
Optional marker convention override.
Returns
Section titled “Returns”PatternCatalogSectionRoleMatch[]
Section wrapper matches with serialized block paths.