Class: AdLint::Cpp::FunctionLikeDefineLine
- Inherits:
-
DefineLine
- Object
- SyntaxNode
- GroupPart
- ControlLine
- DefineLine
- AdLint::Cpp::FunctionLikeDefineLine
- Defined in:
- lib/adlint/cpp/syntax.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#identifier_list ⇒ Object
readonly
Returns the value of attribute identifier_list.
Attributes inherited from DefineLine
#identifier, #replacement_list, #symbol
Attributes inherited from ControlLine
Instance Method Summary collapse
- #have_va_list? ⇒ Boolean
-
#initialize(keyword, id, id_list, repl_list, sym) ⇒ FunctionLikeDefineLine
constructor
A new instance of FunctionLikeDefineLine.
- #inspect(indent = 0) ⇒ Object
Methods included from SymbolicElement
Methods inherited from ControlLine
Methods inherited from SyntaxNode
Methods included from LocationHolder
Methods included from Visitable
Constructor Details
#initialize(keyword, id, id_list, repl_list, sym) ⇒ FunctionLikeDefineLine
Returns a new instance of FunctionLikeDefineLine.
383 384 385 386 |
# File 'lib/adlint/cpp/syntax.rb', line 383 def initialize(keyword, id, id_list, repl_list, sym) super(keyword, id, repl_list, sym) @identifier_list = id_list end |
Instance Attribute Details
#identifier_list ⇒ Object (readonly)
Returns the value of attribute identifier_list.
388 389 390 |
# File 'lib/adlint/cpp/syntax.rb', line 388 def identifier_list @identifier_list end |
Instance Method Details
#have_va_list? ⇒ Boolean
390 391 392 |
# File 'lib/adlint/cpp/syntax.rb', line 390 def have_va_list? false end |
#inspect(indent = 0) ⇒ Object
394 395 396 |
# File 'lib/adlint/cpp/syntax.rb', line 394 def inspect(indent = 0) " " * indent + "#{short_class_name} (#{identifier.inspect})" end |