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
@@ -179,7 +179,7 @@ export class ConflictResolver {
179
179
180
180
// Throw if resolutions are not all before or after values for the same property.
181
181
if(localDecls.length&&foundRes){
182
-
thrownewerrors.InvalidBlockSyntax(`Resolving ${decl.prop} must happen either before or after all other values for ${decl.prop}.`,this.sourceLocation(block,decl));
182
+
thrownewerrors.InvalidBlockSyntax(`Resolving ${decl.prop} must happen either before or after all other values for ${decl.prop}.`,this.sourceRange(block,decl));
183
183
}
184
184
185
185
// Save the applicable local decl.
@@ -188,23 +188,23 @@ export class ConflictResolver {
188
188
189
189
// If no local declarations found setting this value, throw.
190
190
if(!localDecls.length){
191
-
thrownewerrors.InvalidBlockSyntax(`Cannot resolve ${decl.prop} without a concrete value.`,this.sourceLocation(block,decl));
191
+
thrownewerrors.InvalidBlockSyntax(`Cannot resolve ${decl.prop} without a concrete value.`,this.sourceRange(block,decl));
192
192
}
193
193
194
194
// Look up the block that contains the requested resolution.
thrownewerrors.InvalidBlockSyntax(`There are no conflicting values for ${decl.prop} found in any selectors targeting ${resolution.path}.`,this.sourceLocation(block,decl));
220
+
thrownewerrors.InvalidBlockSyntax(`There are no conflicting values for ${decl.prop} found in any selectors targeting ${resolution.path}.`,this.sourceRange(block,decl));
221
221
}
222
222
223
223
// Remove resolution Declaration. Do after traversal because otherwise we mess up postcss' iterator.
@@ -433,8 +433,8 @@ export class ConflictResolver {
433
433
// Wrap our list of CompoundSelectors in ParsedSelector containers and return.
if(!isRule(decl.parent)){thrownewerrors.InvalidBlockSyntax(`The "composes" property may only be used in a rule set.`,sourceLocation(sourceFile,decl));}
20
+
if(!isRule(decl.parent)){thrownewerrors.InvalidBlockSyntax(`The "composes" property may only be used in a rule set.`,sourceRange(sourceFile,decl));}
21
21
letrule=decl.parent;
22
22
23
23
// TODO: Move to Block Syntax as parseBlockRefList().
0 commit comments