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

Afficher le fichier Open project: 0xd4d/NRefactory Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
LookupVariable ( string name ) : IVariable
NameIsUnused ( string name ) : bool
ToAstType ( IType type ) : AstType

Method Details

GenerateNameProposals() public static méthode

public static GenerateNameProposals ( AstType type ) : IEnumerable
type AstType
Résultat IEnumerable

GenerateVariableName() public méthode

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. ///
Résultat string

GenerateVariableName() public méthode

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. ///
Résultat string

NamingHelper() public méthode

public NamingHelper ( RefactoringContext context ) : System
context RefactoringContext
Résultat System