Skip to content

Commit 064a3f4

Browse files
committed
Rename Debug to DebugRule
1 parent bb7f69b commit 064a3f4

14 files changed

+23
-23
lines changed

src/ast.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,10 +337,10 @@ namespace Sass {
337337
/////////////////////////////////////////////////////////////////////////
338338
/////////////////////////////////////////////////////////////////////////
339339

340-
Debug::Debug(ParserState pstate, Expression_Obj val)
340+
DebugRule::DebugRule(ParserState pstate, Expression_Obj val)
341341
: Statement(pstate), value_(val)
342342
{ statement_type(DEBUGSTMT); }
343-
Debug::Debug(const Debug* ptr)
343+
DebugRule::DebugRule(const DebugRule* ptr)
344344
: Statement(ptr), value_(ptr->value_)
345345
{ statement_type(DEBUGSTMT); }
346346

@@ -927,7 +927,7 @@ namespace Sass {
927927
IMPLEMENT_AST_OPERATORS(ExtendRule);
928928
IMPLEMENT_AST_OPERATORS(Media_Query);
929929
IMPLEMENT_AST_OPERATORS(Media_Query_Expression);
930-
IMPLEMENT_AST_OPERATORS(Debug);
930+
IMPLEMENT_AST_OPERATORS(DebugRule);
931931
IMPLEMENT_AST_OPERATORS(Error);
932932
IMPLEMENT_AST_OPERATORS(WarningRule);
933933
IMPLEMENT_AST_OPERATORS(Assignment);

src/ast.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -679,11 +679,11 @@ namespace Sass {
679679
///////////////////////////////
680680
// The Sass `@debug` directive.
681681
///////////////////////////////
682-
class Debug final : public Statement {
682+
class DebugRule final : public Statement {
683683
ADD_PROPERTY(Expression_Obj, value)
684684
public:
685-
Debug(ParserState pstate, Expression_Obj val);
686-
ATTACH_AST_OPERATIONS(Debug)
685+
DebugRule(ParserState pstate, Expression_Obj val);
686+
ATTACH_AST_OPERATIONS(DebugRule)
687687
ATTACH_CRTP_PERFORM_METHODS()
688688
};
689689

src/ast_fwd_decl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ namespace Sass {
4747
class WarningRule;
4848

4949
class Error;
50-
class Debug;
50+
class DebugRule;
5151
class Comment;
5252

5353
class If;
@@ -147,7 +147,7 @@ namespace Sass {
147147
IMPL_MEM_OBJ(Import_Stub);
148148
IMPL_MEM_OBJ(WarningRule);
149149
IMPL_MEM_OBJ(Error);
150-
IMPL_MEM_OBJ(Debug);
150+
IMPL_MEM_OBJ(DebugRule);
151151
IMPL_MEM_OBJ(Comment);
152152
IMPL_MEM_OBJ(PreValue);
153153
IMPL_MEM_OBJ(ParentStatement);

src/check_nesting.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ namespace Sass {
268268
Cast<While>(child) ||
269269
Cast<Trace>(child) ||
270270
Cast<Comment>(child) ||
271-
Cast<Debug>(child) ||
271+
Cast<DebugRule>(child) ||
272272
Cast<Return>(child) ||
273273
Cast<Variable>(child) ||
274274
// Ruby Sass doesn't distinguish variables and assignments

src/debugger.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -590,9 +590,9 @@ inline void debug_ast(AST_Node* node, sass::string ind, Env* env)
590590
std::cerr << ind << "Error " << block;
591591
std::cerr << " (" << pstate_source_position(node) << ")";
592592
std::cerr << " " << block->tabs() << std::endl;
593-
} else if (Cast<Debug>(node)) {
594-
Debug* block = Cast<Debug>(node);
595-
std::cerr << ind << "Debug " << block;
593+
} else if (Cast<DebugRule>(node)) {
594+
DebugRule* block = Cast<DebugRule>(node);
595+
std::cerr << ind << "DebugRule " << block;
596596
std::cerr << " (" << pstate_source_position(node) << ")";
597597
std::cerr << " " << block->tabs() << std::endl;
598598
debug_ast(block->value(), ind + " ");

src/eval.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ namespace Sass {
423423
return 0;
424424
}
425425

426-
Expression* Eval::operator()(Debug* d)
426+
Expression* Eval::operator()(DebugRule* d)
427427
{
428428
Sass_Output_Style outstyle = options().output_style;
429429
options().output_style = NESTED;

src/eval.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ namespace Sass {
4949
Expression* operator()(Return*);
5050
Expression* operator()(WarningRule*);
5151
Expression* operator()(Error*);
52-
Expression* operator()(Debug*);
52+
Expression* operator()(DebugRule*);
5353

5454
Expression* operator()(List*);
5555
Expression* operator()(Map*);

src/expand.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ namespace Sass {
473473
return 0;
474474
}
475475

476-
Statement* Expand::operator()(Debug* d)
476+
Statement* Expand::operator()(DebugRule* d)
477477
{
478478
// eval handles this too, because warnings may occur in functions
479479
d->perform(&eval);

src/expand.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ namespace Sass {
7777
Statement* operator()(Import_Stub*);
7878
Statement* operator()(WarningRule*);
7979
Statement* operator()(Error*);
80-
Statement* operator()(Debug*);
80+
Statement* operator()(DebugRule*);
8181
Statement* operator()(Comment*);
8282
Statement* operator()(If*);
8383
Statement* operator()(For*);

src/inspect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ namespace Sass {
266266
append_delimiter();
267267
}
268268

269-
void Inspect::operator()(Debug* debug)
269+
void Inspect::operator()(DebugRule* debug)
270270
{
271271
append_indentation();
272272
append_token("@debug", debug);

0 commit comments

Comments
 (0)