mirror of
https://github.com/danog/dart-sass.git
synced 2025-01-23 06:12:00 +01:00
Fix bug in RecursiveStatementVisitor (#596)
The value of an `AtRule` can be null, so it should not be visited in that case. Ran across this issue when I attempted to run the module migrator on a stylesheet containing `@font-face` (which has children, but no value).
This commit is contained in:
parent
4c7b6cc0e5
commit
b22ae51955
@ -29,7 +29,7 @@ abstract class RecursiveStatementVisitor<T> implements StatementVisitor<T> {
|
||||
|
||||
T visitAtRule(AtRule node) {
|
||||
visitInterpolation(node.name);
|
||||
visitInterpolation(node.value);
|
||||
if (node.value != null) visitInterpolation(node.value);
|
||||
return node.children == null ? null : visitChildren(node);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user