Class: AdLint::Cpp::DefineLine
- Inherits:
-
ControlLine
- Object
- SyntaxNode
- GroupPart
- ControlLine
- AdLint::Cpp::DefineLine
- Includes:
- SymbolicElement
- Defined in:
- lib/adlint/cpp/syntax.rb
Direct Known Subclasses
FunctionLikeDefineLine, ObjectLikeDefineLine, PseudoObjectLikeDefineLine
Instance Attribute Summary collapse
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
-
#replacement_list ⇒ Object
readonly
Returns the value of attribute replacement_list.
-
#symbol ⇒ Object
readonly
Returns the value of attribute symbol.
Attributes inherited from ControlLine
Instance Method Summary collapse
-
#initialize(keyword, id, repl_list, sym) ⇒ DefineLine
constructor
A new instance of DefineLine.
Methods included from SymbolicElement
Methods inherited from ControlLine
Methods inherited from SyntaxNode
#inspect, #location, #short_class_name
Methods included from LocationHolder
Methods included from Visitable
Constructor Details
#initialize(keyword, id, repl_list, sym) ⇒ DefineLine
Returns a new instance of DefineLine.
355 356 357 358 359 360 |
# File 'lib/adlint/cpp/syntax.rb', line 355 def initialize(keyword, id, repl_list, sym) super(keyword) @identifier = id @replacement_list = repl_list @symbol = sym end |
Instance Attribute Details
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
362 363 364 |
# File 'lib/adlint/cpp/syntax.rb', line 362 def identifier @identifier end |
#replacement_list ⇒ Object (readonly)
Returns the value of attribute replacement_list.
363 364 365 |
# File 'lib/adlint/cpp/syntax.rb', line 363 def replacement_list @replacement_list end |
#symbol ⇒ Object (readonly)
Returns the value of attribute symbol.
364 365 366 |
# File 'lib/adlint/cpp/syntax.rb', line 364 def symbol @symbol end |