lib/rbi/rewriters/deannotate.rb in rbi-0.0.16 vs lib/rbi/rewriters/deannotate.rb in rbi-0.0.17
- old
+ new
@@ -24,9 +24,10 @@
private
sig { params(node: NodeWithComments).void }
def deannotate_node(node)
return unless node.annotations.one?(@annotation)
+
node.comments.reject! do |comment|
comment.text == "@#{@annotation}"
end
end
end