class YARP::ParseResult::Comments::NodeTarget

location.
A target for attaching comments that is based on a specific node’s

def <<(comment)

def <<(comment)
  node.location.comments << comment
end

def encloses?(comment)

def encloses?(comment)
  start_offset <= comment.location.start_offset &&
    comment.location.end_offset <= end_offset
end

def end_offset

def end_offset
  node.location.end_offset
end

def initialize(node)

def initialize(node)
  @node = node
end

def start_offset

def start_offset
  node.location.start_offset
end