Class: AdLint::Ld::TypedefTraversal
- Inherits:
-
Object
- Object
- AdLint::Ld::TypedefTraversal
- Extended by:
- Pluggable
- Defined in:
- lib/adlint/ld/typedef.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(typedef_map) ⇒ TypedefTraversal
constructor
A new instance of TypedefTraversal.
Methods included from Pluggable
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
#execute ⇒ Object
114 115 116 |
# File 'lib/adlint/ld/typedef.rb', line 114 def execute @map.all_typedefs.each { |tdef| on_declaration.invoke(tdef) } end |