Skip to content

Commit 0aff8d5

Browse files
committed
Rename Supports_Block to SupportsRule
1 parent 24fd449 commit 0aff8d5

20 files changed

+37
-37
lines changed

src/ast_fwd_decl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace Sass {
3535
class CssMediaRule;
3636
class CssMediaQuery;
3737

38-
class Supports_Block;
38+
class SupportsRule;
3939
class Directive;
4040

4141
class Keyframe_Rule;
@@ -137,7 +137,7 @@ namespace Sass {
137137
IMPL_MEM_OBJ(MediaRule);
138138
IMPL_MEM_OBJ(CssMediaRule);
139139
IMPL_MEM_OBJ(CssMediaQuery);
140-
IMPL_MEM_OBJ(Supports_Block);
140+
IMPL_MEM_OBJ(SupportsRule);
141141
IMPL_MEM_OBJ(Directive);
142142
IMPL_MEM_OBJ(Keyframe_Rule);
143143
IMPL_MEM_OBJ(At_Root_Block);

src/ast_supports.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ namespace Sass {
99
/////////////////////////////////////////////////////////////////////////
1010
/////////////////////////////////////////////////////////////////////////
1111

12-
Supports_Block::Supports_Block(ParserState pstate, Supports_Condition_Obj condition, Block_Obj block)
12+
SupportsRule::SupportsRule(ParserState pstate, Supports_Condition_Obj condition, Block_Obj block)
1313
: ParentStatement(pstate, block), condition_(condition)
1414
{ statement_type(SUPPORTS); }
15-
Supports_Block::Supports_Block(const Supports_Block* ptr)
15+
SupportsRule::SupportsRule(const SupportsRule* ptr)
1616
: ParentStatement(ptr), condition_(ptr->condition_)
1717
{ statement_type(SUPPORTS); }
18-
bool Supports_Block::bubbles() { return true; }
18+
bool SupportsRule::bubbles() { return true; }
1919

2020
/////////////////////////////////////////////////////////////////////////
2121
/////////////////////////////////////////////////////////////////////////
@@ -101,7 +101,7 @@ namespace Sass {
101101
/////////////////////////////////////////////////////////////////////////
102102
/////////////////////////////////////////////////////////////////////////
103103

104-
IMPLEMENT_AST_OPERATORS(Supports_Block);
104+
IMPLEMENT_AST_OPERATORS(SupportsRule);
105105
IMPLEMENT_AST_OPERATORS(Supports_Condition);
106106
IMPLEMENT_AST_OPERATORS(Supports_Operator);
107107
IMPLEMENT_AST_OPERATORS(Supports_Negation);

src/ast_supports.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ namespace Sass {
3939
////////////////////
4040
// `@supports` rule.
4141
////////////////////
42-
class Supports_Block : public ParentStatement {
42+
class SupportsRule : public ParentStatement {
4343
ADD_PROPERTY(Supports_Condition_Obj, condition)
4444
public:
45-
Supports_Block(ParserState pstate, Supports_Condition_Obj condition, Block_Obj block = {});
45+
SupportsRule(ParserState pstate, Supports_Condition_Obj condition, Block_Obj block = {});
4646
bool bubbles() override;
47-
ATTACH_AST_OPERATIONS(Supports_Block)
47+
ATTACH_AST_OPERATIONS(SupportsRule)
4848
ATTACH_CRTP_PERFORM_METHODS()
4949
};
5050

src/check_nesting.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,6 @@ namespace Sass {
388388
Cast<Import>(n) ||
389389
Cast<MediaRule>(n) ||
390390
Cast<CssMediaRule>(n) ||
391-
Cast<Supports_Block>(n);
391+
Cast<SupportsRule>(n);
392392
}
393393
}

src/cssize.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ namespace Sass {
238238
return debubble(mm->block(), mm);
239239
}
240240

241-
Statement* Cssize::operator()(Supports_Block* m)
241+
Statement* Cssize::operator()(SupportsRule* m)
242242
{
243243
if (!m->block()->length())
244244
{ return m; }
@@ -248,7 +248,7 @@ namespace Sass {
248248

249249
p_stack.push_back(m);
250250

251-
Supports_Block_Obj mm = SASS_MEMORY_NEW(Supports_Block,
251+
SupportsRuleObj mm = SASS_MEMORY_NEW(SupportsRule,
252252
m->pstate(),
253253
m->condition(),
254254
operator()(m->block()));
@@ -329,7 +329,7 @@ namespace Sass {
329329
return bubble;
330330
}
331331

332-
Statement* Cssize::bubble(Supports_Block* m)
332+
Statement* Cssize::bubble(SupportsRule* m)
333333
{
334334
StyleRuleObj parent = Cast<StyleRule>(SASS_MEMORY_COPY(this->parent()));
335335

@@ -343,7 +343,7 @@ namespace Sass {
343343

344344
Block* wrapper_block = SASS_MEMORY_NEW(Block, m->block()->pstate());
345345
wrapper_block->append(new_rule);
346-
Supports_Block* mm = SASS_MEMORY_NEW(Supports_Block,
346+
SupportsRule* mm = SASS_MEMORY_NEW(SupportsRule,
347347
m->pstate(),
348348
m->condition(),
349349
wrapper_block);

src/cssize.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Sass {
2424
Statement* operator()(StyleRule*);
2525
// Statement* operator()(Bubble*);
2626
Statement* operator()(CssMediaRule*);
27-
Statement* operator()(Supports_Block*);
27+
Statement* operator()(SupportsRule*);
2828
Statement* operator()(At_Root_Block*);
2929
Statement* operator()(Directive*);
3030
Statement* operator()(Keyframe_Rule*);
@@ -52,7 +52,7 @@ namespace Sass {
5252
Statement* bubble(Directive*);
5353
Statement* bubble(At_Root_Block*);
5454
Statement* bubble(CssMediaRule*);
55-
Statement* bubble(Supports_Block*);
55+
Statement* bubble(SupportsRule*);
5656

5757
Block* debubble(Block* children, Statement* parent = 0);
5858
Block* flatten(const Block*);

src/debugger.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -537,9 +537,9 @@ inline void debug_ast(AST_Node* node, sass::string ind, Env* env)
537537
std::cerr << " [" << (query->type()) << "] ";
538538
std::cerr << " " << debug_vec(query->features());
539539
std::cerr << std::endl;
540-
} else if (Cast<Supports_Block>(node)) {
541-
Supports_Block* block = Cast<Supports_Block>(node);
542-
std::cerr << ind << "Supports_Block " << block;
540+
} else if (Cast<SupportsRule>(node)) {
541+
SupportsRule* block = Cast<SupportsRule>(node);
542+
std::cerr << ind << "SupportsRule " << block;
543543
std::cerr << " (" << pstate_source_position(node) << ")";
544544
std::cerr << " " << block->tabs() << std::endl;
545545
debug_ast(block->condition(), ind + " =@ ");

src/expand.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,10 @@ namespace Sass {
228228
return rr;
229229
}
230230

231-
Statement* Expand::operator()(Supports_Block* f)
231+
Statement* Expand::operator()(SupportsRule* f)
232232
{
233233
ExpressionObj condition = f->condition()->perform(&eval);
234-
Supports_Block_Obj ff = SASS_MEMORY_NEW(Supports_Block,
234+
SupportsRuleObj ff = SASS_MEMORY_NEW(SupportsRule,
235235
f->pstate(),
236236
Cast<Supports_Condition>(condition),
237237
operator()(f->block()));

src/expand.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ namespace Sass {
6868
// Css StyleRule is already static
6969
// Statement* operator()(CssMediaRule*);
7070

71-
Statement* operator()(Supports_Block*);
71+
Statement* operator()(SupportsRule*);
7272
Statement* operator()(At_Root_Block*);
7373
Statement* operator()(Directive*);
7474
Statement* operator()(Declaration*);

src/inspect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ namespace Sass {
124124
}
125125
}
126126

127-
void Inspect::operator()(Supports_Block* feature_block)
127+
void Inspect::operator()(SupportsRule* feature_block)
128128
{
129129
append_indentation();
130130
append_token("@supports", feature_block);

0 commit comments

Comments
 (0)