Skip to content

Commit 6cd7d43

Browse files
committed
Rename At_Root_Block to AtRootRule
1 parent ef5fbc3 commit 6cd7d43

14 files changed

+31
-31
lines changed

src/ast.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -807,18 +807,18 @@ namespace Sass {
807807
/////////////////////////////////////////////////////////////////////////
808808
/////////////////////////////////////////////////////////////////////////
809809

810-
At_Root_Block::At_Root_Block(SourceSpan pstate, Block_Obj b, At_Root_Query_Obj e)
810+
AtRootRule::AtRootRule(SourceSpan pstate, Block_Obj b, At_Root_Query_Obj e)
811811
: ParentStatement(pstate, b), expression_(e)
812812
{ statement_type(ATROOT); }
813-
At_Root_Block::At_Root_Block(const At_Root_Block* ptr)
813+
AtRootRule::AtRootRule(const AtRootRule* ptr)
814814
: ParentStatement(ptr), expression_(ptr->expression_)
815815
{ statement_type(ATROOT); }
816816

817-
bool At_Root_Block::bubbles() {
817+
bool AtRootRule::bubbles() {
818818
return true;
819819
}
820820

821-
bool At_Root_Block::exclude_node(Statement_Obj s) {
821+
bool AtRootRule::exclude_node(Statement_Obj s) {
822822
if (expression() == nullptr)
823823
{
824824
return s->statement_type() == Statement::RULESET;
@@ -918,7 +918,7 @@ namespace Sass {
918918
IMPLEMENT_AST_OPERATORS(Import);
919919
IMPLEMENT_AST_OPERATORS(Import_Stub);
920920
IMPLEMENT_AST_OPERATORS(Directive);
921-
IMPLEMENT_AST_OPERATORS(At_Root_Block);
921+
IMPLEMENT_AST_OPERATORS(AtRootRule);
922922
IMPLEMENT_AST_OPERATORS(WhileRule);
923923
IMPLEMENT_AST_OPERATORS(EachRule);
924924
IMPLEMENT_AST_OPERATORS(ForRule);

src/ast.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,13 +1011,13 @@ namespace Sass {
10111011
///////////
10121012
// At-root.
10131013
///////////
1014-
class At_Root_Block final : public ParentStatement {
1014+
class AtRootRule final : public ParentStatement {
10151015
ADD_PROPERTY(At_Root_Query_Obj, expression)
10161016
public:
1017-
At_Root_Block(SourceSpan pstate, Block_Obj b = {}, At_Root_Query_Obj e = {});
1017+
AtRootRule(SourceSpan pstate, Block_Obj b = {}, At_Root_Query_Obj e = {});
10181018
bool bubbles() override;
10191019
bool exclude_node(Statement_Obj s);
1020-
ATTACH_AST_OPERATIONS(At_Root_Block)
1020+
ATTACH_AST_OPERATIONS(AtRootRule)
10211021
ATTACH_CRTP_PERFORM_METHODS()
10221022
};
10231023

src/ast_fwd_decl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace Sass {
3939
class Directive;
4040

4141
class Keyframe_Rule;
42-
class At_Root_Block;
42+
class AtRootRule;
4343
class Assignment;
4444

4545
class Import;
@@ -140,7 +140,7 @@ namespace Sass {
140140
IMPL_MEM_OBJ(SupportsRule);
141141
IMPL_MEM_OBJ(Directive);
142142
IMPL_MEM_OBJ(Keyframe_Rule);
143-
IMPL_MEM_OBJ(At_Root_Block);
143+
IMPL_MEM_OBJ(AtRootRule);
144144
IMPL_MEM_OBJ(Declaration);
145145
IMPL_MEM_OBJ(Assignment);
146146
IMPL_MEM_OBJ(Import);

src/check_nesting.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Sass {
2121
{
2222
Statement* old_parent = this->parent;
2323

24-
if (At_Root_Block* root = Cast<At_Root_Block>(parent)) {
24+
if (AtRootRule* root = Cast<AtRootRule>(parent)) {
2525
sass::vector<Statement*> old_parents = this->parents;
2626
sass::vector<Statement*> new_parents;
2727

@@ -45,7 +45,7 @@ namespace Sass {
4545
}
4646
}
4747

48-
At_Root_Block* ar = Cast<At_Root_Block>(parent);
48+
AtRootRule* ar = Cast<AtRootRule>(parent);
4949
Block* ret = ar->block();
5050

5151
if (ret != NULL) {
@@ -379,7 +379,7 @@ namespace Sass {
379379

380380
bool CheckNesting::is_at_root_node(Statement* n)
381381
{
382-
return Cast<At_Root_Block>(n) != NULL;
382+
return Cast<AtRootRule>(n) != NULL;
383383
}
384384

385385
bool CheckNesting::is_directive_node(Statement* n)

src/cssize.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ namespace Sass {
259259
return debubble(mm->block(), mm);
260260
}
261261

262-
Statement* Cssize::operator()(At_Root_Block* m)
262+
Statement* Cssize::operator()(AtRootRule* m)
263263
{
264264
bool tmp = false;
265265
for (size_t i = 0, L = p_stack.size(); i < L; ++i) {
@@ -308,7 +308,7 @@ namespace Sass {
308308
return bubble;
309309
}
310310

311-
Statement* Cssize::bubble(At_Root_Block* m)
311+
Statement* Cssize::bubble(AtRootRule* m)
312312
{
313313
if (!m || !m->block()) return NULL;
314314
Block* bb = SASS_MEMORY_NEW(Block, this->parent()->pstate());
@@ -321,7 +321,7 @@ namespace Sass {
321321
wrapper_block->append(new_rule);
322322
}
323323

324-
At_Root_Block* mm = SASS_MEMORY_NEW(At_Root_Block,
324+
AtRootRule* mm = SASS_MEMORY_NEW(AtRootRule,
325325
m->pstate(),
326326
wrapper_block,
327327
m->expression());

src/cssize.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace Sass {
2525
// Statement* operator()(Bubble*);
2626
Statement* operator()(CssMediaRule*);
2727
Statement* operator()(SupportsRule*);
28-
Statement* operator()(At_Root_Block*);
28+
Statement* operator()(AtRootRule*);
2929
Statement* operator()(Directive*);
3030
Statement* operator()(Keyframe_Rule*);
3131
Statement* operator()(Trace*);
@@ -50,7 +50,7 @@ namespace Sass {
5050
Statement* parent();
5151
sass::vector<std::pair<bool, Block_Obj>> slice_by_bubble(Block*);
5252
Statement* bubble(Directive*);
53-
Statement* bubble(At_Root_Block*);
53+
Statement* bubble(AtRootRule*);
5454
Statement* bubble(CssMediaRule*);
5555
Statement* bubble(SupportsRule*);
5656

src/debugger.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,9 @@ inline void debug_ast(AST_Node* node, sass::string ind, Env* env)
341341
<< " [name:" << trace->name() << ", type: " << trace->type() << "]"
342342
<< std::endl;
343343
debug_ast(trace->block(), ind + " ", env);
344-
} else if (Cast<At_Root_Block>(node)) {
345-
At_Root_Block* root_block = Cast<At_Root_Block>(node);
346-
std::cerr << ind << "At_Root_Block " << root_block;
344+
} else if (Cast<AtRootRule>(node)) {
345+
AtRootRule* root_block = Cast<AtRootRule>(node);
346+
std::cerr << ind << "AtRootRule " << root_block;
347347
std::cerr << " (" << pstate_source_position(node) << ")";
348348
std::cerr << " " << root_block->tabs();
349349
std::cerr << std::endl;

src/expand.cpp

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

279279
}
280280

281-
Statement* Expand::operator()(At_Root_Block* a)
281+
Statement* Expand::operator()(AtRootRule* a)
282282
{
283283
Block_Obj ab = a->block();
284284
ExpressionObj ae = a->expression();
@@ -292,7 +292,7 @@ namespace Sass {
292292
;
293293

294294
Block_Obj bb = ab ? operator()(ab) : NULL;
295-
At_Root_Block_Obj aa = SASS_MEMORY_NEW(At_Root_Block,
295+
AtRootRuleObj aa = SASS_MEMORY_NEW(AtRootRule,
296296
a->pstate(),
297297
bb,
298298
Cast<At_Root_Query>(ae));

src/expand.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ namespace Sass {
6969
// Statement* operator()(CssMediaRule*);
7070

7171
Statement* operator()(SupportsRule*);
72-
Statement* operator()(At_Root_Block*);
72+
Statement* operator()(AtRootRule*);
7373
Statement* operator()(Directive*);
7474
Statement* operator()(Declaration*);
7575
Statement* operator()(Assignment*);

src/inspect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ namespace Sass {
133133
feature_block->block()->perform(this);
134134
}
135135

136-
void Inspect::operator()(At_Root_Block* at_root_block)
136+
void Inspect::operator()(AtRootRule* at_root_block)
137137
{
138138
append_indentation();
139139
append_token("@at-root ", at_root_block);

0 commit comments

Comments
 (0)