Skip to content
This repository was archived by the owner on Oct 14, 2021. It is now read-only.

[objc] Category line movement generates non-sensical API diff #25

@jverkoey

Description

@jverkoey

Strange changes when category implementations are shifted down in a file.

Repro case

Before

@interface MDCFlexibleHeaderView: UIView
@property(nonatomic, strong) UIView *someView;
@end

@interface MDCFlexibleHeaderView ()

#pragma mark Accessing the header's views

/** Deprecated. Please register views directly to the flexible header. */
@property(nonatomic, strong, nonnull) UIView *contentView;

@end

After

@interface MDCFlexibleHeaderView: UIView
@property(nonatomic, strong) UIView *someView;
@property(nonatomic, strong) UIView *anotherView;
@end

@interface MDCFlexibleHeaderView ()

#pragma mark Accessing the header's views

/** Deprecated. Please register views directly to the flexible header. */
@property(nonatomic, strong, nonnull) UIView *contentView;

@end

Partial generated output

None of the following is expected to be generated:

#### MDCFlexibleHeaderView()

 *new* category: `MDCFlexibleHeaderView()`

 *removed* category: `MDCFlexibleHeaderView()`

 *modified* property: `contentView` in `MDCFlexibleHeaderView()`

 | Type of change: | parent.usr |
|---|---|
| From: | `c:objc(ext)MDCFlexibleHeaderView@MDCFlexibleHeaderView.h@14009` |
| To: | `c:objc(ext)MDCFlexibleHeaderView@MDCFlexibleHeaderView.h@14344` |

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions