Class: AdLint::Ld::FunctionTraversal
- Inherits:
-
Object
- Object
- AdLint::Ld::FunctionTraversal
- Extended by:
- Pluggable
- Defined in:
- lib/adlint/ld/object.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(fun_map) ⇒ FunctionTraversal
constructor
A new instance of FunctionTraversal.
Methods included from Pluggable
Constructor Details
#initialize(fun_map) ⇒ FunctionTraversal
Returns a new instance of FunctionTraversal.
325 326 327 |
# File 'lib/adlint/ld/object.rb', line 325 def initialize(fun_map) @map = fun_map end |
Instance Method Details
#execute ⇒ Object
334 335 336 337 338 339 340 341 342 |
# File 'lib/adlint/ld/object.rb', line 334 def execute @map.all_function_declarations.each do |fun_dcl| on_declaration.invoke(fun_dcl) end @map.all_functions.each do |fun_def| on_definition.invoke(fun_def) end end |