SwiftDocCSemanticSemantic.AnalysesSemantic.Analyses.HasOnlyKnownDirectivesStructureSemantic.Analyses.HasOnlyKnownDirectivesChecks for any directives that are not valid as direct children of the parent directive.struct HasOnlyKnownDirectives<Parent> where Parent : Semantic, Parent : DirectiveConvertibleTopicsInitializersinit(severityIfFound: DiagnosticSeverity?, allowedDirectives: [String], allowsMarkup: Bool, allowsStructuredMarkup: Bool)Instance Methodsfunc analyze(BlockDirective, children: some Sequence<any Markup>, source: URL?, problems: inout [Problem])