C# 클래스 ICSharpCode.NRefactory.CSharp.Refactoring.BaseRefactoringContext

상속: IServiceProvider
파일 보기 프로젝트 열기: 0xd4d/NRefactory 1 사용 예제들

공개 메소드들

메소드 설명
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