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
if(!isRule(decl.parent)){thrownewerrors.InvalidBlockSyntax(`The "composes" property may only be used in a rule set.`,sourceRange(configuration,root,sourceFile,decl));}
21
+
if(!isRule(decl.parent)){block.addError(newerrors.InvalidBlockSyntax(`The "composes" property may only be used in a rule set.`,sourceRange(configuration,root,sourceFile,decl)));}
22
22
letrule=decl.parent;
23
23
24
24
// TODO: Move to Block Syntax as parseBlockRefList().
thrownewerrors.InvalidBlockSyntax(`Styles from the same Block may not be composed together.`,sourceRange(configuration,root,sourceFile,decl));
33
-
}
34
-
35
-
constparsedSel=block.getParsedSelectors(rule);
36
-
for(letselofparsedSel){
37
-
if(sel.selector.next){
38
-
thrownewerrors.InvalidBlockSyntax(`Style composition is not allowed in rule sets with a scope selector.`,sourceRange(configuration,root,sourceFile,decl));
31
+
else{
32
+
if(refStyle.block===block){
33
+
block.addError(newerrors.InvalidBlockSyntax(`Styles from the same Block may not be composed together.`,sourceRange(configuration,root,sourceFile,decl)));
block.addError(newerrors.InvalidBlockSyntax(`Style composition is not allowed in rule sets with a scope selector.`,sourceRange(configuration,root,sourceFile,decl)));
0 commit comments