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