Class: AdLint::Cc1::SignedShortTypeId

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

Instance Method Summary collapse

Methods inherited from TypeId

#eql?, #hash

Constructor Details

#initializeSignedShortTypeId

Returns a new instance of SignedShortTypeId.



3887
3888
3889
# File 'lib/adlint/cc1/type.rb', line 3887

def initialize
  super("signed short")
end

Instance Method Details

#==(rhs_id) ⇒ Object



3891
3892
3893
3894
3895
3896
3897
3898
# File 'lib/adlint/cc1/type.rb', line 3891

def ==(rhs_id)
  case rhs_id
  when SignedShortTypeId, ShortTypeId, ShortIntTypeId, SignedShortIntTypeId
    true
  else
    false
  end
end