class Prism::Comment

This represents a comment that was encountered during parsing.

def deconstruct_keys(keys)

def deconstruct_keys(keys)
  { type: type, location: location }
end

def initialize(type, location)

def initialize(type, location)
  @type = type
  @location = location
end

def inspect

def inspect
  "#<Prism::Comment @type=#{@type.inspect} @location=#{@location.inspect}>"
end

def trailing?

Returns true if the comment happens on the same line as other code and false if the comment is by itself
def trailing?
  type == :inline && !location.start_line_slice.strip.empty?
end