Skip to content

Commit bb7f69b

Browse files
committed
Rename Warning to WarningRule
1 parent 3e1cd23 commit bb7f69b

15 files changed

+24
-24
lines changed

src/ast.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,10 @@ namespace Sass {
317317
/////////////////////////////////////////////////////////////////////////
318318
/////////////////////////////////////////////////////////////////////////
319319

320-
Warning::Warning(ParserState pstate, Expression_Obj msg)
320+
WarningRule::WarningRule(ParserState pstate, Expression_Obj msg)
321321
: Statement(pstate), message_(msg)
322322
{ statement_type(WARNING); }
323-
Warning::Warning(const Warning* ptr)
323+
WarningRule::WarningRule(const WarningRule* ptr)
324324
: Statement(ptr), message_(ptr->message_)
325325
{ statement_type(WARNING); }
326326

@@ -929,7 +929,7 @@ namespace Sass {
929929
IMPLEMENT_AST_OPERATORS(Media_Query_Expression);
930930
IMPLEMENT_AST_OPERATORS(Debug);
931931
IMPLEMENT_AST_OPERATORS(Error);
932-
IMPLEMENT_AST_OPERATORS(Warning);
932+
IMPLEMENT_AST_OPERATORS(WarningRule);
933933
IMPLEMENT_AST_OPERATORS(Assignment);
934934
IMPLEMENT_AST_OPERATORS(Return);
935935
IMPLEMENT_AST_OPERATORS(At_Root_Query);

src/ast.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -657,11 +657,11 @@ namespace Sass {
657657
//////////////////////////////
658658
// The Sass `@warn` directive.
659659
//////////////////////////////
660-
class Warning final : public Statement {
660+
class WarningRule final : public Statement {
661661
ADD_PROPERTY(Expression_Obj, message)
662662
public:
663-
Warning(ParserState pstate, Expression_Obj msg);
664-
ATTACH_AST_OPERATIONS(Warning)
663+
WarningRule(ParserState pstate, Expression_Obj msg);
664+
ATTACH_AST_OPERATIONS(WarningRule)
665665
ATTACH_CRTP_PERFORM_METHODS()
666666
};
667667

src/ast_fwd_decl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ namespace Sass {
4444

4545
class Import;
4646
class Import_Stub;
47-
class Warning;
47+
class WarningRule;
4848

4949
class Error;
5050
class Debug;
@@ -145,7 +145,7 @@ namespace Sass {
145145
IMPL_MEM_OBJ(Assignment);
146146
IMPL_MEM_OBJ(Import);
147147
IMPL_MEM_OBJ(Import_Stub);
148-
IMPL_MEM_OBJ(Warning);
148+
IMPL_MEM_OBJ(WarningRule);
149149
IMPL_MEM_OBJ(Error);
150150
IMPL_MEM_OBJ(Debug);
151151
IMPL_MEM_OBJ(Comment);

src/check_nesting.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ namespace Sass {
273273
Cast<Variable>(child) ||
274274
// Ruby Sass doesn't distinguish variables and assignments
275275
Cast<Assignment>(child) ||
276-
Cast<Warning>(child) ||
276+
Cast<WarningRule>(child) ||
277277
Cast<Error>(child)
278278
)) {
279279
error(child, traces, "Functions can only contain variable declarations and control directives.");

src/cssize.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace Sass {
3333
// Statement* operator()(Assignment*);
3434
// Statement* operator()(Import*);
3535
// Statement* operator()(Import_Stub*);
36-
// Statement* operator()(Warning*);
36+
// Statement* operator()(WarningRule*);
3737
// Statement* operator()(Error*);
3838
// Statement* operator()(Comment*);
3939
// Statement* operator()(If*);

src/debugger.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -579,9 +579,9 @@ inline void debug_ast(AST_Node* node, sass::string ind, Env* env)
579579
if (root_block->isInvisible()) std::cerr << " [isInvisible]";
580580
std::cerr << " " << root_block->tabs() << std::endl;
581581
for(const Statement_Obj& i : root_block->elements()) { debug_ast(i, ind + " ", env); }
582-
} else if (Cast<Warning>(node)) {
583-
Warning* block = Cast<Warning>(node);
584-
std::cerr << ind << "Warning " << block;
582+
} else if (Cast<WarningRule>(node)) {
583+
WarningRule* block = Cast<WarningRule>(node);
584+
std::cerr << ind << "WarningRule " << block;
585585
std::cerr << " (" << pstate_source_position(node) << ")";
586586
std::cerr << " " << block->tabs() << std::endl;
587587
debug_ast(block->message(), ind + " : ");

src/eval.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ namespace Sass {
331331
return r->value()->perform(this);
332332
}
333333

334-
Expression* Eval::operator()(Warning* w)
334+
Expression* Eval::operator()(WarningRule* w)
335335
{
336336
Sass_Output_Style outstyle = options().output_style;
337337
options().output_style = NESTED;

src/eval.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ namespace Sass {
4747
Expression* operator()(Each*);
4848
Expression* operator()(While*);
4949
Expression* operator()(Return*);
50-
Expression* operator()(Warning*);
50+
Expression* operator()(WarningRule*);
5151
Expression* operator()(Error*);
5252
Expression* operator()(Debug*);
5353

src/expand.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ namespace Sass {
459459
return 0;
460460
}
461461

462-
Statement* Expand::operator()(Warning* w)
462+
Statement* Expand::operator()(WarningRule* w)
463463
{
464464
// eval handles this too, because warnings may occur in functions
465465
w->perform(&eval);

src/expand.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ namespace Sass {
7575
Statement* operator()(Assignment*);
7676
Statement* operator()(Import*);
7777
Statement* operator()(Import_Stub*);
78-
Statement* operator()(Warning*);
78+
Statement* operator()(WarningRule*);
7979
Statement* operator()(Error*);
8080
Statement* operator()(Debug*);
8181
Statement* operator()(Comment*);

0 commit comments

Comments
 (0)