Archived
1

Added Expression Tree Inspection Methods

Cleaned Code
This commit is contained in:
Kim Wittenburg
2014-04-20 23:28:17 +02:00
parent 35215923ef
commit 1daec37a25
6 changed files with 113 additions and 23 deletions

View File

@@ -7,6 +7,7 @@
//
#import "MPFunction.h"
#import "MPExpression.h"
@implementation MPFunction
@@ -20,7 +21,13 @@
return self;
}
#pragma mark Children
#pragma mark Working With the Expression Tree
- (void)childChanged:(MPExpression *)child atLocalIndexPath:(NSIndexPath *)indexPath
{
[self.parent functionSymbolChanged:self
atLocalIndexPath:[indexPath indexPathByAddingIndex:0]];
}
- (NSUInteger)numberOfChildren
{