C# Class ICSharpCode.NRefactory.CSharp.CodeActions.TestRefactoringContext

Inheritance: RefactoringContext
Datei anzeigen Open project: mono-soc-2012/NRefactory Class Usage Examples

Public Methods

Method Description
Create ( string content ) : TestRefactoringContext
GetLineByOffset ( int offset ) : IDocumentLine
GetLocation ( int offset ) : TextLocation
GetOffset ( TextLocation location ) : int
GetText ( ISegment segment ) : string
GetText ( int offset, int length ) : string
StartScript ( ) : Script
Supports ( System.Version version ) : bool
TestRefactoringContext ( IDocument document, TextLocation location, ICSharpCode.NRefactory.CSharp.Resolver.CSharpAstResolver resolver ) : System

Private Methods

Method Description
Print ( AstNode node ) : void

Method Details

Create() public static method

public static Create ( string content ) : TestRefactoringContext
content string
return TestRefactoringContext

GetLineByOffset() public method

public GetLineByOffset ( int offset ) : IDocumentLine
offset int
return IDocumentLine

GetLocation() public method

public GetLocation ( int offset ) : TextLocation
offset int
return TextLocation

GetOffset() public method

public GetOffset ( TextLocation location ) : int
location TextLocation
return int

GetText() public method

public GetText ( ISegment segment ) : string
segment ISegment
return string

GetText() public method

public GetText ( int offset, int length ) : string
offset int
length int
return string

StartScript() public method

public StartScript ( ) : Script
return Script

Supports() public method

public Supports ( System.Version version ) : bool
version System.Version
return bool

TestRefactoringContext() public method

public TestRefactoringContext ( IDocument document, TextLocation location, ICSharpCode.NRefactory.CSharp.Resolver.CSharpAstResolver resolver ) : System
document IDocument
location TextLocation
resolver ICSharpCode.NRefactory.CSharp.Resolver.CSharpAstResolver
return System