CKToken Reference
File
ClangKit/Classes/CKToken.h
Author
Jean-David Gadina - www.xs-labs.com
Copyright
© (c) 2010-2014 - Jean-David Gadina - www.xs-labs.com
Date
Wednesday, June 25, 2014
Overview
ClangKit token class
Class CKToken
Attributes
+ tokensForTranslationUnit:tokens:
Top
Gets a list of token objects from a translation unit
+ ( NSArray * )tokensForTranslationUnit: ( CKTranslationUnit * )translationUnit
tokens: ( void ** )tokensPointer;
Parameters
- translationUnit
The translation unit
- tokensPointer
Optional - Used to retrieve the internal libclang tokens
Return value
An array of token objects
column
Top
The column number for the token
@property( atomic,
readonly ) NSUInteger column;
cursor
Top
The token's cursor
@property( atomic,
readonly ) CKCursor * cursor;
The token kind
@property( atomic,
readonly ) CKTokenKind kind;
The line number for the token
@property( atomic,
readonly ) NSUInteger line;
The token's range
@property( atomic,
readonly ) NSRange range;
sourceLocation
Top
The source location of the token
@property( atomic,
readonly ) CKSourceLocation * sourceLocation;
spelling
Top
The token's spelling
@property( atomic,
readonly ) NSString * spelling;
Types
CKTokenKind
Top
Token kind
typedef NSInteger CKTokenKind;
Globals
CKTokenKindComment
Top
Token kind - Comment
FOUNDATION_EXPORT CKTokenKind CKTokenKindComment;
CKTokenKindIdentifier
Top
Token kind - Identifier
FOUNDATION_EXPORT CKTokenKind CKTokenKindIdentifier;
CKTokenKindKeyword
Top
Token kind - Keyword
FOUNDATION_EXPORT CKTokenKind CKTokenKindKeyword;
CKTokenKindLiteral
Top
Token kind - Literal
FOUNDATION_EXPORT CKTokenKind CKTokenKindLiteral;
CKTokenKindPunctuation
Top
Token kind - Punctuation
FOUNDATION_EXPORT CKTokenKind CKTokenKindPunctuation;