@@ -147,14 +147,14 @@ namespace Sass {
147
147
// ///////////////////////////////////////////////////////////////////////
148
148
// ///////////////////////////////////////////////////////////////////////
149
149
150
- Has_Block::Has_Block (ParserState pstate, Block_Obj b)
150
+ ParentStatement::ParentStatement (ParserState pstate, Block_Obj b)
151
151
: Statement(pstate), block_(b)
152
152
{ }
153
- Has_Block::Has_Block (const Has_Block * ptr)
153
+ ParentStatement::ParentStatement (const ParentStatement * ptr)
154
154
: Statement(ptr), block_(ptr->block_)
155
155
{ }
156
156
157
- bool Has_Block ::has_content ()
157
+ bool ParentStatement ::has_content ()
158
158
{
159
159
return (block_ && block_->has_content ()) || Statement::has_content ();
160
160
}
@@ -163,10 +163,10 @@ namespace Sass {
163
163
// ///////////////////////////////////////////////////////////////////////
164
164
165
165
Ruleset::Ruleset (ParserState pstate, SelectorListObj s, Block_Obj b)
166
- : Has_Block (pstate, b), selector_(s), schema_(), is_root_(false )
166
+ : ParentStatement (pstate, b), selector_(s), schema_(), is_root_(false )
167
167
{ statement_type (RULESET); }
168
168
Ruleset::Ruleset (const Ruleset* ptr)
169
- : Has_Block (ptr),
169
+ : ParentStatement (ptr),
170
170
selector_(ptr->selector_),
171
171
schema_(ptr->schema_),
172
172
is_root_(ptr->is_root_)
@@ -201,10 +201,10 @@ namespace Sass {
201
201
// ///////////////////////////////////////////////////////////////////////
202
202
203
203
Trace::Trace (ParserState pstate, sass::string n, Block_Obj b, char type)
204
- : Has_Block (pstate, b), type_(type), name_(n)
204
+ : ParentStatement (pstate, b), type_(type), name_(n)
205
205
{ }
206
206
Trace::Trace (const Trace* ptr)
207
- : Has_Block (ptr),
207
+ : ParentStatement (ptr),
208
208
type_(ptr->type_),
209
209
name_(ptr->name_)
210
210
{ }
@@ -213,10 +213,10 @@ namespace Sass {
213
213
// ///////////////////////////////////////////////////////////////////////
214
214
215
215
Directive::Directive (ParserState pstate, sass::string kwd, SelectorListObj sel, Block_Obj b, Expression_Obj val)
216
- : Has_Block (pstate, b), keyword_(kwd), selector_(sel), value_(val) // set value manually if needed
216
+ : ParentStatement (pstate, b), keyword_(kwd), selector_(sel), value_(val) // set value manually if needed
217
217
{ statement_type (DIRECTIVE); }
218
218
Directive::Directive (const Directive* ptr)
219
- : Has_Block (ptr),
219
+ : ParentStatement (ptr),
220
220
keyword_(ptr->keyword_),
221
221
selector_(ptr->selector_),
222
222
value_(ptr->value_) // set value manually if needed
@@ -241,20 +241,20 @@ namespace Sass {
241
241
// ///////////////////////////////////////////////////////////////////////
242
242
243
243
Keyframe_Rule::Keyframe_Rule (ParserState pstate, Block_Obj b)
244
- : Has_Block (pstate, b), name_()
244
+ : ParentStatement (pstate, b), name_()
245
245
{ statement_type (KEYFRAMERULE); }
246
246
Keyframe_Rule::Keyframe_Rule (const Keyframe_Rule* ptr)
247
- : Has_Block (ptr), name_(ptr->name_)
247
+ : ParentStatement (ptr), name_(ptr->name_)
248
248
{ statement_type (KEYFRAMERULE); }
249
249
250
250
// ///////////////////////////////////////////////////////////////////////
251
251
// ///////////////////////////////////////////////////////////////////////
252
252
253
253
Declaration::Declaration (ParserState pstate, String_Obj prop, Expression_Obj val, bool i, bool c, Block_Obj b)
254
- : Has_Block (pstate, b), property_(prop), value_(val), is_important_(i), is_custom_property_(c), is_indented_(false )
254
+ : ParentStatement (pstate, b), property_(prop), value_(val), is_important_(i), is_custom_property_(c), is_indented_(false )
255
255
{ statement_type (DECLARATION); }
256
256
Declaration::Declaration (const Declaration* ptr)
257
- : Has_Block (ptr),
257
+ : ParentStatement (ptr),
258
258
property_(ptr->property_),
259
259
value_(ptr->value_),
260
260
is_important_(ptr->is_important_),
@@ -365,29 +365,29 @@ namespace Sass {
365
365
// ///////////////////////////////////////////////////////////////////////
366
366
367
367
If::If (ParserState pstate, Expression_Obj pred, Block_Obj con, Block_Obj alt)
368
- : Has_Block (pstate, con), predicate_(pred), alternative_(alt)
368
+ : ParentStatement (pstate, con), predicate_(pred), alternative_(alt)
369
369
{ statement_type (IF); }
370
370
If::If (const If* ptr)
371
- : Has_Block (ptr),
371
+ : ParentStatement (ptr),
372
372
predicate_(ptr->predicate_),
373
373
alternative_(ptr->alternative_)
374
374
{ statement_type (IF); }
375
375
376
376
bool If::has_content ()
377
377
{
378
- return Has_Block ::has_content () || (alternative_ && alternative_->has_content ());
378
+ return ParentStatement ::has_content () || (alternative_ && alternative_->has_content ());
379
379
}
380
380
381
381
// ///////////////////////////////////////////////////////////////////////
382
382
// ///////////////////////////////////////////////////////////////////////
383
383
384
384
For::For (ParserState pstate,
385
385
sass::string var, Expression_Obj lo, Expression_Obj hi, Block_Obj b, bool inc)
386
- : Has_Block (pstate, b),
386
+ : ParentStatement (pstate, b),
387
387
variable_(var), lower_bound_(lo), upper_bound_(hi), is_inclusive_(inc)
388
388
{ statement_type (FOR); }
389
389
For::For (const For* ptr)
390
- : Has_Block (ptr),
390
+ : ParentStatement (ptr),
391
391
variable_(ptr->variable_),
392
392
lower_bound_(ptr->lower_bound_),
393
393
upper_bound_(ptr->upper_bound_),
@@ -398,20 +398,20 @@ namespace Sass {
398
398
// ///////////////////////////////////////////////////////////////////////
399
399
400
400
Each::Each (ParserState pstate, sass::vector<sass::string> vars, Expression_Obj lst, Block_Obj b)
401
- : Has_Block (pstate, b), variables_(vars), list_(lst)
401
+ : ParentStatement (pstate, b), variables_(vars), list_(lst)
402
402
{ statement_type (EACH); }
403
403
Each::Each (const Each* ptr)
404
- : Has_Block (ptr), variables_(ptr->variables_), list_(ptr->list_)
404
+ : ParentStatement (ptr), variables_(ptr->variables_), list_(ptr->list_)
405
405
{ statement_type (EACH); }
406
406
407
407
// ///////////////////////////////////////////////////////////////////////
408
408
// ///////////////////////////////////////////////////////////////////////
409
409
410
410
While::While (ParserState pstate, Expression_Obj pred, Block_Obj b)
411
- : Has_Block (pstate, b), predicate_(pred)
411
+ : ParentStatement (pstate, b), predicate_(pred)
412
412
{ statement_type (WHILE); }
413
413
While::While (const While* ptr)
414
- : Has_Block (ptr), predicate_(ptr->predicate_)
414
+ : ParentStatement (ptr), predicate_(ptr->predicate_)
415
415
{ statement_type (WHILE); }
416
416
417
417
// ///////////////////////////////////////////////////////////////////////
@@ -446,7 +446,7 @@ namespace Sass {
446
446
// ///////////////////////////////////////////////////////////////////////
447
447
448
448
Definition::Definition (const Definition* ptr)
449
- : Has_Block (ptr),
449
+ : ParentStatement (ptr),
450
450
name_(ptr->name_),
451
451
parameters_(ptr->parameters_),
452
452
environment_(ptr->environment_),
@@ -463,7 +463,7 @@ namespace Sass {
463
463
Parameters_Obj params,
464
464
Block_Obj b,
465
465
Type t)
466
- : Has_Block (pstate, b),
466
+ : ParentStatement (pstate, b),
467
467
name_(n),
468
468
parameters_(params),
469
469
environment_(0 ),
@@ -481,7 +481,7 @@ namespace Sass {
481
481
Parameters_Obj params,
482
482
Native_Function func_ptr,
483
483
bool overload_stub)
484
- : Has_Block (pstate, {}),
484
+ : ParentStatement (pstate, {}),
485
485
name_(n),
486
486
parameters_(params),
487
487
environment_(0 ),
@@ -498,7 +498,7 @@ namespace Sass {
498
498
sass::string n,
499
499
Parameters_Obj params,
500
500
Sass_Function_Entry c_func)
501
- : Has_Block (pstate, {}),
501
+ : ParentStatement (pstate, {}),
502
502
name_(n),
503
503
parameters_(params),
504
504
environment_(0 ),
@@ -514,10 +514,10 @@ namespace Sass {
514
514
// ///////////////////////////////////////////////////////////////////////
515
515
516
516
Mixin_Call::Mixin_Call (ParserState pstate, sass::string n, Arguments_Obj args, Parameters_Obj b_params, Block_Obj b)
517
- : Has_Block (pstate, b), name_(n), arguments_(args), block_parameters_(b_params)
517
+ : ParentStatement (pstate, b), name_(n), arguments_(args), block_parameters_(b_params)
518
518
{ }
519
519
Mixin_Call::Mixin_Call (const Mixin_Call* ptr)
520
- : Has_Block (ptr),
520
+ : ParentStatement (ptr),
521
521
name_(ptr->name_),
522
522
arguments_(ptr->arguments_),
523
523
block_parameters_(ptr->block_parameters_)
@@ -808,10 +808,10 @@ namespace Sass {
808
808
// ///////////////////////////////////////////////////////////////////////
809
809
810
810
At_Root_Block::At_Root_Block (ParserState pstate, Block_Obj b, At_Root_Query_Obj e)
811
- : Has_Block (pstate, b), expression_(e)
811
+ : ParentStatement (pstate, b), expression_(e)
812
812
{ statement_type (ATROOT); }
813
813
At_Root_Block::At_Root_Block (const At_Root_Block* ptr)
814
- : Has_Block (ptr), expression_(ptr->expression_)
814
+ : ParentStatement (ptr), expression_(ptr->expression_)
815
815
{ statement_type (ATROOT); }
816
816
817
817
bool At_Root_Block::bubbles () {
0 commit comments