You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- When processing definition files, recognize and set the interface
index on style nodes in the Block. As with block-class, if each style
node found has not declared an interface-index by the end of processing,
it's an error.
- Test coverage for ensuring block-interface-index is declared.
thrownewError(`Couldn\'t find style node corresponding to selector ${sel}. This shouldn't happen.`);
55
+
}
56
+
});
57
+
});
58
+
});
59
+
60
+
// At this point, every style node should have a fixed block-class.
61
+
block.all(true).forEach(styleNode=>{
62
+
if(!styleNode.wasIndexReset){
63
+
block.addError(
64
+
newCssBlockError(
65
+
`Style node ${styleNode.asSource()} doesn't have a preset interface index after parsing definition file. You may need to declare this style node in the definition file.`,
"Style node :scope doesn't have a preset interface index after parsing definition file. You may need to declare this style node in the definition file. (foo/bar/nav.block.css)",
"Style node .entry doesn't have a preset interface index after parsing definition file. You may need to declare this style node in the definition file. (foo/bar/nav.block.css)",
"Style node .entry[active] doesn't have a preset interface index after parsing definition file. You may need to declare this style node in the definition file. (foo/bar/nav.block.css)",
0 commit comments