Class: AdLint::Cc1::ShortTypeId

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

Instance Method Summary collapse

Methods inherited from TypeId

#eql?, #hash

Constructor Details

#initializeShortTypeId

Returns a new instance of ShortTypeId.



3843
3844
3845
# File 'lib/adlint/cc1/type.rb', line 3843

def initialize
  super("short")
end

Instance Method Details

#==(rhs_id) ⇒ Object



3847
3848
3849
3850
3851
3852
3853
3854
# File 'lib/adlint/cc1/type.rb', line 3847

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