Class: AdLint::Cpp::Expression

Inherits:
SyntaxNode show all
Defined in:
lib/adlint/cpp/syntax.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from SyntaxNode

#inspect, #location, #short_class_name

Methods included from LocationHolder

#analysis_target?

Methods included from Visitable

#accept

Constructor Details

#initialize(val) ⇒ Expression

Returns a new instance of Expression.



710
711
712
# File 'lib/adlint/cpp/syntax.rb', line 710

def initialize(val)
  @value = val
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



714
715
716
# File 'lib/adlint/cpp/syntax.rb', line 714

def value
  @value
end

Instance Method Details

#to_sObject



716
717
718
# File 'lib/adlint/cpp/syntax.rb', line 716

def to_s
  subclass_responsibility
end