import { Validator } from "./Validator" ; param correlations param err export const attributeParentValidator = ( analysis , _templateAnalysis , err ) => { for ( let attr of analysis . attributesFound ( ) ) { if ( ! analysis . hasClass ( attr . blockClass ) && ! analysis . isFromComposition ( attr . blockClass ) ) { err ( `Cannot use state "${ attr . asSource ( ) }" without parent ` + `${ attr . blockClass . isRoot ? "block" : "class" } also applied or implied by another style.` ) ; } } } ;