Class: Prism::Comment
- Inherits:
-
Object
- Object
- Prism::Comment
- Defined in:
- lib/masamune/abstract_syntax_tree/prism/node_extensions.rb
Instance Method Summary collapse
- #comment? ⇒ Boolean
- #end_column ⇒ Object
- #end_line ⇒ Object
- #line_number ⇒ Object
- #start_column ⇒ Object
- #start_line ⇒ Object
- #token_location ⇒ Object
- #token_value ⇒ Object
Instance Method Details
#comment? ⇒ Boolean
78 |
# File 'lib/masamune/abstract_syntax_tree/prism/node_extensions.rb', line 78 def comment? = true |
#end_column ⇒ Object
84 |
# File 'lib/masamune/abstract_syntax_tree/prism/node_extensions.rb', line 84 def end_column = location.end_column |
#end_line ⇒ Object
83 |
# File 'lib/masamune/abstract_syntax_tree/prism/node_extensions.rb', line 83 def end_line = location.end_line |
#line_number ⇒ Object
85 |
# File 'lib/masamune/abstract_syntax_tree/prism/node_extensions.rb', line 85 def line_number = start_line |
#start_column ⇒ Object
82 |
# File 'lib/masamune/abstract_syntax_tree/prism/node_extensions.rb', line 82 def start_column = location.start_column |
#start_line ⇒ Object
81 |
# File 'lib/masamune/abstract_syntax_tree/prism/node_extensions.rb', line 81 def start_line = location.start_line |
#token_location ⇒ Object
79 |
# File 'lib/masamune/abstract_syntax_tree/prism/node_extensions.rb', line 79 def token_location = location |
#token_value ⇒ Object
80 |
# File 'lib/masamune/abstract_syntax_tree/prism/node_extensions.rb', line 80 def token_value = location.slice |