C# Class Thinktecture.Tools.Web.Services.CodeGeneration.CodeRefactoringAgent

Datei anzeigen Open project: WSCF/WSCF Class Usage Examples

Public Methods

Method Description
CodeRefactoringAgent ( ) : System
Refactor ( CodeTypeExtension typeExtension, string oldName, string newName ) : void

Private Methods

Method Description
GetCodeTypeReferenceInCodeExpression ( System.CodeDom.CodeExpression expression ) : CodeTypeReference
GetCodeTypeReferenceInCodeStatement ( CodeStatement statement ) : CodeTypeReferenceCollection
RefactorCodeStatements ( CodeStatementCollection statements, string oldName, string newName ) : void

This method updates the references in code statements.

RefactorCodeTypeReference ( CodeTypeReference codeTypeReference, string oldName, string newName ) : void

This method contains the core logic for changing a type reference to use a new type.

RefactorCodeTypeReferenceCollection ( CodeTypeReferenceCollection codeTypeReferences, string oldName, string newName ) : void
RefactorCodeTypeReferencesInAttributeArguments ( CodeAttributeArgumentCollection arguments, string oldName, string newName ) : void
RefactorCodeTypeReferencesInAttributes ( CodeAttributeDeclarationCollection attribs, string oldName, string newName ) : void
RefactorFieldNamesInFieldReferences ( System.CodeDom.CodeExpression expression, string newName ) : void
RefactorFields ( FilteredTypeMembers fields, string oldName, string newName ) : void
RefactorMethodNamesInStatement ( CodeStatement statement, string newName ) : void
RefactorMethodParameterReferences ( CodeParameterDeclarationExpressionCollection parameters, string oldName, string newName ) : void
RefactorMethods ( FilteredTypeMembers methods, string oldName, string newName ) : void

This method updates the references in methods.

RefactorProperties ( FilteredTypeMembers properties, string oldName, string newName ) : void
RefactorType ( CodeTypeExtension typeExtension, string oldName, string newName ) : void

Method Details

CodeRefactoringAgent() public method

public CodeRefactoringAgent ( ) : System
return System

Refactor() public method

public Refactor ( CodeTypeExtension typeExtension, string oldName, string newName ) : void
typeExtension CodeTypeExtension
oldName string
newName string
return void