Version 1.0.0-0

CKFixIt Reference

File
ClangKit/Classes/CKFixIt.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 fix-it class

Class CKFixIt

Attributes

Superclass
NSObject

+ fixItsForDiagnostic: Top

Gets fix-it objects from a diagnostic object

+ ( NSArray * )fixItsForDiagnostic: ( CKDiagnostic * )diagnostic;

Parameters
  • diagnostic
    The diagnostic object
Return value

An array of fix-it objects

+ fixItWithDiagnostic:index: Top

Gets a fix-it object from a diagnostic object

+ ( id )fixItWithDiagnostic: ( CKDiagnostic * )diagnostic index: ( NSUInteger )index;

Discussion

The returned object is autoreleased.

Parameters
  • diagnostic
    The diagnostic object
  • index
    The index
Return value

The fix-it object

- initWithDiagnostic:index: Top

Initializes a fix-it object with a diagnostic object

- ( id )initWithDiagnostic: ( CKDiagnostic * )diagnostic index: ( NSUInteger )index;

Parameters
  • diagnostic
    The diagnostic object
  • index
    The index
Return value

The fix-it object

range Top

The fix-it's range

@property( atomic, readonly ) NSRange range;

string Top

The fix-it's string

@property( atomic, readonly ) NSString * string;