Sha256: 40260b6db4704d7cd1766d808ecbd6f0689b827becfc34400dd186586768ba98

Contents?: true

Size: 930 Bytes

Versions: 9

Compression:

Stored size: 930 Bytes

Contents

#import "GHToken.h"

#import "GHGherkinLineProtocol.h"

#import "GHParser.h"

@implementation GHToken

@synthesize eof;
@synthesize line;
@synthesize matchedType;
@synthesize matchedKeyword;
@synthesize matchedText;
@synthesize matchedItems;
@synthesize matchedIndent;
@synthesize matchedGherkinDialect;
@synthesize location;

- (id)initWithGherkinLine:(id<GHGherkinLineProtocol>)theGherkinLine location:(GHLocation *)theLocation
{
    if (self = [super init])
    {
        line = theGherkinLine;
        location = theLocation;
    }
    
    return self;
}

- (void)detach
{
    [line detach];
}

- (BOOL)isEOF
{
    return line == nil;
}

- (NSString *)tokenValue
{
    return [self isEOF] ? @"EOF" : [line lineTextByRemovingIndent: -1];
}

- (NSString *)description
{
    return [NSString stringWithFormat: @"%d: %@/%@", matchedType, matchedKeyword, matchedText];
}

@end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
xcfit-2.0.6 XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHToken.m
xcfit-0.9.0 XCFitDemo/XCFitDemoCucumberishTests/Cucumberish/Dependencies/Gherkin/GHToken.m
xcfit-0.8.0 XCFitDemo/XCFitDemoCucumberishTests/Cucumberish/Dependencies/Gherkin/GHToken.m
xcfit-0.7.0 XCFitDemo/XCFitDemoCucumberishTests/Cucumberish/Dependencies/Gherkin/GHToken.m
xcfit-0.6.0 XCFitDemo/XCFitDemoCucumberishTests/Cucumberish/Dependencies/Gherkin/GHToken.m
xcfit-0.5.0 XCFitDemo/XCFitDemoCucumberishTests/Cucumberish/Dependencies/Gherkin/GHToken.m
xcfit-0.4.0 XCFitDemo/XCFitDemoCucumberishTests/Cucumberish/Dependencies/Gherkin/GHToken.m
xcfit-0.3.0 XCFitDemo/XCFitDemoCucumberishTests/Cucumberish/Dependencies/Gherkin/GHToken.m
xcfit-0.2.0 XCFitDemo/XCFitDemoCucumberishTests/Cucumberish/Dependencies/Gherkin/GHToken.m