Added/Corrected Documentation
This commit is contained in:
@@ -10,11 +10,17 @@
|
||||
|
||||
|
||||
|
||||
@implementation MPToken {
|
||||
NSRange _range;
|
||||
MPTokenType _tokenType;
|
||||
NSString *_stringValue;
|
||||
}
|
||||
@interface MPToken ()
|
||||
|
||||
@property (readonly, nonatomic) NSRange range;
|
||||
@property (readonly, nonatomic, strong) NSString *stringValue;
|
||||
@property (readonly, nonatomic) MPTokenType tokenType;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
|
||||
@implementation MPToken
|
||||
|
||||
- (instancetype)initWithTokenType:(MPTokenType)tokenType
|
||||
range:(NSRange)range
|
||||
@@ -30,24 +36,6 @@
|
||||
}
|
||||
|
||||
|
||||
- (NSRange)range
|
||||
{
|
||||
return _range;
|
||||
}
|
||||
|
||||
|
||||
- (MPTokenType)tokenType
|
||||
{
|
||||
return _tokenType;
|
||||
}
|
||||
|
||||
|
||||
- (NSString *)stringValue
|
||||
{
|
||||
return _stringValue;
|
||||
}
|
||||
|
||||
|
||||
- (NSString *)description
|
||||
{
|
||||
return self.stringValue;
|
||||
|
||||
Reference in New Issue
Block a user