C# Класс ICSharpCode.NRefactory.CSharp.Refactoring.BaseRefactoringContext

Наследование: IServiceProvider
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
AppendNumberToName ( string baseName, int number ) : string

Описание методов

BaseRefactoringContext() публичный Метод

public BaseRefactoringContext ( ICSharpCode resolver, System cancellationToken ) : System
resolver ICSharpCode
cancellationToken System
Результат System

CreateDefiniteAssignmentAnalysis() публичный Метод

Creates a new definite assignment analysis object with a given root statement.
public CreateDefiniteAssignmentAnalysis ( Statement root ) : DefiniteAssignmentAnalysis
root Statement /// The root statement. ///
Результат DefiniteAssignmentAnalysis

CreateReachabilityAnalysis() публичный Метод

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. ///
Результат ICSharpCode.NRefactory.CSharp.Analysis.ReachabilityAnalysis

CreateTypeSystemAstBuilder() публичный Метод

public CreateTypeSystemAstBuilder ( AstNode node ) : TypeSystemAstBuilder
node AstNode
Результат TypeSystemAstBuilder

FindReferences() публичный Метод

public FindReferences ( AstNode rootNode, IVariable variable ) : IList
rootNode AstNode
variable IVariable
Результат IList

GetConversion() публичный Метод

public GetConversion ( Expression expression ) : Conversion
expression Expression
Результат Conversion

GetExpectedType() публичный Метод

public GetExpectedType ( Expression expression ) : IType
expression Expression
Результат IType

GetLineByOffset() публичный абстрактный Метод

public abstract GetLineByOffset ( int offset ) : IDocumentLine
offset int
Результат IDocumentLine

GetLocalNameProposal() публичный Метод

public GetLocalNameProposal ( string name, TextLocation loc, bool camelCase = true ) : string
name string
loc TextLocation
camelCase bool
Результат string

GetLocation() публичный абстрактный Метод

public abstract GetLocation ( int offset ) : TextLocation
offset int
Результат TextLocation

GetNameProposal() публичный Метод

public GetNameProposal ( string name, TextLocation loc, bool camelCase = true ) : string
name string
loc TextLocation
camelCase bool
Результат string

GetOffset() публичный абстрактный Метод

public abstract GetOffset ( TextLocation location ) : int
location TextLocation
Результат int

GetOffset() публичный Метод

public GetOffset ( int line, int col ) : int
line int
col int
Результат int

GetResolverStateAfter() публичный Метод

public GetResolverStateAfter ( AstNode node ) : CSharpResolver
node AstNode
Результат ICSharpCode.NRefactory.CSharp.Resolver.CSharpResolver

GetResolverStateBefore() публичный Метод

public GetResolverStateBefore ( AstNode node ) : CSharpResolver
node AstNode
Результат ICSharpCode.NRefactory.CSharp.Resolver.CSharpResolver

GetService() публичный Метод

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
Результат object

GetText() публичный абстрактный Метод

public abstract GetText ( ISegment segment ) : string
segment ISegment
Результат string

GetText() публичный абстрактный Метод

public abstract GetText ( int offset, int length ) : string
offset int
length int
Результат string

ParseFormatString() публичный Метод

Parses a composite format string.
public ParseFormatString ( string source ) : ICSharpCode.NRefactory.Utils.FormatStringParseResult
source string
Результат ICSharpCode.NRefactory.Utils.FormatStringParseResult

Resolve() публичный Метод

public Resolve ( AstNode node ) : ResolveResult
node AstNode
Результат ResolveResult

ResolveType() публичный Метод

public ResolveType ( AstType type ) : IType
type AstType
Результат IType

Supports() публичный Метод

public Supports ( System.Version version ) : bool
version System.Version
Результат bool

TranslateString() публичный Метод

Translates the english input string to the context language.
public TranslateString ( string str ) : string
str string
Результат string