PostSharpAPI ReferencePost­Sharp.​Reflection.​Method­BodyMethod­Body­VisitorVisit­Syntax­Element
Open sandboxFocus

MethodBodyVisitor.VisitSyntaxElement Method

VisitSyntaxElement(IMethodBodyElement)

Visits a syntax element and, recursively, all children elements.

Declaration
public virtual object VisitSyntaxElement(IMethodBodyElement syntaxElement)
Parameters
Type Name Description
IMethodBodyElement syntaxElement

The element to be visited.

Returns
Type Description
Object

syntaxElement, unless the override returns something else.