C# Class PredictiveCodeSuggestions.Generators.GeneratorExtensions

Defines the GeneratorExtensions class.
Show file Open project: JakobChristensen/Resharper.PredictiveCodeSuggestions

Public Methods

Method Description
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.

Private Methods

Method Description
GetModifier ( ITreeNode treeNode, IClassLikeDeclaration classDeclaration ) : string

Gets the modifier.

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

Method Details

CanGenerateAssert() public static method

Determines whether this instance [can generate assert] the specified data context.
public static CanGenerateAssert ( this dataContext ) : bool
dataContext this The data context.
return bool

CanGenerateClassMember() public static method

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.
return bool

CanGenerateEmptyFile() public static method

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.
return bool

CanGenerateInsideMethod() public static method

Determines whether [is class member] [the specified data context].
public static CanGenerateInsideMethod ( [ dataContext, string>.[ parameters ) : bool
dataContext [ The data context.
parameters string>.[ The parameters.
return bool

CanGenerateInterfaceMember() public static method

Determines whether this instance [can generate interface member] the specified data context.
public static CanGenerateInterfaceMember ( [ dataContext ) : bool
dataContext [ The data context.
return bool

CanGenerateInvocation() public static method

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.
return bool

CanGenerateReturn() public static method

Determines whether [is after last statement] [the specified data context].
public static CanGenerateReturn ( this dataContext ) : bool
dataContext this The data context.
return bool

CanGenerateStructMember() public static method

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.
return bool

CanGenerateSwitchCase() public static method

Determines whether this instance [can generate switch case] the specified data context.
public static CanGenerateSwitchCase ( [ dataContext ) : bool
dataContext [ The data context.
return bool

CanGenerateType() public static method

Determines whether this instance [can generate type] the specified data context.
public static CanGenerateType ( [ dataContext ) : bool
dataContext [ The data context.
return bool

GetAssignmentExpression() public static method

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.
return bool

GetIterator() public static method

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.
return bool

GetLocalVariableDeclaration() public static method

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.
return bool