C# Class ICSharpCode.NRefactory.CSharp.Refactoring.BaseRefactoringContext

Inheritance: IServiceProvider
Afficher le fichier Open project: 0xd4d/NRefactory Class Usage Examples

Méthodes publiques

Méthode Description
BaseRefactoringContext ( ICSharpCode resolver, System cancellationToken ) : System
CreateDefiniteAssignmentAnalysis ( Statement root ) : DefiniteAssignmentAnalysis

Creates a new definite assignment analysis object with a given root statement.

CreateReachabilityAnalysis ( Statement statement, ICSharpCode.NRefactory.CSharp.Analysis.ReachabilityAnalysis recursiveDetectorVisitor = null ) : ICSharpCode.NRefactory.CSharp.Analysis.ReachabilityAnalysis

Creates a new reachability analysis object with a given statement.

CreateTypeSystemAstBuilder ( AstNode node ) : TypeSystemAstBuilder
FindReferences ( AstNode rootNode, IVariable variable ) : IList
GetConversion ( Expression expression ) : Conversion
GetExpectedType ( Expression expression ) : IType
GetLineByOffset ( int offset ) : IDocumentLine
GetLocalNameProposal ( string name, TextLocation loc, bool camelCase = true ) : string
GetLocation ( int offset ) : TextLocation
GetNameProposal ( string name, TextLocation loc, bool camelCase = true ) : string
GetOffset ( TextLocation location ) : int
GetOffset ( int line, int col ) : int
GetResolverStateAfter ( AstNode node ) : CSharpResolver
GetResolverStateBefore ( AstNode node ) : CSharpResolver
GetService ( Type serviceType ) : object

Retrieves a service from the refactoring context. If the service is not found in the Services container.

GetText ( ISegment segment ) : string
GetText ( int offset, int length ) : string
ParseFormatString ( string source ) : ICSharpCode.NRefactory.Utils.FormatStringParseResult

Parses a composite format string.

Resolve ( AstNode node ) : ResolveResult
ResolveType ( AstType type ) : IType
Supports ( System.Version version ) : bool
TranslateString ( string str ) : string

Translates the english input string to the context language.

Private Methods

Méthode Description
AppendNumberToName ( string baseName, int number ) : string

Method Details

BaseRefactoringContext() public méthode

public BaseRefactoringContext ( ICSharpCode resolver, System cancellationToken ) : System
resolver ICSharpCode
cancellationToken System
Résultat System

CreateDefiniteAssignmentAnalysis() public méthode

Creates a new definite assignment analysis object with a given root statement.
public CreateDefiniteAssignmentAnalysis ( Statement root ) : DefiniteAssignmentAnalysis
root Statement /// The root statement. ///
Résultat DefiniteAssignmentAnalysis

CreateReachabilityAnalysis() public méthode

Creates a new reachability analysis object with a given statement.
public CreateReachabilityAnalysis ( Statement statement, ICSharpCode.NRefactory.CSharp.Analysis.ReachabilityAnalysis recursiveDetectorVisitor = null ) : ICSharpCode.NRefactory.CSharp.Analysis.ReachabilityAnalysis
statement Statement /// The statement to start the analysis. ///
recursiveDetectorVisitor ICSharpCode.NRefactory.CSharp.Analysis.ReachabilityAnalysis /// TODO. ///
Résultat ICSharpCode.NRefactory.CSharp.Analysis.ReachabilityAnalysis

CreateTypeSystemAstBuilder() public méthode

public CreateTypeSystemAstBuilder ( AstNode node ) : TypeSystemAstBuilder
node AstNode
Résultat TypeSystemAstBuilder

FindReferences() public méthode

public FindReferences ( AstNode rootNode, IVariable variable ) : IList
rootNode AstNode
variable IVariable
Résultat IList

GetConversion() public méthode

public GetConversion ( Expression expression ) : Conversion
expression Expression
Résultat Conversion

GetExpectedType() public méthode

public GetExpectedType ( Expression expression ) : IType
expression Expression
Résultat IType

GetLineByOffset() public abstract méthode

public abstract GetLineByOffset ( int offset ) : IDocumentLine
offset int
Résultat IDocumentLine

GetLocalNameProposal() public méthode

public GetLocalNameProposal ( string name, TextLocation loc, bool camelCase = true ) : string
name string
loc TextLocation
camelCase bool
Résultat string

GetLocation() public abstract méthode

public abstract GetLocation ( int offset ) : TextLocation
offset int
Résultat TextLocation

GetNameProposal() public méthode

public GetNameProposal ( string name, TextLocation loc, bool camelCase = true ) : string
name string
loc TextLocation
camelCase bool
Résultat string

GetOffset() public abstract méthode

public abstract GetOffset ( TextLocation location ) : int
location TextLocation
Résultat int

GetOffset() public méthode

public GetOffset ( int line, int col ) : int
line int
col int
Résultat int

GetResolverStateAfter() public méthode

public GetResolverStateAfter ( AstNode node ) : CSharpResolver
node AstNode
Résultat ICSharpCode.NRefactory.CSharp.Resolver.CSharpResolver

GetResolverStateBefore() public méthode

public GetResolverStateBefore ( AstNode node ) : CSharpResolver
node AstNode
Résultat ICSharpCode.NRefactory.CSharp.Resolver.CSharpResolver

GetService() public méthode

Retrieves a service from the refactoring context. If the service is not found in the Services container.
public GetService ( Type serviceType ) : object
serviceType System.Type
Résultat object

GetText() public abstract méthode

public abstract GetText ( ISegment segment ) : string
segment ISegment
Résultat string

GetText() public abstract méthode

public abstract GetText ( int offset, int length ) : string
offset int
length int
Résultat string

ParseFormatString() public méthode

Parses a composite format string.
public ParseFormatString ( string source ) : ICSharpCode.NRefactory.Utils.FormatStringParseResult
source string
Résultat ICSharpCode.NRefactory.Utils.FormatStringParseResult

Resolve() public méthode

public Resolve ( AstNode node ) : ResolveResult
node AstNode
Résultat ResolveResult

ResolveType() public méthode

public ResolveType ( AstType type ) : IType
type AstType
Résultat IType

Supports() public méthode

public Supports ( System.Version version ) : bool
version System.Version
Résultat bool

TranslateString() public méthode

Translates the english input string to the context language.
public TranslateString ( string str ) : string
str string
Résultat string