Class: Fdlint::Parser::JS::PrimaryExpression

Inherits:
Expression show all
Defined in:
lib/fdlint/parser/js/struct.rb

Instance Attribute Summary

Attributes inherited from Element

#left, #right, #type

Instance Method Summary collapse

Methods inherited from Expression

#left_hand=, #left_hand?

Methods inherited from Element

#contains?, #position

Constructor Details

#initialize(type, expr, position = nil) ⇒ PrimaryExpression

Returns a new instance of PrimaryExpression.



217
218
219
# File 'lib/fdlint/parser/js/struct.rb', line 217

def initialize(type, expr, position = nil)
  super type, expr, nil, position
end

Instance Method Details

#nodeObject



225
226
227
# File 'lib/fdlint/parser/js/struct.rb', line 225

def node
  left
end

#textObject



221
222
223
# File 'lib/fdlint/parser/js/struct.rb', line 221

def text
  node.text
end