class AdLint::Cpp::IdentifierList
Attributes
identifiers[R]
Public Class Methods
new(ids = [])
click to toggle source
# File lib/adlint/cpp/syntax.rb, line 58 def initialize(ids = []) @identifiers = ids end
Public Instance Methods
inspect(indent = 0)
click to toggle source
# File lib/adlint/cpp/syntax.rb, line 73 def inspect(indent = 0) ([" " * indent + short_class_name] + @identifiers.map { |child| child.inspect }).join("\n") end
location()
click to toggle source
# File lib/adlint/cpp/syntax.rb, line 69 def location @identifiers.first.location end
push(id)
click to toggle source
# File lib/adlint/cpp/syntax.rb, line 64 def push(id) @identifiers.push(id) self end