Skip to content

Commit 526ef41

Browse files
committed
Rename Supports_Negation to SupportsNegation
1 parent 66d478c commit 526ef41

File tree

10 files changed

+22
-22
lines changed

10 files changed

+22
-22
lines changed

src/ast_fwd_decl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ namespace Sass {
8787
class Media_Query_Expression;
8888
class SupportsCondition;
8989
class SupportsOperation;
90-
class Supports_Negation;
90+
class SupportsNegation;
9191
class Supports_Declaration;
9292
class Supports_Interpolation;
9393

@@ -184,7 +184,7 @@ namespace Sass {
184184
IMPL_MEM_OBJ(Media_Query_Expression);
185185
IMPL_MEM_OBJ(SupportsCondition);
186186
IMPL_MEM_OBJ(SupportsOperation);
187-
IMPL_MEM_OBJ(Supports_Negation);
187+
IMPL_MEM_OBJ(SupportsNegation);
188188
IMPL_MEM_OBJ(Supports_Declaration);
189189
IMPL_MEM_OBJ(Supports_Interpolation);
190190
IMPL_MEM_OBJ(At_Root_Query);

src/ast_supports.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,22 @@ namespace Sass {
4646
if (SupportsOperationObj op = Cast<SupportsOperation>(cond)) {
4747
return op->operand() != operand();
4848
}
49-
return Cast<Supports_Negation>(cond) != NULL;
49+
return Cast<SupportsNegation>(cond) != NULL;
5050
}
5151

5252
/////////////////////////////////////////////////////////////////////////
5353
/////////////////////////////////////////////////////////////////////////
5454

55-
Supports_Negation::Supports_Negation(SourceSpan pstate, SupportsConditionObj c)
55+
SupportsNegation::SupportsNegation(SourceSpan pstate, SupportsConditionObj c)
5656
: SupportsCondition(pstate), condition_(c)
5757
{ }
58-
Supports_Negation::Supports_Negation(const Supports_Negation* ptr)
58+
SupportsNegation::SupportsNegation(const SupportsNegation* ptr)
5959
: SupportsCondition(ptr), condition_(ptr->condition_)
6060
{ }
6161

62-
bool Supports_Negation::needs_parens(SupportsConditionObj cond) const
62+
bool SupportsNegation::needs_parens(SupportsConditionObj cond) const
6363
{
64-
return Cast<Supports_Negation>(cond) ||
64+
return Cast<SupportsNegation>(cond) ||
6565
Cast<SupportsOperation>(cond);
6666
}
6767

@@ -104,7 +104,7 @@ namespace Sass {
104104
IMPLEMENT_AST_OPERATORS(SupportsRule);
105105
IMPLEMENT_AST_OPERATORS(SupportsCondition);
106106
IMPLEMENT_AST_OPERATORS(SupportsOperation);
107-
IMPLEMENT_AST_OPERATORS(Supports_Negation);
107+
IMPLEMENT_AST_OPERATORS(SupportsNegation);
108108
IMPLEMENT_AST_OPERATORS(Supports_Declaration);
109109
IMPLEMENT_AST_OPERATORS(Supports_Interpolation);
110110

src/ast_supports.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ namespace Sass {
7979
//////////////////////////////////////////
8080
// A negation condition (`not CONDITION`).
8181
//////////////////////////////////////////
82-
class Supports_Negation : public SupportsCondition {
82+
class SupportsNegation : public SupportsCondition {
8383
private:
8484
ADD_PROPERTY(SupportsConditionObj, condition);
8585
public:
86-
Supports_Negation(SourceSpan pstate, SupportsConditionObj c);
86+
SupportsNegation(SourceSpan pstate, SupportsConditionObj c);
8787
virtual bool needs_parens(SupportsConditionObj cond) const override;
88-
ATTACH_AST_OPERATIONS(Supports_Negation)
88+
ATTACH_AST_OPERATIONS(SupportsNegation)
8989
ATTACH_CRTP_PERFORM_METHODS()
9090
};
9191

src/debugger.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -551,9 +551,9 @@ inline void debug_ast(AST_Node* node, sass::string ind, Env* env)
551551
<< std::endl;
552552
debug_ast(block->left(), ind + " left) ");
553553
debug_ast(block->right(), ind + " right) ");
554-
} else if (Cast<Supports_Negation>(node)) {
555-
Supports_Negation* block = Cast<Supports_Negation>(node);
556-
std::cerr << ind << "Supports_Negation " << block;
554+
} else if (Cast<SupportsNegation>(node)) {
555+
SupportsNegation* block = Cast<SupportsNegation>(node);
556+
std::cerr << ind << "SupportsNegation " << block;
557557
std::cerr << " (" << pstate_source_position(node) << ")"
558558
<< std::endl;
559559
debug_ast(block->condition(), ind + " condition) ");

src/eval.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,10 +1325,10 @@ namespace Sass {
13251325
return cc;
13261326
}
13271327

1328-
Expression* Eval::operator()(Supports_Negation* c)
1328+
Expression* Eval::operator()(SupportsNegation* c)
13291329
{
13301330
Expression* condition = c->condition()->perform(this);
1331-
Supports_Negation* cc = SASS_MEMORY_NEW(Supports_Negation,
1331+
SupportsNegation* cc = SASS_MEMORY_NEW(SupportsNegation,
13321332
c->pstate(),
13331333
Cast<SupportsCondition>(condition));
13341334
return cc;

src/eval.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ namespace Sass {
6868
Expression* operator()(Media_Query_Expression*);
6969
Expression* operator()(At_Root_Query*);
7070
Expression* operator()(SupportsOperation*);
71-
Expression* operator()(Supports_Negation*);
71+
Expression* operator()(SupportsNegation*);
7272
Expression* operator()(Supports_Declaration*);
7373
Expression* operator()(Supports_Interpolation*);
7474
Expression* operator()(Null*);

src/inspect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ namespace Sass {
779779
if (so->needs_parens(so->right())) append_string(")");
780780
}
781781

782-
void Inspect::operator()(Supports_Negation* sn)
782+
void Inspect::operator()(SupportsNegation* sn)
783783
{
784784
append_token("not", sn);
785785
append_mandatory_space();

src/inspect.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ namespace Sass {
6363
virtual void operator()(Custom_Error*);
6464
virtual void operator()(Custom_Warning*);
6565
virtual void operator()(SupportsOperation*);
66-
virtual void operator()(Supports_Negation*);
66+
virtual void operator()(SupportsNegation*);
6767
virtual void operator()(Supports_Declaration*);
6868
virtual void operator()(Supports_Interpolation*);
6969
virtual void operator()(MediaRule*);

src/operation.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ namespace Sass {
9696
virtual T operator()(String_Constant* x) = 0;
9797
virtual T operator()(SupportsCondition* x) = 0;
9898
virtual T operator()(SupportsOperation* x) = 0;
99-
virtual T operator()(Supports_Negation* x) = 0;
99+
virtual T operator()(SupportsNegation* x) = 0;
100100
virtual T operator()(Supports_Declaration* x) = 0;
101101
virtual T operator()(Supports_Interpolation* x) = 0;
102102
virtual T operator()(Media_Query* x) = 0;
@@ -182,7 +182,7 @@ namespace Sass {
182182
T operator()(String_Quoted* x) { return static_cast<D*>(this)->fallback(x); }
183183
T operator()(SupportsCondition* x) { return static_cast<D*>(this)->fallback(x); }
184184
T operator()(SupportsOperation* x) { return static_cast<D*>(this)->fallback(x); }
185-
T operator()(Supports_Negation* x) { return static_cast<D*>(this)->fallback(x); }
185+
T operator()(SupportsNegation* x) { return static_cast<D*>(this)->fallback(x); }
186186
T operator()(Supports_Declaration* x) { return static_cast<D*>(this)->fallback(x); }
187187
T operator()(Supports_Interpolation* x) { return static_cast<D*>(this)->fallback(x); }
188188
T operator()(Media_Query* x) { return static_cast<D*>(this)->fallback(x); }

src/parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2320,7 +2320,7 @@ namespace Sass {
23202320
{
23212321
if (!lex < kwd_not >()) return {};
23222322
SupportsConditionObj cond = parse_supports_condition_in_parens(/*parens_required=*/true);
2323-
return SASS_MEMORY_NEW(Supports_Negation, pstate, cond);
2323+
return SASS_MEMORY_NEW(SupportsNegation, pstate, cond);
23242324
}
23252325

23262326
SupportsConditionObj Parser::parse_supports_operator(bool top_level)

0 commit comments

Comments
 (0)