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.
192 193 194 |
# File 'lib/adlint/ld/object.rb', line 192 def initialize(fun_def_rec) @met_record = fun_def_rec end |
Instance Method Details
#eql?(rhs) ⇒ Boolean Also known as: ==
212 213 214 |
# File 'lib/adlint/ld/object.rb', line 212 def eql?(rhs) signature == rhs.signature && location == rhs.location end |
#extern? ⇒ Boolean
208 209 210 |
# File 'lib/adlint/ld/object.rb', line 208 def extern? @met_record.function_linkage_type == "X" end |
#hash ⇒ Object
218 219 220 |
# File 'lib/adlint/ld/object.rb', line 218 def hash "#{signature} #{location}".hash end |
#location ⇒ Object
196 197 198 |
# File 'lib/adlint/ld/object.rb', line 196 def location @met_record.location end |
#name ⇒ Object
204 205 206 |
# File 'lib/adlint/ld/object.rb', line 204 def name @met_record.function_id.name end |
#signature ⇒ Object
200 201 202 |
# File 'lib/adlint/ld/object.rb', line 200 def signature @met_record.function_id.signature end |