class Prism::ParseResult::Comments::NodeTarget
:nodoc:
location.
A target for attaching comments that is based on a specific node’s
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.end_offset end
def initialize(node)
def initialize(node) @node = node end
def leading_comment(comment)
def leading_comment(comment) node.location.leading_comment(comment) end
def start_offset
def start_offset node.start_offset end
def trailing_comment(comment)
def trailing_comment(comment) node.location.trailing_comment(comment) end