import { Validator } from "./Validator" ; param correlations param err export const rootClassValidator = ( analysis , templateAnalysis , err ) => { for ( let block of templateAnalysis . blockDependencies ( ) ) { let foundRoot = false ; let foundClass = false ; for ( let container of analysis . classesForBlock ( block ) ) { foundRoot = foundRoot || container . isRoot ; foundClass = foundClass || ! container . isRoot ; } if ( foundRoot && foundClass ) { err ( `Cannot put Block classes on the Block's root element.` ) ; } } } ;