File tree Expand file tree Collapse file tree 3 files changed +6
-12
lines changed Expand file tree Collapse file tree 3 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 2
2
#include < vector>
3
3
4
4
#include " check_nesting.hpp"
5
- #include " context.hpp"
6
- // #include "debugger.hpp"
7
5
8
6
namespace Sass {
9
7
10
- CheckNesting::CheckNesting (Context& ctx)
11
- : ctx(ctx),
12
- parent_stack (std::vector<AST_Node*>())
8
+ CheckNesting::CheckNesting ()
9
+ : parent_stack(std::vector<AST_Node*>())
13
10
{ }
14
11
15
12
AST_Node* CheckNesting::parent ()
Original file line number Diff line number Diff line change 2
2
#define SASS_CHECK_NESTING_H
3
3
4
4
#include " ast.hpp"
5
- #include " context.hpp"
6
5
#include " operation.hpp"
7
6
8
7
namespace Sass {
@@ -11,16 +10,14 @@ namespace Sass {
11
10
12
11
class CheckNesting : public Operation_CRTP <Statement*, CheckNesting> {
13
12
14
- Context& ctx;
15
- std::vector<Block*> block_stack;
16
13
std::vector<AST_Node*> parent_stack;
17
14
18
15
AST_Node* parent ();
19
16
20
17
Statement* fallback_impl (AST_Node* n);
21
18
22
19
public:
23
- CheckNesting (Context& );
20
+ CheckNesting ();
24
21
~CheckNesting () { }
25
22
26
23
Statement* operator ()(Block*);
Original file line number Diff line number Diff line change @@ -649,13 +649,13 @@ namespace Sass {
649
649
// create crtp visitor objects
650
650
Expand expand (*this , &global, &backtrace);
651
651
Cssize cssize (*this , &backtrace);
652
- CheckNesting check_nesting (* this ) ;
652
+ CheckNesting check_nesting;
653
653
// check nesting
654
- root = root ->perform (&check_nesting)->block ();
654
+ root->perform (&check_nesting)->block ();
655
655
// expand and eval the tree
656
656
root = root->perform (&expand)->block ();
657
657
// check nesting
658
- root = root ->perform (&check_nesting)->block ();
658
+ root->perform (&check_nesting)->block ();
659
659
// merge and bubble certain rules
660
660
root = root->perform (&cssize)->block ();
661
661
// should we extend something?
You can’t perform that action at this time.
0 commit comments