Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #202 from RestKit/add-support-for-deprecated-attri…

…bute

Adds support for the DEPRECATED_ATTRIBUTE macro. Closes #202.
  • Loading branch information...
commit 2273f62f57095b99086c638a7f9309fa45b49c63 2 parents ef60534 + 74e2810
@tomaz authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Parsing/GBObjectiveCParser.m
View
4 Parsing/GBObjectiveCParser.m
@@ -279,7 +279,7 @@ - (BOOL)matchPropertyDefinitionForProvider:(GBMethodsProvider *)provider require
__block BOOL parseAttribute = NO;
__block NSUInteger parenthesisDepth = 0;
[self.tokenizer consumeTo:@";" usingBlock:^(PKToken *token, BOOL *consume, BOOL *stop) {
- if ([token matches:@"__attribute__"]) {
+ if ([token matches:@"__attribute__"] || [token matches:@"DEPRECATED_ATTRIBUTE"]) {
parseAttribute = YES;
parenthesisDepth = 0;
} else if (parseAttribute) {
@@ -499,7 +499,7 @@ - (BOOL)matchMethodDataForProvider:(GBMethodsProvider *)provider from:(NSString
__block NSUInteger parenthesisDepth = 0;
__block NSMutableArray *methodArgs = [NSMutableArray array];
[self.tokenizer consumeTo:end usingBlock:^(PKToken *token, BOOL *consume, BOOL *stop) {
- if ([token matches:@"__attribute__"]) {
+ if ([token matches:@"__attribute__"] || [token matches:@"DEPRECATED_ATTRIBUTE"]) {
parseAttribute = YES;
parenthesisDepth = 0;
return;
Please sign in to comment.
Something went wrong with that request. Please try again.