Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 419fea18f3
Fetching contributors…

Cannot retrieve contributors at this time

file 55 lines (39 sloc) 1.118 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
//
// Licensed under the terms in License.txt
//
// Copyright 2010 Allen Ding. All rights reserved.
//

#import "KWPendingNode.h"
#import "KWExampleNodeVisitor.h"

#if KW_BLOCKS_ENABLED

@implementation KWPendingNode

#pragma mark -
#pragma mark Initializing

- (id)initWithCallSite:(KWCallSite *)aCallSite description:(NSString *)aDescription {
    if ((self = [super init])) {
        callSite = [aCallSite retain];
        description = [aDescription copy];
    }
    
    return self;
}

+ (id)pendingNodeWithCallSite:(KWCallSite *)aCallSite description:(NSString *)aDescription {
    return [[[self alloc] initWithCallSite:aCallSite description:aDescription] autorelease];
}

- (void)dealloc {
    [callSite release];
    [description release];
    [super dealloc];
}

#pragma mark -
#pragma mark Getting Call Sites

@synthesize callSite;

#pragma mark -
#pragma mark Getting Descriptions

@synthesize description;

#pragma mark -
#pragma mark Accepting Visitors

- (void)acceptExampleNodeVisitor:(id<KWExampleNodeVisitor>)aVisitor {
    [aVisitor visitPendingNode:self];
}

@end

#endif // #if KW_BLOCKS_ENABLED
Something went wrong with that request. Please try again.