File tree Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,11 @@ namespace Sass {
22
22
Statement* CheckNesting::operator ()(Block* b)
23
23
{
24
24
parent_stack.push_back (b);
25
- append_block (b);
25
+
26
+ for (auto n : *b) {
27
+ n->perform (this );
28
+ }
29
+
26
30
parent_stack.pop_back ();
27
31
return b;
28
32
}
@@ -53,14 +57,4 @@ namespace Sass {
53
57
dynamic_cast <Directive*>(p) ||
54
58
dynamic_cast <Mixin_Call*>(p);
55
59
}
56
-
57
- void CheckNesting::append_block (Block* b)
58
- {
59
- for (size_t i = 0 , L = b->length (); i < L; ++i) {
60
- Statement* ith = (*b)[i]->perform (this );
61
- if (ith) {
62
- (*b)[i] = ith;
63
- }
64
- }
65
- }
66
60
}
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ namespace Sass {
30
30
Statement* fallback (U x) { return fallback_impl (x); }
31
31
32
32
bool is_valid_prop_parent (AST_Node*);
33
- void append_block (Block*);
34
33
};
35
34
36
35
}
You can’t perform that action at this time.
0 commit comments