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.
107 108 109 |
# File 'lib/adlint/ld/typedef.rb', line 107 def initialize(typedef_map) @map = typedef_map end |
Instance Method Details
#execute ⇒ Object
115 116 117 |
# File 'lib/adlint/ld/typedef.rb', line 115 def execute @map.all_typedefs.each { |tdef| on_declaration.invoke(tdef) } end |