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.



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

def initialize(typedef_map)
  @map = typedef_map
end

Instance Method Details

#executeObject



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

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