-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add basic support for generating marked source for properties in Objective-C. This should offer similar support to what we do for class members in C++. It doesn't do anything special for the automatically generated getter and setter methods. It also doesn't do anything special with the @Property string (though it is present in the marked source).
- Loading branch information
1 parent
00fe685
commit b79d49b
Showing
4 changed files
with
62 additions
and
1 deletion.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Test marked source for properties. | ||
|
||
@class Data; | ||
|
||
@interface Box { | ||
int _testwidth; | ||
} | ||
|
||
|
||
//- @width defines/binding WidthPropDecl | ||
//- WidthPropDecl code WPCodeRoot | ||
//- WPCodeRoot.pre_text "@property " | ||
//- WPCodeRoot.kind "BOX" | ||
//- WPCodeRoot child.0 WPRootType | ||
//- WPRootType.kind "TYPE" | ||
//- WPRootType.pre_text "int" | ||
//- WPCodeRoot child.1 WPContext | ||
//- WPContext.kind "CONTEXT" | ||
//- WPContext.post_child_text "::" | ||
//- WPContext child.0 WPContextIdent | ||
//- WPContextIdent.kind "IDENTIFIER" | ||
//- WPContextIdent.pre_text "Box" | ||
//- WPCodeRoot child.2 WPIdent | ||
//- WPIdent.kind "IDENTIFIER" | ||
//- WPIdent.pre_text "width" | ||
@property int width; | ||
|
||
@end | ||
|
||
@implementation Box | ||
|
||
@synthesize width = _testwidth; | ||
|
||
@end |