class AdLint::Ld::Variable

Public Class Methods

new(var_def_rec) click to toggle source
# File lib/adlint/ld/object.rb, line 42
def initialize(var_def_rec)
  @met_record = var_def_rec
end

Public Instance Methods

==(rhs)
Alias for: eql?
eql?(rhs) click to toggle source
# File lib/adlint/ld/object.rb, line 62
def eql?(rhs)
  name == rhs.name && location == rhs.location
end
Also aliased as: ==
extern?() click to toggle source
# File lib/adlint/ld/object.rb, line 58
def extern?
  @met_record.variable_linkage_type == "X"
end
hash() click to toggle source
# File lib/adlint/ld/object.rb, line 68
def hash
  "#{name} #{location}".hash
end
location() click to toggle source
# File lib/adlint/ld/object.rb, line 46
def location
  @met_record.location
end
name() click to toggle source
# File lib/adlint/ld/object.rb, line 50
def name
  @met_record.variable_name
end
type() click to toggle source
# File lib/adlint/ld/object.rb, line 54
def type
  @met_record.type_rep
end