-
Notifications
You must be signed in to change notification settings - Fork 629
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ObjectiveC: (bugfix) extract the line numbers for methods correctly
The original code records the line numbers of ';' or '{' at the end of method declarations or definitions. Close #4161. Signed-off-by: Masatake YAMATO <yamato@redhat.com>
- Loading branch information
Showing
7 changed files
with
54 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
FileTree input.nolang /^@implementation FileTree$/;" I | ||
FolderTree input.nolang /^@implementation FolderTree$/;" I | ||
MyClass input.nolang /^@implementation MyClass$/;" I | ||
addChild: input.nolang /^{$/;" m implementation:FolderTree | ||
createFileList:atPlace: input.nolang /^{$/;" c implementation:FolderTree | ||
createLayoutTree input.nolang /^{$/;" m implementation:FileTree | ||
createLayoutTree input.nolang /^{$/;" m implementation:FolderTree | ||
dealloc input.nolang /^{$/;" m implementation:FileTree | ||
dealloc input.nolang /^{$/;" m implementation:FolderTree | ||
getDiskSize input.nolang /^{$/;" m implementation:FileTree | ||
initWithName:andSize:atPlace: input.nolang /^{$/;" m implementation:FileTree | ||
initWithName:atPlace: input.nolang /^{$/;" m implementation:FileTree | ||
initWithName:atPlace: input.nolang /^{$/;" m implementation:FolderTree | ||
addChild: input.nolang /^- (FolderTree*)addChild:(FileTree*)subTree$/;" m implementation:FolderTree | ||
createFileList:atPlace: input.nolang /^+ (void) createFileList: (NSString*)root atPlace:(FolderTree*)parentFolder$/;" c implementation:FolderTree | ||
createLayoutTree input.nolang /^- (LayoutTree*)createLayoutTree$/;" m implementation:FileTree | ||
createLayoutTree input.nolang /^- (LayoutTree*)createLayoutTree$/;" m implementation:FolderTree | ||
dealloc input.nolang /^- (void)dealloc$/;" m implementation:FileTree | ||
dealloc input.nolang /^- (void)dealloc$/;" m implementation:FolderTree | ||
getDiskSize input.nolang /^- (FileSize)getDiskSize$/;" m implementation:FileTree | ||
initWithName:andSize:atPlace: input.nolang /^- (id)initWithName:(NSString*)treeName$/;" m implementation:FileTree | ||
initWithName:atPlace: input.nolang /^- (id)initWithName:(NSString*)treeName$/;" m implementation:FileTree | ||
initWithName:atPlace: input.nolang /^- (id)initWithName:(NSString*)treeName$/;" m implementation:FolderTree | ||
main input.nolang /^int main(int argc, char** argv)$/;" f | ||
myClassMethod:with: input.nolang /^+ (void)myClassMethod:(int)arg1 with:(id)arg2;$/;" c implementation:MyClass | ||
myInstanceMethod:with: input.nolang /^- (void)myInstanceMethod:(int)arg1 with:(id)arg2;$/;" m implementation:MyClass | ||
populateChildList: input.nolang /^{$/;" m implementation:FolderTree | ||
populateChildList: input.nolang /^- (void) populateChildList:(NSString*)root$/;" m implementation:FolderTree |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
FileTree input.m /^@implementation FileTree$/;" I | ||
FolderTree input.m /^@implementation FolderTree$/;" I | ||
MyClass input.m /^@implementation MyClass$/;" I | ||
addChild: input.m /^{$/;" m implementation:FolderTree | ||
createFileList:atPlace: input.m /^{$/;" c implementation:FolderTree | ||
createLayoutTree input.m /^{$/;" m implementation:FileTree | ||
createLayoutTree input.m /^{$/;" m implementation:FolderTree | ||
dealloc input.m /^{$/;" m implementation:FileTree | ||
dealloc input.m /^{$/;" m implementation:FolderTree | ||
getDiskSize input.m /^{$/;" m implementation:FileTree | ||
initWithName:andSize:atPlace: input.m /^{$/;" m implementation:FileTree | ||
initWithName:atPlace: input.m /^{$/;" m implementation:FileTree | ||
initWithName:atPlace: input.m /^{$/;" m implementation:FolderTree | ||
addChild: input.m /^- (FolderTree*)addChild:(FileTree*)subTree$/;" m implementation:FolderTree | ||
createFileList:atPlace: input.m /^+ (void) createFileList: (NSString*)root atPlace:(FolderTree*)parentFolder$/;" c implementation:FolderTree | ||
createLayoutTree input.m /^- (LayoutTree*)createLayoutTree$/;" m implementation:FileTree | ||
createLayoutTree input.m /^- (LayoutTree*)createLayoutTree$/;" m implementation:FolderTree | ||
dealloc input.m /^- (void)dealloc$/;" m implementation:FileTree | ||
dealloc input.m /^- (void)dealloc$/;" m implementation:FolderTree | ||
getDiskSize input.m /^- (FileSize)getDiskSize$/;" m implementation:FileTree | ||
initWithName:andSize:atPlace: input.m /^- (id)initWithName:(NSString*)treeName$/;" m implementation:FileTree | ||
initWithName:atPlace: input.m /^- (id)initWithName:(NSString*)treeName$/;" m implementation:FileTree | ||
initWithName:atPlace: input.m /^- (id)initWithName:(NSString*)treeName$/;" m implementation:FolderTree | ||
main input.m /^int main(int argc, char** argv)$/;" f | ||
myClassMethod:with: input.m /^+ (void)myClassMethod:(int)arg1 with:(id)arg2;$/;" c implementation:MyClass | ||
myInstanceMethod:with: input.m /^- (void)myInstanceMethod:(int)arg1 with:(id)arg2;$/;" m implementation:MyClass | ||
populateChildList: input.m /^{$/;" m implementation:FolderTree | ||
populateChildList: input.m /^- (void) populateChildList:(NSString*)root$/;" m implementation:FolderTree |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters