Skip to content

Commit 2675b8c

Browse files
committed
Add extra debugging details for Mixin_Call
1 parent 5b4122d commit 2675b8c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/ast.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ namespace Sass {
389389
{ }
390390
virtual bool has_content()
391391
{
392-
return block_->has_content() || Statement::has_content();
392+
return (block_ && block_->has_content()) || Statement::has_content();
393393
}
394394
virtual ~Has_Block() = 0;
395395
};

src/debugger.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,8 @@ inline void debug_ast(AST_Node* node, std::string ind, Env* env)
386386
} else if (dynamic_cast<Mixin_Call*>(node)) {
387387
Mixin_Call* block = dynamic_cast<Mixin_Call*>(node);
388388
std::cerr << ind << "Mixin_Call " << block << " " << block->tabs();
389-
std::cerr << " [" << block->name() << "]" << std::endl;
389+
std::cerr << " [" << block->name() << "]";
390+
std::cerr << " [has_content: " << block->has_content() << "] " << std::endl;
390391
debug_ast(block->arguments(), ind + " args: ");
391392
if (block->block()) for(auto i : block->block()->elements()) { debug_ast(i, ind + " ", env); }
392393
} else if (Ruleset* ruleset = dynamic_cast<Ruleset*>(node)) {

0 commit comments

Comments
 (0)