# frozen_string_literal: true module AnnotateRb module ModelAnnotator module FileParser class ParsedFileResult def initialize( has_annotations:, has_skip_string:, annotations_changed:, annotations:, annotations_with_whitespace:, has_leading_whitespace:, has_trailing_whitespace:, annotation_position: ) @has_annotations = has_annotations @has_skip_string = has_skip_string @annotations_changed = annotations_changed @annotations = annotations @annotations_with_whitespace = annotations_with_whitespace @has_leading_whitespace = has_leading_whitespace @has_trailing_whitespace = has_trailing_whitespace @annotation_position = annotation_position end attr_reader :annotations, :annotation_position # Returns annotations with new line before and after if they exist attr_reader :annotations_with_whitespace def annotations_changed? @annotations_changed end def has_annotations? @has_annotations end def has_skip_string? @has_skip_string end def has_leading_whitespace? @has_leading_whitespace end def has_trailing_whitespace? @has_trailing_whitespace end end end end end