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

ファイルを表示 Open project: 0xd4d/NRefactory Class Usage Examples

Public Methods

Method Description
ConvertToInitializer ( AssignmentExpression assignmentExpression, IList &statements ) : AssignmentExpression
ConvertToInitializer ( VariableInitializer variableInitializer, IList &statements ) : VariableInitializer
StatementsToInitializerConverter ( RefactoringContext context ) : System

Private Methods

Method Description
AddNewVariable ( IVariable variable, Expression initializer, AstNode node ) : void
AddNodesToInitializer ( Expression initializer ) : void
AddOldAnnotationsToInitializer ( ICSharpCode.NRefactory.CSharp.Refactoring.AccessPath targetPath, IAnnotatable initializer ) : void
AddToInitializer ( Expression initializer ) : void
CanReplaceDependent ( ResolveResult resolveResult ) : bool
Convert ( IList originalStatements ) : void
HasDependency ( Expression expression ) : bool
HasDependency ( FindReferences referenceFinder, Expression expression ) : bool
HasDependencyCheck ( FindReferences referenceFinder, Expression expression ) : bool
HasDependencyCheck ( FindReferences referenceFinder, LocalResolveResult localResolveResult ) : bool
Initialize ( AstNode targetNode ) : bool
InsertImplicitInitializersForPath ( ICSharpCode.NRefactory.CSharp.Refactoring.AccessPath path ) : bool
PushAssignment ( Expression left, Expression right, AstNode node ) : bool
TryHandleAddCall ( ExpressionStatement expressionStatement ) : bool
TryHandleAssignmentExpression ( ExpressionStatement expressionStatement ) : bool
TryHandleInitializer ( AstNode node ) : bool
VariableHasBeenConverted ( IVariable variable ) : bool

Method Details

ConvertToInitializer() public method

public ConvertToInitializer ( AssignmentExpression assignmentExpression, IList &statements ) : AssignmentExpression
assignmentExpression AssignmentExpression
statements IList
return AssignmentExpression

ConvertToInitializer() public method

public ConvertToInitializer ( VariableInitializer variableInitializer, IList &statements ) : VariableInitializer
variableInitializer VariableInitializer
statements IList
return VariableInitializer

StatementsToInitializerConverter() public method

public StatementsToInitializerConverter ( RefactoringContext context ) : System
context RefactoringContext
return System