Class: AdLint::Ld::TypedefTraversal

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

Instance Method Summary collapse

Methods included from Pluggable

def_plugin

Constructor Details

#initialize(typedef_map) ⇒ TypedefTraversal

Returns a new instance of TypedefTraversal.



107
108
109
# File 'lib/adlint/ld/typedef.rb', line 107

def initialize(typedef_map)
  @map = typedef_map
end

Instance Method Details

#executeObject



115
116
117
# File 'lib/adlint/ld/typedef.rb', line 115

def execute
  @map.all_typedefs.each { |tdef| on_declaration.invoke(tdef) }
end