class AdLint::Cc1::NamedVariable

Constants

Summary

Public Class Methods

new(mem, dcl_or_def, scope) click to toggle source
Calls superclass method AdLint::Cc1::OuterVariable::new
# File lib/adlint/cc1/object.rb, line 523
def initialize(mem, dcl_or_def, scope)
  self.name = dcl_or_def.identifier.value
  super(mem, dcl_or_def, dcl_or_def.type, scope)
end

Public Instance Methods

designated_by_lvalue?() click to toggle source
# File lib/adlint/cc1/object.rb, line 532
def designated_by_lvalue?
  true
end
pretty_print(pp) click to toggle source
# File lib/adlint/cc1/object.rb, line 541
def pretty_print(pp)
  Summary.new(object_id, name, type, binding.memory).pretty_print(pp)
end
temporary?() click to toggle source
# File lib/adlint/cc1/object.rb, line 528
def temporary?
  false
end
to_named_variable() click to toggle source

NOTE: This method should be overridden by PhantomVariable.

# File lib/adlint/cc1/object.rb, line 537
def to_named_variable
  self
end