Class: AdLint::Ld::FunctionTraversal

Inherits:
Object
  • Object
show all
Extended by:
Pluggable
Defined in:
lib/adlint/ld/object.rb

Instance Method Summary collapse

Methods included from Pluggable

def_plugin

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

#executeObject



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