C# Class Microsoft.Cci.MutableCodeModel.CapturedParameterAndLocalFinder

A traverser that records all of the parameters and locals that are captured by anoymous delegates and also records the anonymous delegates that do the capturing. Delegates that only capture the "this" argument will have an entry in anonymousDelegatesThatCaptureThis but no entry in anonymousDelegatesThatCaptureLocalsOrParameters.
Inheritance: CodeTraverser
Mostra file Open project: visualmutator/visualmutator Class Usage Examples

Public Methods

Method Description
TraverseChildren ( IAddressableExpression addressableExpression ) : void
TraverseChildren ( IAnonymousDelegate anonymousDelegate ) : void
TraverseChildren ( IBoundExpression boundExpression ) : void
TraverseChildren ( ICatchClause catchClause ) : void
TraverseChildren ( IForEachStatement forEachStatement ) : void
TraverseChildren ( ILocalDeclarationStatement localDeclarationStatement ) : void
TraverseChildren ( ITargetExpression targetExpression ) : void
TraverseChildren ( IThisReference thisReference ) : void

Private Methods

Method Description
CapturedParameterAndLocalFinder ( ) : Microsoft.Cci.MutableCodeModel

A traverser that records all of the parameters and locals that are captured by anoymous delegates and also records the anonymous delegates that do the capturing. Delegates that only capture the "this" argument will have an entry in anonymousDelegatesThatCaptureThis but no entry in anonymousDelegatesThatCaptureLocalsOrParameters.

LookForCapturedDefinition ( object definition ) : void

Method Details

TraverseChildren() public method

public TraverseChildren ( IAddressableExpression addressableExpression ) : void
addressableExpression IAddressableExpression
return void

TraverseChildren() public method

public TraverseChildren ( IAnonymousDelegate anonymousDelegate ) : void
anonymousDelegate IAnonymousDelegate
return void

TraverseChildren() public method

public TraverseChildren ( IBoundExpression boundExpression ) : void
boundExpression IBoundExpression
return void

TraverseChildren() public method

public TraverseChildren ( ICatchClause catchClause ) : void
catchClause ICatchClause
return void

TraverseChildren() public method

public TraverseChildren ( IForEachStatement forEachStatement ) : void
forEachStatement IForEachStatement
return void

TraverseChildren() public method

public TraverseChildren ( ILocalDeclarationStatement localDeclarationStatement ) : void
localDeclarationStatement ILocalDeclarationStatement
return void

TraverseChildren() public method

public TraverseChildren ( ITargetExpression targetExpression ) : void
targetExpression ITargetExpression
return void

TraverseChildren() public method

public TraverseChildren ( IThisReference thisReference ) : void
thisReference IThisReference
return void