Permalink
Browse files

Fixed dictionaryWithCompilationContext: signature and implementation.

Modifying the return type is valid as both the old type and the new share the same base class.
  • Loading branch information...
1 parent e7514c0 commit 6664b9ae89f6ff5fd3d5033b206d4b429aa90b7f @mugginsoft committed Jan 20, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 FScriptFramework/FSCompiler.m
@@ -155,7 +155,7 @@ - (FSCNPrecomputedObject *) number;
- (FSCNIdentifier *) identifierWithCompilationContext:(struct compilationContext)compilationContext;
- (FSCNArray *) arrayWithCompilationContext:(struct compilationContext)compilationContext;
- (FSCNBlock *) blockWithCompilationContext:(struct compilationContext)compilationContext parentSymbolTable:(FSSymbolTable *)symbTab;
-- (FSCNArray *) dictionaryWithCompilationContext:(struct compilationContext)compilationContext;
+- (FSCNDictionary *) dictionaryWithCompilationContext:(struct compilationContext)compilationContext;
- (id) patternElt;
- (FSCNMethod *)methodWithCompilationContext:(struct compilationContext)compilationContext;
- (NSString *)typeWithCompilationContext:(struct compilationContext)compilationContext;
@@ -1324,11 +1324,11 @@ - (FSCNBlock *)blockWithCompilationContext:(struct compilationContext)compilatio
return r;
}
-- (FSCNArray *) dictionaryWithCompilationContext:(struct compilationContext)compilationContext
+- (FSCNDictionary *) dictionaryWithCompilationContext:(struct compilationContext)compilationContext
{
NSMutableArray *entries = [NSMutableArray array];
int32_t firstCharIndex = token_first_char_index;
- FSCNArray *r;
+ FSCNDictionary *r;
[self checkToken:DICTIONARY_BEGIN :@"\"#{\" expected"];
[self scan];

0 comments on commit 6664b9a

Please sign in to comment.