PostSharp 6.4 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Reflection.​Method­Body Namespace / Method­Body­Formatter Class

MethodBodyFormatter Class

Formats an IMethodBodyElement to a textual representation, for debugging purposes.
Inheritance Hierarchy
System.Object
  PostSharp.Reflection.MethodBody.MethodBodyVisitor
    PostSharp.Reflection.MethodBody.MethodBodyFormatter

Namespace:  PostSharp.Reflection.MethodBody
Assembly:  PostSharp (in PostSharp.dll) Version: 6.4.11.0 (6.4.11.0)
Syntax
C#
public class MethodBodyFormatter : MethodBodyVisitor

The MethodBodyFormatter type exposes the following members.

Constructors
  NameDescription
Public methodMethodBodyFormatter
Initializes a new MethodBodyFormatter.
Methods
  NameDescription
Public methodVisitAddressOfExpression
Visits an expression of type IAddressOfExpression and, recursively, all children elements.
(Inherited from MethodBodyVisitor.)
Public methodVisitBinaryExpression
Visits an expression of type IBinaryExpression and, recursively, all children elements.
(Overrides MethodBodyVisitor.VisitBinaryExpression(IBinaryExpression).)
Public methodVisitBlockExpression
Visits an instruction block and, recursively, all syntax nodes.
(Overrides MethodBodyVisitor.VisitBlockExpression(IBlockExpression).)
Public methodVisitConditionalExpression
Visits an expression of type IUnaryExpression and, recursively, all children elements.
(Overrides MethodBodyVisitor.VisitConditionalExpression(IConditionalExpression).)
Public methodVisitConstantExpression
Visits an expression of type IGotoExpression.
(Overrides MethodBodyVisitor.VisitConstantExpression(IConstantExpression).)
Public methodVisitCopyBufferExpression
Visits an expression of type ICopyBufferExpression and, recursively, all children elements.
(Overrides MethodBodyVisitor.VisitCopyBufferExpression(ICopyBufferExpression).)
Public methodVisitFieldExpression
Visits an expression of type IFieldExpression.
(Overrides MethodBodyVisitor.VisitFieldExpression(IFieldExpression).)
Public methodVisitGotoExpression
Visits an expression of type IGotoExpression.
(Overrides MethodBodyVisitor.VisitGotoExpression(IGotoExpression).)
Public methodVisitInitBufferExpression
Visits an expression of type IInitBufferExpression and, recursively, all children elements.
(Overrides MethodBodyVisitor.VisitInitBufferExpression(IInitBufferExpression).)
Public methodVisitLocalVariable
Visits a local variable definition.
(Inherited from MethodBodyVisitor.)
Public methodVisitMetadataExpression
Visits an expression of type IMetadataExpression.
(Overrides MethodBodyVisitor.VisitMetadataExpression(IMetadataExpression).)
Public methodVisitMethodBody
Visits a method body and, recursively, all syntax nodes.
(Inherited from MethodBodyVisitor.)
Public methodVisitMethodCallExpression
Visits an expression of type IMethodCallExpression and, recursively, all children elements.
(Overrides MethodBodyVisitor.VisitMethodCallExpression(IMethodCallExpression).)
Public methodVisitMethodPointerExpression
Visits an expression of type IMethodPointerExpression and, recursively, all children elements.
(Inherited from MethodBodyVisitor.)
Public methodVisitNewArrayExpression
Visits an expression of type INewArrayExpression and, recursively, all children elements.
(Overrides MethodBodyVisitor.VisitNewArrayExpression(INewArrayExpression).)
Public methodVisitNewObjectExpression
Visits an expression of type INewObjectExpression and, recursively, all children elements.
(Inherited from MethodBodyVisitor.)
Public methodVisitParameterExpression
Visits an expression of type IParameterExpression.
(Overrides MethodBodyVisitor.VisitParameterExpression(IParameterExpression).)
Public methodVisitStatementExpression
Visits an instruction block and, recursively, all syntax nodes.
(Inherited from MethodBodyVisitor.)
Public methodVisitSwitchExpression
Visits an expression of type ISwitchExpression and, recursively, all children elements.
(Overrides MethodBodyVisitor.VisitSwitchExpression(ISwitchExpression).)
Public methodVisitSyntaxElement
Visits a syntax element and, recursively, all children elements.
(Inherited from MethodBodyVisitor.)
Public methodVisitUnaryExpression
Visits an expression of type IUnaryExpression and, recursively, all children elements.
(Overrides MethodBodyVisitor.VisitUnaryExpression(IUnaryExpression).)
Public methodVisitValueOfExpression
Visits an expression of type IValueOfExpression and, recursively, all children elements.
(Inherited from MethodBodyVisitor.)
Public methodVisitVariableExpression
Visits an expression of type ILocalVariableExpression.
(Overrides MethodBodyVisitor.VisitVariableExpression(ILocalVariableExpression).)
Public methodVisitZeroaryExpression
Visits an expression of type IZeroaryExpression.
(Overrides MethodBodyVisitor.VisitZeroaryExpression(IZeroaryExpression).)
See Also