File tree 2 files changed +33
-0
lines changed
2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 24
24
visitRule : function ( ruleNode , visitArgs ) {
25
25
visitArgs . visitDeeper = false ;
26
26
return ruleNode ;
27
+ } ,
28
+ visitDirective : function ( directiveNode , visitArgs ) {
29
+ this . env . frames . unshift ( directiveNode ) ;
30
+ return directiveNode ;
31
+ } ,
32
+ visitDirectiveOut : function ( directiveNode ) {
33
+ this . env . frames . shift ( ) ;
34
+ } ,
35
+ visitMixinDefinition : function ( mixinDefinitionNode , visitArgs ) {
36
+ this . env . frames . unshift ( mixinDefinitionNode ) ;
37
+ return mixinDefinitionNode ;
38
+ } ,
39
+ visitMixinDefinitionOut : function ( mixinDefinitionNode ) {
40
+ this . env . frames . shift ( ) ;
41
+ } ,
42
+ visitRulesetDefinition : function ( rulesetNode , visitArgs ) {
43
+ this . env . frames . unshift ( rulesetNode ) ;
44
+ return rulesetNode ;
45
+ } ,
46
+ visitRulesetDefinitionOut : function ( rulesetNode ) {
47
+ this . env . frames . shift ( ) ;
48
+ } ,
49
+ visitMedia : function ( mediaNode , visitArgs ) {
50
+ this . env . frames . unshift ( mediaNode . ruleset ) ;
51
+ return mediaNode ;
52
+ } ,
53
+ visitMediaOut : function ( mediaNode ) {
54
+ this . env . frames . shift ( ) ;
27
55
}
28
56
} ;
57
+
29
58
} ) ( require ( './tree' ) ) ;
Original file line number Diff line number Diff line change 25
25
if ( ( ! visitArgs || visitArgs . visitDeeper ) && node && node . accept ) {
26
26
node . accept ( this ) ;
27
27
}
28
+ funcName = funcName + "Out" ;
29
+ if ( this . _implementation [ funcName ] ) {
30
+ this . _implementation [ funcName ] ( node ) ;
31
+ }
28
32
return node ;
29
33
} ,
30
34
visitArray : function ( nodes ) {
You can’t perform that action at this time.
0 commit comments