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

显示文件 Open project: 0xd4d/NRefactory Class Usage Examples

Public Methods

Method Description
GenerateNameProposals ( AstType type ) : IEnumerable
GenerateVariableName ( AstType type, string baseName = null ) : string

Generates a variable name for a variable of the specified type.

GenerateVariableName ( IType type, string baseName = null ) : string

Generates a variable name for a variable of the specified type.

NamingHelper ( RefactoringContext context ) : System

Private Methods

Method Description
LookupVariable ( string name ) : IVariable
NameIsUnused ( string name ) : bool
ToAstType ( IType type ) : AstType

Method Details

GenerateNameProposals() public static method

public static GenerateNameProposals ( AstType type ) : IEnumerable
type AstType
return IEnumerable

GenerateVariableName() public method

Generates a variable name for a variable of the specified type.
public GenerateVariableName ( AstType type, string baseName = null ) : string
type AstType /// The type of the variable. ///
baseName string /// Suggested base name. ///
return string

GenerateVariableName() public method

Generates a variable name for a variable of the specified type.
public GenerateVariableName ( IType type, string baseName = null ) : string
type IType /// The type of the variable. ///
baseName string /// Suggested base name. ///
return string

NamingHelper() public method

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