C# Class Microsoft.Cci.MutableCodeModel.CodeCopier.CreateMutableType

The best way to dispatch a visit method in code copier is to implement an ICodeVisitor and call the dispatch method of IExpression or IStatement dynamically. This class implements the ICodeVisitor interface for the code copier. After a node is visited, the result is stored in resultExpression or resultStatement.
Inheritance: Microsoft.Cci.BaseCodeVisitor, ICodeVisitor
Afficher le fichier Open project: visualmutator/visualmutator

Méthodes publiques

Méthode Description
Visit ( IAddition addition ) : void

Visits the specified addition.

Visit ( IAddressDereference addressDereference ) : void

Visits the specified address dereference.

Visit ( IAddressOf addressOf ) : void

Visits the specified address of.

Visit ( IAddressableExpression addressableExpression ) : void

Visits the specified addressable expression.

Visit ( IAnonymousDelegate anonymousMethod ) : void

Visits the specified anonymous method.

Visit ( IArrayIndexer arrayIndexer ) : void

Visits the specified array indexer.

Visit ( IAssertStatement assertStatement ) : void

Visits the specified assert statement.

Visit ( IAssignment assignment ) : void

Visits the specified assignment.

Visit ( IAssumeStatement assumeStatement ) : void

Visits the specified assume statement.

Visit ( IBitwiseAnd bitwiseAnd ) : void

Visits the specified bitwise and.

Visit ( IBitwiseOr bitwiseOr ) : void

Visits the specified bitwise or.

Visit ( IBlockExpression blockExpression ) : void

Visits the specified block expression.

Visit ( IBlockStatement block ) : void

Visits the specified block.

Visit ( IBoundExpression boundExpression ) : void

Visits the specified bound expression.

Visit ( IBreakStatement breakStatement ) : void

Visits the specified break statement.

Visit ( ICastIfPossible castIfPossible ) : void

Visits the specified cast if possible.

Visit ( ICheckIfInstance checkIfInstance ) : void

Visits the specified check if instance.

Visit ( ICompileTimeConstant constant ) : void

Visits the specified constant.

Visit ( IConditional conditional ) : void

Visits the specified conditional.

Visit ( IConditionalStatement conditionalStatement ) : void

Visits the specified conditional statement.

Visit ( IContinueStatement continueStatement ) : void

Visits the specified continue statement.

Visit ( IConversion conversion ) : void

Visits the specified conversion.

Visit ( ICopyMemoryStatement copyMemoryStatement ) : void

Performs some computation with the given copy memory statement.

Visit ( ICreateArray createArray ) : void

Visits the specified create array.

Visit ( ICreateDelegateInstance createDelegateInstance ) : void

Visits the specified create delegate instance.

Visit ( ICreateObjectInstance createObjectInstance ) : void

Visits the specified create object instance.

Visit ( IDebuggerBreakStatement debuggerBreakStatement ) : void

Visits the specified debugger break statement.

Visit ( IDefaultValue defaultValue ) : void

Visits the specified default value.

Visit ( IDivision division ) : void

Visits the specified division.

Visit ( IDoUntilStatement doUntilStatement ) : void

Visits the specified do until statement.

Visit ( IDupValue dupValue ) : void

Performs some computation with the given dup value expression.

Visit ( IEmptyStatement emptyStatement ) : void

Visits the specified empty statement.

Visit ( IEquality equality ) : void

Visits the specified equality.

Visit ( IExclusiveOr exclusiveOr ) : void

Visits the specified exclusive or.

Visit ( IExpression expression ) : void

Visits the specified expression.

Visit ( IExpressionStatement expressionStatement ) : void

Visits the specified expression statement.

Visit ( IFillMemoryStatement fillMemoryStatement ) : void

Performs some computation with the given fill memory block statement.

Visit ( IForEachStatement forEachStatement ) : void

Visits the specified for each statement.

Visit ( IForStatement forStatement ) : void

Visits the specified for statement.

Visit ( IGetTypeOfTypedReference getTypeOfTypedReference ) : void

Visits the specified get type of typed reference.

Visit ( IGetValueOfTypedReference getValueOfTypedReference ) : void

Visits the specified get value of typed reference.

Visit ( IGotoStatement gotoStatement ) : void

Visits the specified goto statement.

Visit ( IGotoSwitchCaseStatement gotoSwitchCaseStatement ) : void

Visits the specified goto switch case statement.

Visit ( IGreaterThan greaterThan ) : void

Visits the specified greater than.

Visit ( IGreaterThanOrEqual greaterThanOrEqual ) : void

Visits the specified greater than or equal.

Visit ( ILabeledStatement labeledStatement ) : void

Visits the specified labeled statement.

Visit ( ILeftShift leftShift ) : void

Visits the specified left shift.

Visit ( ILessThan lessThan ) : void

Visits the specified less than.

Visit ( ILessThanOrEqual lessThanOrEqual ) : void

Visits the specified less than or equal.

Visit ( ILocalDeclarationStatement localDeclarationStatement ) : void

Visits the specified local declaration statement.

Visit ( ILockStatement lockStatement ) : void

Visits the specified lock statement.

Visit ( ILogicalNot logicalNot ) : void

Visits the specified logical not.

Visit ( IMakeTypedReference makeTypedReference ) : void

Visits the specified make typed reference.

Visit ( IMethodCall methodCall ) : void

Visits the specified method call.

Visit ( IModulus modulus ) : void

Visits the specified modulus.

Visit ( IMultiplication multiplication ) : void

Visits the specified multiplication.

Visit ( INamedArgument namedArgument ) : void

Visits the specified named argument.

Visit ( INotEquality notEquality ) : void

Visits the specified not equality.

Visit ( IOldValue oldValue ) : void

Visits the specified old value.

Visit ( IOnesComplement onesComplement ) : void

Visits the specified ones complement.

Visit ( IOutArgument outArgument ) : void

Visits the specified out argument.

Visit ( IPointerCall pointerCall ) : void

Visits the specified pointer call.

Visit ( IPopValue popValue ) : void

Performs some computation with the given pop value expression.

Visit ( IPushStatement pushStatement ) : void

Performs some computation with the given push statement.

Visit ( IRefArgument refArgument ) : void

Visits the specified ref argument.

Visit ( IResourceUseStatement resourceUseStatement ) : void

Visits the specified resource use statement.

Visit ( IRethrowStatement rethrowStatement ) : void

Visits the specified rethrow statement.

Visit ( IReturnStatement returnStatement ) : void

Visits the specified return statement.

Visit ( IReturnValue returnValue ) : void

Visits the specified return value.

Visit ( IRightShift rightShift ) : void

Visits the specified right shift.

Visit ( IRuntimeArgumentHandleExpression runtimeArgumentHandleExpression ) : void

Visits the specified runtime argument handle expression.

Visit ( ISizeOf sizeOf ) : void

Visits the specified size of.

Visit ( IStackArrayCreate stackArrayCreate ) : void

Visits the specified stack array create.

Visit ( ISubtraction subtraction ) : void

Visits the specified subtraction.

Visit ( ISwitchStatement switchStatement ) : void

Visits the specified switch statement.

Visit ( ITargetExpression targetExpression ) : void

Visits the specified target expression.

Visit ( IThisReference thisReference ) : void

Visits the specified this reference.

Visit ( IThrowStatement throwStatement ) : void

Visits the specified throw statement.

Visit ( ITokenOf tokenOf ) : void

Visits the specified token of.

Visit ( ITryCatchFinallyStatement tryCatchFilterFinallyStatement ) : void

Visits the specified try catch filter finally statement.

Visit ( ITypeOf typeOf ) : void

Visits the specified type of.

Visit ( IUnaryNegation unaryNegation ) : void

Visits the specified unary negation.

Visit ( IUnaryPlus unaryPlus ) : void

Visits the specified unary plus.

Visit ( IVectorLength vectorLength ) : void

Visits the specified vector length.

Visit ( IWhileDoStatement whileDoStatement ) : void

Visits the specified while do statement.

Visit ( IYieldBreakStatement yieldBreakStatement ) : void

Visits the specified yield break statement.

Visit ( IYieldReturnStatement yieldReturnStatement ) : void

Visits the specified yield return statement.

Private Methods

Méthode Description
CreateMutableType ( CodeCopier codeCopier ) : System

The best way to dispatch a visit method in code copier is to implement an ICodeVisitor and call the dispatch method of IExpression or IStatement dynamically. This class implements the ICodeVisitor interface for the code copier. After a node is visited, the result is stored in resultExpression or resultStatement.

Method Details

Visit() public méthode

Visits the specified addition.
public Visit ( IAddition addition ) : void
addition IAddition The addition.
Résultat void

Visit() public méthode

Visits the specified address dereference.
public Visit ( IAddressDereference addressDereference ) : void
addressDereference IAddressDereference The address dereference.
Résultat void

Visit() public méthode

Visits the specified address of.
public Visit ( IAddressOf addressOf ) : void
addressOf IAddressOf The address of.
Résultat void

Visit() public méthode

Visits the specified addressable expression.
public Visit ( IAddressableExpression addressableExpression ) : void
addressableExpression IAddressableExpression The addressable expression.
Résultat void

Visit() public méthode

Visits the specified anonymous method.
public Visit ( IAnonymousDelegate anonymousMethod ) : void
anonymousMethod IAnonymousDelegate The anonymous method.
Résultat void

Visit() public méthode

Visits the specified array indexer.
public Visit ( IArrayIndexer arrayIndexer ) : void
arrayIndexer IArrayIndexer The array indexer.
Résultat void

Visit() public méthode

Visits the specified assert statement.
public Visit ( IAssertStatement assertStatement ) : void
assertStatement IAssertStatement The assert statement.
Résultat void

Visit() public méthode

Visits the specified assignment.
public Visit ( IAssignment assignment ) : void
assignment IAssignment The assignment.
Résultat void

Visit() public méthode

Visits the specified assume statement.
public Visit ( IAssumeStatement assumeStatement ) : void
assumeStatement IAssumeStatement The assume statement.
Résultat void

Visit() public méthode

Visits the specified bitwise and.
public Visit ( IBitwiseAnd bitwiseAnd ) : void
bitwiseAnd IBitwiseAnd The bitwise and.
Résultat void

Visit() public méthode

Visits the specified bitwise or.
public Visit ( IBitwiseOr bitwiseOr ) : void
bitwiseOr IBitwiseOr The bitwise or.
Résultat void

Visit() public méthode

Visits the specified block expression.
public Visit ( IBlockExpression blockExpression ) : void
blockExpression IBlockExpression The block expression.
Résultat void

Visit() public méthode

Visits the specified block.
public Visit ( IBlockStatement block ) : void
block IBlockStatement The block.
Résultat void

Visit() public méthode

Visits the specified bound expression.
public Visit ( IBoundExpression boundExpression ) : void
boundExpression IBoundExpression The bound expression.
Résultat void

Visit() public méthode

Visits the specified break statement.
public Visit ( IBreakStatement breakStatement ) : void
breakStatement IBreakStatement The break statement.
Résultat void

Visit() public méthode

Visits the specified cast if possible.
public Visit ( ICastIfPossible castIfPossible ) : void
castIfPossible ICastIfPossible The cast if possible.
Résultat void

Visit() public méthode

Visits the specified check if instance.
public Visit ( ICheckIfInstance checkIfInstance ) : void
checkIfInstance ICheckIfInstance The check if instance.
Résultat void

Visit() public méthode

Visits the specified constant.
public Visit ( ICompileTimeConstant constant ) : void
constant ICompileTimeConstant The constant.
Résultat void

Visit() public méthode

Visits the specified conditional.
public Visit ( IConditional conditional ) : void
conditional IConditional The conditional.
Résultat void

Visit() public méthode

Visits the specified conditional statement.
public Visit ( IConditionalStatement conditionalStatement ) : void
conditionalStatement IConditionalStatement The conditional statement.
Résultat void

Visit() public méthode

Visits the specified continue statement.
public Visit ( IContinueStatement continueStatement ) : void
continueStatement IContinueStatement The continue statement.
Résultat void

Visit() public méthode

Visits the specified conversion.
public Visit ( IConversion conversion ) : void
conversion IConversion The conversion.
Résultat void

Visit() public méthode

Performs some computation with the given copy memory statement.
public Visit ( ICopyMemoryStatement copyMemoryStatement ) : void
copyMemoryStatement ICopyMemoryStatement
Résultat void

Visit() public méthode

Visits the specified create array.
public Visit ( ICreateArray createArray ) : void
createArray ICreateArray The create array.
Résultat void

Visit() public méthode

Visits the specified create delegate instance.
public Visit ( ICreateDelegateInstance createDelegateInstance ) : void
createDelegateInstance ICreateDelegateInstance The create delegate instance.
Résultat void

Visit() public méthode

Visits the specified create object instance.
public Visit ( ICreateObjectInstance createObjectInstance ) : void
createObjectInstance ICreateObjectInstance The create object instance.
Résultat void

Visit() public méthode

Visits the specified debugger break statement.
public Visit ( IDebuggerBreakStatement debuggerBreakStatement ) : void
debuggerBreakStatement IDebuggerBreakStatement The debugger break statement.
Résultat void

Visit() public méthode

Visits the specified default value.
public Visit ( IDefaultValue defaultValue ) : void
defaultValue IDefaultValue The default value.
Résultat void

Visit() public méthode

Visits the specified division.
public Visit ( IDivision division ) : void
division IDivision The division.
Résultat void

Visit() public méthode

Visits the specified do until statement.
public Visit ( IDoUntilStatement doUntilStatement ) : void
doUntilStatement IDoUntilStatement The do until statement.
Résultat void

Visit() public méthode

Performs some computation with the given dup value expression.
public Visit ( IDupValue dupValue ) : void
dupValue IDupValue
Résultat void

Visit() public méthode

Visits the specified empty statement.
public Visit ( IEmptyStatement emptyStatement ) : void
emptyStatement IEmptyStatement The empty statement.
Résultat void

Visit() public méthode

Visits the specified equality.
public Visit ( IEquality equality ) : void
equality IEquality The equality.
Résultat void

Visit() public méthode

Visits the specified exclusive or.
public Visit ( IExclusiveOr exclusiveOr ) : void
exclusiveOr IExclusiveOr The exclusive or.
Résultat void

Visit() public méthode

Visits the specified expression.
public Visit ( IExpression expression ) : void
expression IExpression The expression.
Résultat void

Visit() public méthode

Visits the specified expression statement.
public Visit ( IExpressionStatement expressionStatement ) : void
expressionStatement IExpressionStatement The expression statement.
Résultat void

Visit() public méthode

Performs some computation with the given fill memory block statement.
public Visit ( IFillMemoryStatement fillMemoryStatement ) : void
fillMemoryStatement IFillMemoryStatement
Résultat void

Visit() public méthode

Visits the specified for each statement.
public Visit ( IForEachStatement forEachStatement ) : void
forEachStatement IForEachStatement For each statement.
Résultat void

Visit() public méthode

Visits the specified for statement.
public Visit ( IForStatement forStatement ) : void
forStatement IForStatement For statement.
Résultat void

Visit() public méthode

Visits the specified get type of typed reference.
public Visit ( IGetTypeOfTypedReference getTypeOfTypedReference ) : void
getTypeOfTypedReference IGetTypeOfTypedReference The get type of typed reference.
Résultat void

Visit() public méthode

Visits the specified get value of typed reference.
public Visit ( IGetValueOfTypedReference getValueOfTypedReference ) : void
getValueOfTypedReference IGetValueOfTypedReference The get value of typed reference.
Résultat void

Visit() public méthode

Visits the specified goto statement.
public Visit ( IGotoStatement gotoStatement ) : void
gotoStatement IGotoStatement The goto statement.
Résultat void

Visit() public méthode

Visits the specified goto switch case statement.
public Visit ( IGotoSwitchCaseStatement gotoSwitchCaseStatement ) : void
gotoSwitchCaseStatement IGotoSwitchCaseStatement The goto switch case statement.
Résultat void

Visit() public méthode

Visits the specified greater than.
public Visit ( IGreaterThan greaterThan ) : void
greaterThan IGreaterThan The greater than.
Résultat void

Visit() public méthode

Visits the specified greater than or equal.
public Visit ( IGreaterThanOrEqual greaterThanOrEqual ) : void
greaterThanOrEqual IGreaterThanOrEqual The greater than or equal.
Résultat void

Visit() public méthode

Visits the specified labeled statement.
public Visit ( ILabeledStatement labeledStatement ) : void
labeledStatement ILabeledStatement The labeled statement.
Résultat void

Visit() public méthode

Visits the specified left shift.
public Visit ( ILeftShift leftShift ) : void
leftShift ILeftShift The left shift.
Résultat void

Visit() public méthode

Visits the specified less than.
public Visit ( ILessThan lessThan ) : void
lessThan ILessThan The less than.
Résultat void

Visit() public méthode

Visits the specified less than or equal.
public Visit ( ILessThanOrEqual lessThanOrEqual ) : void
lessThanOrEqual ILessThanOrEqual The less than or equal.
Résultat void

Visit() public méthode

Visits the specified local declaration statement.
public Visit ( ILocalDeclarationStatement localDeclarationStatement ) : void
localDeclarationStatement ILocalDeclarationStatement The local declaration statement.
Résultat void

Visit() public méthode

Visits the specified lock statement.
public Visit ( ILockStatement lockStatement ) : void
lockStatement ILockStatement The lock statement.
Résultat void

Visit() public méthode

Visits the specified logical not.
public Visit ( ILogicalNot logicalNot ) : void
logicalNot ILogicalNot The logical not.
Résultat void

Visit() public méthode

Visits the specified make typed reference.
public Visit ( IMakeTypedReference makeTypedReference ) : void
makeTypedReference IMakeTypedReference The make typed reference.
Résultat void

Visit() public méthode

Visits the specified method call.
public Visit ( IMethodCall methodCall ) : void
methodCall IMethodCall The method call.
Résultat void

Visit() public méthode

Visits the specified modulus.
public Visit ( IModulus modulus ) : void
modulus IModulus The modulus.
Résultat void

Visit() public méthode

Visits the specified multiplication.
public Visit ( IMultiplication multiplication ) : void
multiplication IMultiplication The multiplication.
Résultat void

Visit() public méthode

Visits the specified named argument.
public Visit ( INamedArgument namedArgument ) : void
namedArgument INamedArgument The named argument.
Résultat void

Visit() public méthode

Visits the specified not equality.
public Visit ( INotEquality notEquality ) : void
notEquality INotEquality The not equality.
Résultat void

Visit() public méthode

Visits the specified old value.
public Visit ( IOldValue oldValue ) : void
oldValue IOldValue The old value.
Résultat void

Visit() public méthode

Visits the specified ones complement.
public Visit ( IOnesComplement onesComplement ) : void
onesComplement IOnesComplement The ones complement.
Résultat void

Visit() public méthode

Visits the specified out argument.
public Visit ( IOutArgument outArgument ) : void
outArgument IOutArgument The out argument.
Résultat void

Visit() public méthode

Visits the specified pointer call.
public Visit ( IPointerCall pointerCall ) : void
pointerCall IPointerCall The pointer call.
Résultat void

Visit() public méthode

Performs some computation with the given pop value expression.
public Visit ( IPopValue popValue ) : void
popValue IPopValue
Résultat void

Visit() public méthode

Performs some computation with the given push statement.
public Visit ( IPushStatement pushStatement ) : void
pushStatement IPushStatement
Résultat void

Visit() public méthode

Visits the specified ref argument.
public Visit ( IRefArgument refArgument ) : void
refArgument IRefArgument The ref argument.
Résultat void

Visit() public méthode

Visits the specified resource use statement.
public Visit ( IResourceUseStatement resourceUseStatement ) : void
resourceUseStatement IResourceUseStatement The resource use statement.
Résultat void

Visit() public méthode

Visits the specified rethrow statement.
public Visit ( IRethrowStatement rethrowStatement ) : void
rethrowStatement IRethrowStatement The rethrow statement.
Résultat void

Visit() public méthode

Visits the specified return statement.
public Visit ( IReturnStatement returnStatement ) : void
returnStatement IReturnStatement The return statement.
Résultat void

Visit() public méthode

Visits the specified return value.
public Visit ( IReturnValue returnValue ) : void
returnValue IReturnValue The return value.
Résultat void

Visit() public méthode

Visits the specified right shift.
public Visit ( IRightShift rightShift ) : void
rightShift IRightShift The right shift.
Résultat void

Visit() public méthode

Visits the specified runtime argument handle expression.
public Visit ( IRuntimeArgumentHandleExpression runtimeArgumentHandleExpression ) : void
runtimeArgumentHandleExpression IRuntimeArgumentHandleExpression The runtime argument handle expression.
Résultat void

Visit() public méthode

Visits the specified size of.
public Visit ( ISizeOf sizeOf ) : void
sizeOf ISizeOf The size of.
Résultat void

Visit() public méthode

Visits the specified stack array create.
public Visit ( IStackArrayCreate stackArrayCreate ) : void
stackArrayCreate IStackArrayCreate The stack array create.
Résultat void

Visit() public méthode

Visits the specified subtraction.
public Visit ( ISubtraction subtraction ) : void
subtraction ISubtraction The subtraction.
Résultat void

Visit() public méthode

Visits the specified switch statement.
public Visit ( ISwitchStatement switchStatement ) : void
switchStatement ISwitchStatement The switch statement.
Résultat void

Visit() public méthode

Visits the specified target expression.
public Visit ( ITargetExpression targetExpression ) : void
targetExpression ITargetExpression The target expression.
Résultat void

Visit() public méthode

Visits the specified this reference.
public Visit ( IThisReference thisReference ) : void
thisReference IThisReference The this reference.
Résultat void

Visit() public méthode

Visits the specified throw statement.
public Visit ( IThrowStatement throwStatement ) : void
throwStatement IThrowStatement The throw statement.
Résultat void

Visit() public méthode

Visits the specified token of.
public Visit ( ITokenOf tokenOf ) : void
tokenOf ITokenOf The token of.
Résultat void

Visit() public méthode

Visits the specified try catch filter finally statement.
public Visit ( ITryCatchFinallyStatement tryCatchFilterFinallyStatement ) : void
tryCatchFilterFinallyStatement ITryCatchFinallyStatement The try catch filter finally statement.
Résultat void

Visit() public méthode

Visits the specified type of.
public Visit ( ITypeOf typeOf ) : void
typeOf ITypeOf The type of.
Résultat void

Visit() public méthode

Visits the specified unary negation.
public Visit ( IUnaryNegation unaryNegation ) : void
unaryNegation IUnaryNegation The unary negation.
Résultat void

Visit() public méthode

Visits the specified unary plus.
public Visit ( IUnaryPlus unaryPlus ) : void
unaryPlus IUnaryPlus The unary plus.
Résultat void

Visit() public méthode

Visits the specified vector length.
public Visit ( IVectorLength vectorLength ) : void
vectorLength IVectorLength Length of the vector.
Résultat void

Visit() public méthode

Visits the specified while do statement.
public Visit ( IWhileDoStatement whileDoStatement ) : void
whileDoStatement IWhileDoStatement The while do statement.
Résultat void

Visit() public méthode

Visits the specified yield break statement.
public Visit ( IYieldBreakStatement yieldBreakStatement ) : void
yieldBreakStatement IYieldBreakStatement The yield break statement.
Résultat void

Visit() public méthode

Visits the specified yield return statement.
public Visit ( IYieldReturnStatement yieldReturnStatement ) : void
yieldReturnStatement IYieldReturnStatement The yield return statement.
Résultat void