Opened 8 years ago
Last modified 6 years ago
#4180 new defect
Make diff algorithm move annotation section to the end
Reported by: | Martin Sjölund | Owned by: | Adeel Asghar |
---|---|---|---|
Priority: | high | Milestone: | Future |
Component: | OMEdit | Version: | |
Keywords: | Cc: |
Description
Class annotations should be moved to the end of the class, even if this modifies the file...
Change History (2)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
According to Section 4.5 of the specification, the class annotation is the last element to be found in the class declaration. This restriction was introduced at some point in the history of the language, previously you could have placed the annotation anywhere, so there is still existing code around that has mis-placed class annotations.
When such classes are parsed in OMEdit, it will probably be a good idea to move them to their proper place, even if this changes the file.
Not sure if I understand what you mean. Can you explain more?