Class: AdLint::Cc1::SignedTypeId

Inherits:
StandardTypeId show all
Defined in:
lib/adlint/cc1/type.rb

Instance Method Summary collapse

Methods inherited from TypeId

#eql?, #hash

Constructor Details

#initializeSignedTypeId

Returns a new instance of SignedTypeId.



4154
4155
4156
# File 'lib/adlint/cc1/type.rb', line 4154

def initialize
  super("signed")
end

Instance Method Details

#==(rhs_id) ⇒ Object



4158
4159
4160
4161
4162
4163
4164
4165
# File 'lib/adlint/cc1/type.rb', line 4158

def ==(rhs_id)
  case rhs_id
  when SignedTypeId, IntTypeId, SignedIntTypeId
    true
  else
    false
  end
end