Version 1.0.0-0

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
Includes
None

Overview

ClangKit token class

Class CKToken

Attributes

Superclass
NSObject

+ 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;

kind Top

The token kind

@property( atomic, readonly ) CKTokenKind kind;

line Top

The line number for the token

@property( atomic, readonly ) NSUInteger line;

range Top

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;