C# Класс PredictiveCodeSuggestions.Generators.GeneratorExtensions

Defines the GeneratorExtensions class.
Показать файл Открыть проект

Открытые методы

Метод Описание
CanGenerateAssert ( this dataContext ) : bool

Determines whether this instance [can generate assert] the specified data context.

CanGenerateClassMember ( [ dataContext, string>.[ parameters ) : bool

Determines whether this instance [can generate class member] the specified data context.

CanGenerateEmptyFile ( [ dataContext, string>.[ parameters ) : bool

Determines whether this instance [can generate empty file] the specified data context.

CanGenerateInsideMethod ( [ dataContext, string>.[ parameters ) : bool

Determines whether [is class member] [the specified data context].

CanGenerateInterfaceMember ( [ dataContext ) : bool

Determines whether this instance [can generate interface member] the specified data context.

CanGenerateInvocation ( [ dataContext, string>.[ parameters, [ statement ) : bool

Determines whether this instance [can generate after invocation] the specified data context.

CanGenerateReturn ( this dataContext ) : bool

Determines whether [is after last statement] [the specified data context].

CanGenerateStructMember ( [ dataContext, string>.[ parameters ) : bool

Determines whether this instance [can generate struct member] the specified data context.

CanGenerateSwitchCase ( [ dataContext ) : bool

Determines whether this instance [can generate switch case] the specified data context.

CanGenerateType ( [ dataContext ) : bool

Determines whether this instance [can generate type] the specified data context.

GetAssignmentExpression ( [ dataContext, string>.Dictionary parameters, [ statement ) : bool

Gets the assignment expression.

GetIterator ( [ dataContext, string>.Dictionary parameters, [ statement ) : bool

Determines whether this instance [can generate iterator] the specified data context.

GetLocalVariableDeclaration ( [ dataContext, string>.Dictionary parameters, [ statement ) : bool

Determines whether this instance [can generate after variable] the specified data context.

Приватные методы

Метод Описание
GetModifier ( ITreeNode treeNode, IClassLikeDeclaration classDeclaration ) : string

Gets the modifier.

GetNextStatement ( [ context ) : IStatement
GetNextStatement ( [ block, [ treeNode ) : IStatement
GetPreviousStatement ( [ context ) : IStatement
GetPreviousStatement ( [ block, [ treeNode ) : IStatement

Описание методов

CanGenerateAssert() публичный статический Метод

Determines whether this instance [can generate assert] the specified data context.
public static CanGenerateAssert ( this dataContext ) : bool
dataContext this The data context.
Результат bool

CanGenerateClassMember() публичный статический Метод

Determines whether this instance [can generate class member] the specified data context.
public static CanGenerateClassMember ( [ dataContext, string>.[ parameters ) : bool
dataContext [ The data context.
parameters string>.[ The parameters.
Результат bool

CanGenerateEmptyFile() публичный статический Метод

Determines whether this instance [can generate empty file] the specified data context.
public static CanGenerateEmptyFile ( [ dataContext, string>.[ parameters ) : bool
dataContext [ The data context.
parameters string>.[ The parameters.
Результат bool

CanGenerateInsideMethod() публичный статический Метод

Determines whether [is class member] [the specified data context].
public static CanGenerateInsideMethod ( [ dataContext, string>.[ parameters ) : bool
dataContext [ The data context.
parameters string>.[ The parameters.
Результат bool

CanGenerateInterfaceMember() публичный статический Метод

Determines whether this instance [can generate interface member] the specified data context.
public static CanGenerateInterfaceMember ( [ dataContext ) : bool
dataContext [ The data context.
Результат bool

CanGenerateInvocation() публичный статический Метод

Determines whether this instance [can generate after invocation] the specified data context.
public static CanGenerateInvocation ( [ dataContext, string>.[ parameters, [ statement ) : bool
dataContext [ The data context.
parameters string>.[ The parameters.
statement [ The statement.
Результат bool

CanGenerateReturn() публичный статический Метод

Determines whether [is after last statement] [the specified data context].
public static CanGenerateReturn ( this dataContext ) : bool
dataContext this The data context.
Результат bool

CanGenerateStructMember() публичный статический Метод

Determines whether this instance [can generate struct member] the specified data context.
public static CanGenerateStructMember ( [ dataContext, string>.[ parameters ) : bool
dataContext [ The data context.
parameters string>.[ The parameters.
Результат bool

CanGenerateSwitchCase() публичный статический Метод

Determines whether this instance [can generate switch case] the specified data context.
public static CanGenerateSwitchCase ( [ dataContext ) : bool
dataContext [ The data context.
Результат bool

CanGenerateType() публичный статический Метод

Determines whether this instance [can generate type] the specified data context.
public static CanGenerateType ( [ dataContext ) : bool
dataContext [ The data context.
Результат bool

GetAssignmentExpression() публичный статический Метод

Gets the assignment expression.
public static GetAssignmentExpression ( [ dataContext, string>.Dictionary parameters, [ statement ) : bool
dataContext [ The data context.
parameters string>.Dictionary The parameters.
statement [ The statement.
Результат bool

GetIterator() публичный статический Метод

Determines whether this instance [can generate iterator] the specified data context.
public static GetIterator ( [ dataContext, string>.Dictionary parameters, [ statement ) : bool
dataContext [ The data context.
parameters string>.Dictionary The parameters.
statement [ The statement.
Результат bool

GetLocalVariableDeclaration() публичный статический Метод

Determines whether this instance [can generate after variable] the specified data context.
public static GetLocalVariableDeclaration ( [ dataContext, string>.Dictionary parameters, [ statement ) : bool
dataContext [ The data context.
parameters string>.Dictionary The parameters.
statement [ The statement.
Результат bool