class AdLint::Cc1::TranslationUnit
Attributes
external_declarations[R]
Public Class Methods
new()
click to toggle source
Calls superclass method
AdLint::Cc1::SyntaxNode::new
# File lib/adlint/cc1/syntax.rb, line 3980 def initialize super @external_declarations = [] end
Public Instance Methods
inspect(indent = 0)
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 4000 def inspect(indent = 0) ([" " * indent + short_class_name] + @external_declarations.map { |d| d.inspect(indent + 1) }).join("\n") end
location()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3996 def location head_location ? head_location : Location.new end
push(external_dcl)
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3987 def push(external_dcl) if @external_declarations.empty? self.head_token = external_dcl.head_token end @external_declarations.push(external_dcl) self.tail_token = external_dcl.tail_token self end