Fix MixinRule.hasContent.

This commit is contained in:
Natalie Weizenbaum 2016-10-20 15:24:04 -07:00
parent 0747b0cb95
commit 40ca7ee0f9

View File

@ -695,11 +695,12 @@ abstract class StylesheetParser extends Parser {
_inMixin = true;
_mixinHasContent = false;
var children = this.children(_ruleChild);
var hadContent = _mixinHasContent;
_inMixin = false;
_mixinHasContent = null;
return new MixinRule(name, arguments, children, scanner.spanFrom(start),
hasContent: _mixinHasContent);
hasContent: hadContent);
}
/// Consumes a `@return` rule.