class AdLint::Cc1::StructDeclarator

Attributes

declarator[R]
expression[R]

Public Class Methods

new(dcr, expr) click to toggle source
Calls superclass method AdLint::Cc1::SyntaxNode::new
# File lib/adlint/cc1/syntax.rb, line 2947
def initialize(dcr, expr)
  super()
  @declarator = dcr
  @expression = expr
end

Public Instance Methods

bitfield?() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 2960
def bitfield?
  @expression != nil
end
inspect(indent = 0) click to toggle source
# File lib/adlint/cc1/syntax.rb, line 2964
def inspect(indent = 0)
  " " * indent + short_class_name
end
location() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 2956
def location
  @declarator ? @declarator.location : @expression.location
end