class AdLint::Cc1::UserType

Attributes

location[R]

Public Class Methods

new(type_tbl, typedef_dcl, base_type) click to toggle source
Calls superclass method AdLint::Cc1::Type::new
# File lib/adlint/cc1/type.rb, line 6800
def initialize(type_tbl, typedef_dcl, base_type)
  super(type_tbl, typedef_dcl.identifier.value, [typedef_dcl])
  @location = typedef_dcl.location
  @base_type = base_type
end

Public Instance Methods

brief_image() click to toggle source
# File lib/adlint/cc1/type.rb, line 6816
def brief_image
  name
end
dup() click to toggle source
# File lib/adlint/cc1/type.rb, line 6934
def dup
  UserType.new(type_table, declarations.first, @base_type.dup)
end
id() click to toggle source
# File lib/adlint/cc1/type.rb, line 6808
def id
  @id ||= UserTypeId.new(name)
end
named?() click to toggle source
# File lib/adlint/cc1/type.rb, line 6820
def named?
  true
end
standard?() click to toggle source
# File lib/adlint/cc1/type.rb, line 6853
def standard?
  false
end
unqualify() click to toggle source
# File lib/adlint/cc1/type.rb, line 6829
def unqualify
  self
end
user?() click to toggle source
# File lib/adlint/cc1/type.rb, line 6847
def user?
  true
end