Skip to content

Commit ff41a18

Browse files
committed
Rename Error to ErrorRule
1 parent 064a3f4 commit ff41a18

14 files changed

+23
-23
lines changed

src/ast.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,10 @@ namespace Sass {
327327
/////////////////////////////////////////////////////////////////////////
328328
/////////////////////////////////////////////////////////////////////////
329329

330-
Error::Error(ParserState pstate, Expression_Obj msg)
330+
ErrorRule::ErrorRule(ParserState pstate, Expression_Obj msg)
331331
: Statement(pstate), message_(msg)
332332
{ statement_type(ERROR); }
333-
Error::Error(const Error* ptr)
333+
ErrorRule::ErrorRule(const ErrorRule* ptr)
334334
: Statement(ptr), message_(ptr->message_)
335335
{ statement_type(ERROR); }
336336

@@ -928,7 +928,7 @@ namespace Sass {
928928
IMPLEMENT_AST_OPERATORS(Media_Query);
929929
IMPLEMENT_AST_OPERATORS(Media_Query_Expression);
930930
IMPLEMENT_AST_OPERATORS(DebugRule);
931-
IMPLEMENT_AST_OPERATORS(Error);
931+
IMPLEMENT_AST_OPERATORS(ErrorRule);
932932
IMPLEMENT_AST_OPERATORS(WarningRule);
933933
IMPLEMENT_AST_OPERATORS(Assignment);
934934
IMPLEMENT_AST_OPERATORS(Return);

src/ast.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -668,11 +668,11 @@ namespace Sass {
668668
///////////////////////////////
669669
// The Sass `@error` directive.
670670
///////////////////////////////
671-
class Error final : public Statement {
671+
class ErrorRule final : public Statement {
672672
ADD_PROPERTY(Expression_Obj, message)
673673
public:
674-
Error(ParserState pstate, Expression_Obj msg);
675-
ATTACH_AST_OPERATIONS(Error)
674+
ErrorRule(ParserState pstate, Expression_Obj msg);
675+
ATTACH_AST_OPERATIONS(ErrorRule)
676676
ATTACH_CRTP_PERFORM_METHODS()
677677
};
678678

src/ast_fwd_decl.hpp

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

49-
class Error;
49+
class ErrorRule;
5050
class DebugRule;
5151
class Comment;
5252

@@ -146,7 +146,7 @@ namespace Sass {
146146
IMPL_MEM_OBJ(Import);
147147
IMPL_MEM_OBJ(Import_Stub);
148148
IMPL_MEM_OBJ(WarningRule);
149-
IMPL_MEM_OBJ(Error);
149+
IMPL_MEM_OBJ(ErrorRule);
150150
IMPL_MEM_OBJ(DebugRule);
151151
IMPL_MEM_OBJ(Comment);
152152
IMPL_MEM_OBJ(PreValue);

src/check_nesting.cpp

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

src/debugger.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -585,9 +585,9 @@ inline void debug_ast(AST_Node* node, sass::string ind, Env* env)
585585
std::cerr << " (" << pstate_source_position(node) << ")";
586586
std::cerr << " " << block->tabs() << std::endl;
587587
debug_ast(block->message(), ind + " : ");
588-
} else if (Cast<Error>(node)) {
589-
Error* block = Cast<Error>(node);
590-
std::cerr << ind << "Error " << block;
588+
} else if (Cast<ErrorRule>(node)) {
589+
ErrorRule* block = Cast<ErrorRule>(node);
590+
std::cerr << ind << "ErrorRule " << block;
591591
std::cerr << " (" << pstate_source_position(node) << ")";
592592
std::cerr << " " << block->tabs() << std::endl;
593593
} else if (Cast<DebugRule>(node)) {

src/eval.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ namespace Sass {
379379
return 0;
380380
}
381381

382-
Expression* Eval::operator()(Error* e)
382+
Expression* Eval::operator()(ErrorRule* e)
383383
{
384384
Sass_Output_Style outstyle = options().output_style;
385385
options().output_style = NESTED;

src/eval.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ namespace Sass {
4848
Expression* operator()(While*);
4949
Expression* operator()(Return*);
5050
Expression* operator()(WarningRule*);
51-
Expression* operator()(Error*);
51+
Expression* operator()(ErrorRule*);
5252
Expression* operator()(DebugRule*);
5353

5454
Expression* operator()(List*);

src/expand.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ namespace Sass {
466466
return 0;
467467
}
468468

469-
Statement* Expand::operator()(Error* e)
469+
Statement* Expand::operator()(ErrorRule* e)
470470
{
471471
// eval handles this too, because errors may occur in functions
472472
e->perform(&eval);

src/expand.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ namespace Sass {
7676
Statement* operator()(Import*);
7777
Statement* operator()(Import_Stub*);
7878
Statement* operator()(WarningRule*);
79-
Statement* operator()(Error*);
79+
Statement* operator()(ErrorRule*);
8080
Statement* operator()(DebugRule*);
8181
Statement* operator()(Comment*);
8282
Statement* operator()(If*);

src/inspect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ namespace Sass {
257257
append_delimiter();
258258
}
259259

260-
void Inspect::operator()(Error* error)
260+
void Inspect::operator()(ErrorRule* error)
261261
{
262262
append_indentation();
263263
append_token("@error", error);

0 commit comments

Comments
 (0)