Skip to content

Commit da17d82

Browse files
committed
Rename While to WhileRule
1 parent ff41a18 commit da17d82

15 files changed

+29
-29
lines changed

src/ast.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,10 +407,10 @@ namespace Sass {
407407
/////////////////////////////////////////////////////////////////////////
408408
/////////////////////////////////////////////////////////////////////////
409409

410-
While::While(ParserState pstate, Expression_Obj pred, Block_Obj b)
410+
WhileRule::WhileRule(ParserState pstate, Expression_Obj pred, Block_Obj b)
411411
: ParentStatement(pstate, b), predicate_(pred)
412412
{ statement_type(WHILE); }
413-
While::While(const While* ptr)
413+
WhileRule::WhileRule(const WhileRule* ptr)
414414
: ParentStatement(ptr), predicate_(ptr->predicate_)
415415
{ statement_type(WHILE); }
416416

@@ -919,7 +919,7 @@ namespace Sass {
919919
IMPLEMENT_AST_OPERATORS(Import_Stub);
920920
IMPLEMENT_AST_OPERATORS(Directive);
921921
IMPLEMENT_AST_OPERATORS(At_Root_Block);
922-
IMPLEMENT_AST_OPERATORS(While);
922+
IMPLEMENT_AST_OPERATORS(WhileRule);
923923
IMPLEMENT_AST_OPERATORS(Each);
924924
IMPLEMENT_AST_OPERATORS(For);
925925
IMPLEMENT_AST_OPERATORS(If);

src/ast.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -742,11 +742,11 @@ namespace Sass {
742742
///////////////////////////////////////
743743
// The Sass `@while` control directive.
744744
///////////////////////////////////////
745-
class While final : public ParentStatement {
745+
class WhileRule final : public ParentStatement {
746746
ADD_PROPERTY(Expression_Obj, predicate)
747747
public:
748-
While(ParserState pstate, Expression_Obj pred, Block_Obj b);
749-
ATTACH_AST_OPERATIONS(While)
748+
WhileRule(ParserState pstate, Expression_Obj pred, Block_Obj b);
749+
ATTACH_AST_OPERATIONS(WhileRule)
750750
ATTACH_CRTP_PERFORM_METHODS()
751751
};
752752

src/ast_fwd_decl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ namespace Sass {
5353
class If;
5454
class For;
5555
class Each;
56-
class While;
56+
class WhileRule;
5757
class Return;
5858
class Content;
5959
class ExtendRule;
@@ -154,7 +154,7 @@ namespace Sass {
154154
IMPL_MEM_OBJ(If);
155155
IMPL_MEM_OBJ(For);
156156
IMPL_MEM_OBJ(Each);
157-
IMPL_MEM_OBJ(While);
157+
IMPL_MEM_OBJ(WhileRule);
158158
IMPL_MEM_OBJ(Return);
159159
IMPL_MEM_OBJ(Content);
160160
IMPL_MEM_OBJ(ExtendRule);

src/check_nesting.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ namespace Sass {
207207
// Cast<Each>(pp) ||
208208
// Cast<For>(pp) ||
209209
// Cast<If>(pp) ||
210-
// Cast<While>(pp) ||
210+
// Cast<WhileRule>(pp) ||
211211
// Cast<Trace>(pp) ||
212212
// Cast<Mixin_Call>(pp) ||
213213
// is_mixin(pp)
@@ -232,7 +232,7 @@ namespace Sass {
232232
Cast<Each>(pp) ||
233233
Cast<For>(pp) ||
234234
Cast<If>(pp) ||
235-
Cast<While>(pp) ||
235+
Cast<WhileRule>(pp) ||
236236
Cast<Trace>(pp) ||
237237
Cast<Mixin_Call>(pp) ||
238238
is_mixin(pp)
@@ -249,7 +249,7 @@ namespace Sass {
249249
Cast<Each>(pp) ||
250250
Cast<For>(pp) ||
251251
Cast<If>(pp) ||
252-
Cast<While>(pp) ||
252+
Cast<WhileRule>(pp) ||
253253
Cast<Trace>(pp) ||
254254
Cast<Mixin_Call>(pp) ||
255255
is_mixin(pp)
@@ -265,7 +265,7 @@ namespace Sass {
265265
Cast<Each>(child) ||
266266
Cast<For>(child) ||
267267
Cast<If>(child) ||
268-
Cast<While>(child) ||
268+
Cast<WhileRule>(child) ||
269269
Cast<Trace>(child) ||
270270
Cast<Comment>(child) ||
271271
Cast<DebugRule>(child) ||
@@ -286,7 +286,7 @@ namespace Sass {
286286
Cast<Each>(child) ||
287287
Cast<For>(child) ||
288288
Cast<If>(child) ||
289-
Cast<While>(child) ||
289+
Cast<WhileRule>(child) ||
290290
Cast<Trace>(child) ||
291291
Cast<Comment>(child) ||
292292
Cast<Declaration>(child) ||
@@ -346,7 +346,7 @@ namespace Sass {
346346
Cast<Each>(parent) ||
347347
Cast<For>(parent) ||
348348
Cast<If>(parent) ||
349-
Cast<While>(parent) ||
349+
Cast<WhileRule>(parent) ||
350350
Cast<Trace>(parent) ||
351351
valid_bubble_node;
352352
}

src/cssize.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace Sass {
3939
// Statement* operator()(If*);
4040
// Statement* operator()(For*);
4141
// Statement* operator()(Each*);
42-
// Statement* operator()(While*);
42+
// Statement* operator()(WhileRule*);
4343
// Statement* operator()(Return*);
4444
// Statement* operator()(ExtendRule*);
4545
// Statement* operator()(Definition*);

src/debugger.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -685,9 +685,9 @@ inline void debug_ast(AST_Node* node, sass::string ind, Env* env)
685685
std::cerr << " (" << pstate_source_position(node) << ")";
686686
std::cerr << " " << block->tabs() << std::endl;
687687
if (block->block()) for(const Statement_Obj& i : block->block()->elements()) { debug_ast(i, ind + " ", env); }
688-
} else if (Cast<While>(node)) {
689-
While* block = Cast<While>(node);
690-
std::cerr << ind << "While " << block;
688+
} else if (Cast<WhileRule>(node)) {
689+
WhileRule* block = Cast<WhileRule>(node);
690+
std::cerr << ind << "WhileRule " << block;
691691
std::cerr << " (" << pstate_source_position(node) << ")";
692692
std::cerr << " " << block->tabs() << std::endl;
693693
if (block->block()) for(const Statement_Obj& i : block->block()->elements()) { debug_ast(i, ind + " ", env); }

src/eval.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ namespace Sass {
307307
return val.detach();
308308
}
309309

310-
Expression* Eval::operator()(While* w)
310+
Expression* Eval::operator()(WhileRule* w)
311311
{
312312
Expression_Obj pred = w->predicate();
313313
Block_Obj body = w->block();

src/eval.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ namespace Sass {
4545
Expression* operator()(If*);
4646
Expression* operator()(For*);
4747
Expression* operator()(Each*);
48-
Expression* operator()(While*);
48+
Expression* operator()(WhileRule*);
4949
Expression* operator()(Return*);
5050
Expression* operator()(WarningRule*);
5151
Expression* operator()(ErrorRule*);

src/expand.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ namespace Sass {
652652
return 0;
653653
}
654654

655-
Statement* Expand::operator()(While* w)
655+
Statement* Expand::operator()(WhileRule* w)
656656
{
657657
Expression_Obj pred = w->predicate();
658658
Block* body = w->block();

src/expand.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ namespace Sass {
8282
Statement* operator()(If*);
8383
Statement* operator()(For*);
8484
Statement* operator()(Each*);
85-
Statement* operator()(While*);
85+
Statement* operator()(WhileRule*);
8686
Statement* operator()(Return*);
8787
Statement* operator()(ExtendRule*);
8888
Statement* operator()(Definition*);

0 commit comments

Comments
 (0)