Class: AdLint::Ld::Function
- Inherits:
-
Object
- Object
- AdLint::Ld::Function
- Includes:
- AdLint::LocationHolder
- Defined in:
- lib/adlint/ld/object.rb
Instance Method Summary collapse
- #eql?(rhs) ⇒ Boolean (also: #==)
- #extern? ⇒ Boolean
- #hash ⇒ Object
-
#initialize(fun_def_rec) ⇒ Function
constructor
A new instance of Function.
- #location ⇒ Object
- #name ⇒ Object
- #signature ⇒ Object
Methods included from AdLint::LocationHolder
Constructor Details
#initialize(fun_def_rec) ⇒ Function
Returns a new instance of Function.
193 194 195 |
# File 'lib/adlint/ld/object.rb', line 193 def initialize(fun_def_rec) @met_record = fun_def_rec end |
Instance Method Details
#eql?(rhs) ⇒ Boolean Also known as: ==
213 214 215 |
# File 'lib/adlint/ld/object.rb', line 213 def eql?(rhs) signature == rhs.signature && location == rhs.location end |
#extern? ⇒ Boolean
209 210 211 |
# File 'lib/adlint/ld/object.rb', line 209 def extern? @met_record.function_linkage_type == "X" end |
#hash ⇒ Object
219 220 221 |
# File 'lib/adlint/ld/object.rb', line 219 def hash "#{signature} #{location}".hash end |
#location ⇒ Object
197 198 199 |
# File 'lib/adlint/ld/object.rb', line 197 def location @met_record.location end |
#name ⇒ Object
205 206 207 |
# File 'lib/adlint/ld/object.rb', line 205 def name @met_record.function_id.name end |
#signature ⇒ Object
201 202 203 |
# File 'lib/adlint/ld/object.rb', line 201 def signature @met_record.function_id.signature end |