"Chris Uppal" <
[hidden email]> wrote in message
news:
[hidden email]...
> Blair McGlashan wrote:
>
>> 2) The Categories/Private command should be disabled if the method cannot
>> be compiled (#1605).
>
> Why not just fall back to the non-RB implementation in such cases ?
>
Because that would only address the issue where the parsers disagree. Since
the short term aim is to eliminate any differences that are found, and the
medium term aim is to eliminate the Dolphin parser altogether, that would
only be of temporary relevance. Going forward there will always be cases
where methods might not be compilable, either because they weren't when the
code was loaded or because of subsequent (non-refactoring) changes. Since
the purpose of the command is to include a comment to the effect that the
method is private (or remove it if toggling off privacy), it has to modify
the source. This is only really safe if the method can be parsed, so when it
isn't the command should be disabled.
Regards
Blair