class AdLint::Cc1::ArrayTypeId
Public Class Methods
new(base_type, len)
click to toggle source
Calls superclass method
AdLint::Cc1::TypeId::new
# File lib/adlint/cc1/type.rb, line 6116 def initialize(base_type, len) super(create_value(base_type, len)) end
Private Instance Methods
create_value(base_type, len)
click to toggle source
# File lib/adlint/cc1/type.rb, line 6121 def create_value(base_type, len) if len "#{base_type.brief_image}[#{len}]" else "#{base_type.brief_image}[]" end end