Class: Tree::Visitors::Perform
- Inherits:
-
Object
- Object
- Tree::Visitors::Perform
- Defined in:
- lib/sass-prof.rb
Instance Method Summary collapse
-
#__visit_function ⇒ Object
Function definition.
-
#__visit_mixin ⇒ Object
Mixin perform.
-
#__visit_mixindef ⇒ Object
Mixin definition.
- #visit_function(node) ⇒ Object
- #visit_mixin(node) ⇒ Object
- #visit_mixindef(node) ⇒ Object
Instance Method Details
#__visit_function ⇒ Object
Function definition
24 |
# File 'lib/sass-prof.rb', line 24 alias_method :__visit_function, :visit_function |
#__visit_mixin ⇒ Object
Mixin perform
62 |
# File 'lib/sass-prof.rb', line 62 alias_method :__visit_mixin, :visit_mixin |
#__visit_mixindef ⇒ Object
Mixin definition
43 |
# File 'lib/sass-prof.rb', line 43 alias_method :__visit_mixindef, :visit_mixindef |
#visit_function(node) ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/sass-prof.rb', line 26 def visit_function(node) return __visit_function node if ::SassProf::Config.ignore.include? :fundef prof = ::SassProf::FundefProfiler.new(node.dup, :fundef, node.args.dup, @environment) prof.start value = __visit_function node prof.stop value end |
#visit_mixin(node) ⇒ Object
64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/sass-prof.rb', line 64 def visit_mixin(node) return __visit_mixin node if ::SassProf::Config.ignore.include? :mix prof = ::SassProf::MixProfiler.new(node.dup, :mix, node.args.dup, @environment) prof.start value = __visit_mixin node prof.stop value end |
#visit_mixindef(node) ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/sass-prof.rb', line 45 def visit_mixindef(node) return __visit_mixindef node if ::SassProf::Config.ignore.include? :mixdef prof = ::SassProf::MixdefProfiler.new(node.dup, :mixdef, node.args.dup, @environment) prof.start value = __visit_mixindef node prof.stop value end |