Class: Prism::Comment

Inherits:
Object
  • Object
show all
Defined in:
lib/masamune/abstract_syntax_tree/prism/node_extensions.rb

Instance Method Summary collapse

Instance Method Details

#comment?Boolean

Returns:

  • (Boolean)


78
# File 'lib/masamune/abstract_syntax_tree/prism/node_extensions.rb', line 78

def comment? = true

#end_columnObject



84
# File 'lib/masamune/abstract_syntax_tree/prism/node_extensions.rb', line 84

def end_column = location.end_column

#end_lineObject



83
# File 'lib/masamune/abstract_syntax_tree/prism/node_extensions.rb', line 83

def end_line = location.end_line

#line_numberObject



85
# File 'lib/masamune/abstract_syntax_tree/prism/node_extensions.rb', line 85

def line_number = start_line

#start_columnObject



82
# File 'lib/masamune/abstract_syntax_tree/prism/node_extensions.rb', line 82

def start_column = location.start_column

#start_lineObject



81
# File 'lib/masamune/abstract_syntax_tree/prism/node_extensions.rb', line 81

def start_line = location.start_line

#token_locationObject



79
# File 'lib/masamune/abstract_syntax_tree/prism/node_extensions.rb', line 79

def token_location = location

#token_valueObject



80
# File 'lib/masamune/abstract_syntax_tree/prism/node_extensions.rb', line 80

def token_value = location.slice