PostSharp4.3/API Reference/Post­Sharp.​Reflection.​Syntax Namespace/Syntax­Tree­Formatter Class
SyntaxTreeFormatter Class
Formats an ISyntaxElement to a textual representation, for debugging purposes.
Inheritance Hierarchy
System.Object
  PostSharp.Reflection.Syntax.SyntaxTreeVisitor
    PostSharp.Reflection.Syntax.SyntaxTreeFormatter

Namespace: PostSharp.Reflection.Syntax
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.48.0 (4.3.48.0)
Syntax
C#
public class SyntaxTreeFormatter : SyntaxTreeVisitor

The SyntaxTreeFormatter type exposes the following members.

Constructors
  NameDescription
Public methodSyntaxTreeFormatter
Initializes a new SyntaxTreeFormatter.
Methods
  NameDescription
Public methodVisitAddressOfExpression
Visits an expression of type IAddressOfExpression and, recursively, all children elements.
(Inherited from SyntaxTreeVisitor.)
Public methodVisitBinaryExpression
Visits an expression of type IBinaryExpression and, recursively, all children elements.
(Overrides SyntaxTreeVisitor.VisitBinaryExpression(IBinaryExpression).)
Public methodVisitBlockExpression
Visits an instruction block and, recursively, all syntax nodes.
(Overrides SyntaxTreeVisitor.VisitBlockExpression(IBlockExpression).)
Public methodVisitConditionalExpression
Visits an expression of type IUnaryExpression and, recursively, all children elements.
(Overrides SyntaxTreeVisitor.VisitConditionalExpression(IConditionalExpression).)
Public methodVisitConstantExpression
Visits an expression of type IGotoExpression.
(Overrides SyntaxTreeVisitor.VisitConstantExpression(IConstantExpression).)
Public methodVisitCopyBufferExpression
Visits an expression of type ICopyBufferExpression and, recursively, all children elements.
(Overrides SyntaxTreeVisitor.VisitCopyBufferExpression(ICopyBufferExpression).)
Public methodVisitExceptionHandler
Visits an exception handler and, recursively, the HandlerBlock and FilterBlock (if any).
(Overrides SyntaxTreeVisitor.VisitExceptionHandler(ISyntaxExceptionHandler).)
Public methodVisitFieldExpression
Visits an expression of type IFieldExpression.
(Overrides SyntaxTreeVisitor.VisitFieldExpression(IFieldExpression).)
Public methodVisitGotoExpression
Visits an expression of type IGotoExpression.
(Overrides SyntaxTreeVisitor.VisitGotoExpression(IGotoExpression).)
Public methodVisitInitBufferExpression
Visits an expression of type IInitBufferExpression and, recursively, all children elements.
(Overrides SyntaxTreeVisitor.VisitInitBufferExpression(IInitBufferExpression).)
Public methodVisitLocalVariable
Visits a local variable definition.
(Inherited from SyntaxTreeVisitor.)
Public methodVisitMetadataExpression
Visits an expression of type IMetadataExpression.
(Overrides SyntaxTreeVisitor.VisitMetadataExpression(IMetadataExpression).)
Public methodVisitMethodBody
Visits a method body and, recursively, all syntax nodes.
(Inherited from SyntaxTreeVisitor.)
Public methodVisitMethodCallExpression
Visits an expression of type IMethodCallExpression and, recursively, all children elements.
(Overrides SyntaxTreeVisitor.VisitMethodCallExpression(IMethodCallExpression).)
Public methodVisitMethodPointerExpression
Visits an expression of type IMethodPointerExpression and, recursively, all children elements.
(Inherited from SyntaxTreeVisitor.)
Public methodVisitNewArrayExpression
Visits an expression of type INewArrayExpression and, recursively, all children elements.
(Overrides SyntaxTreeVisitor.VisitNewArrayExpression(INewArrayExpression).)
Public methodVisitNewObjectExpression
Visits an expression of type INewObjectExpression and, recursively, all children elements.
(Inherited from SyntaxTreeVisitor.)
Public methodVisitParameterExpression
Visits an expression of type IParameterExpression.
(Overrides SyntaxTreeVisitor.VisitParameterExpression(IParameterExpression).)
Public methodVisitStatementExpression
Visits an instruction block and, recursively, all syntax nodes.
(Inherited from SyntaxTreeVisitor.)
Public methodVisitSwitchExpression
Visits an expression of type ISwitchExpression and, recursively, all children elements.
(Overrides SyntaxTreeVisitor.VisitSwitchExpression(ISwitchExpression).)
Public methodVisitSyntaxElement
Visits a syntax element and, recursively, all children elements.
(Inherited from SyntaxTreeVisitor.)
Public methodVisitUnaryExpression
Visits an expression of type IUnaryExpression and, recursively, all children elements.
(Overrides SyntaxTreeVisitor.VisitUnaryExpression(IUnaryExpression).)
Public methodVisitValueOfExpression
Visits an expression of type IValueOfExpression and, recursively, all children elements.
(Inherited from SyntaxTreeVisitor.)
Public methodVisitVariableExpression
Visits an expression of type ILocalVariableExpression.
(Overrides SyntaxTreeVisitor.VisitVariableExpression(ILocalVariableExpression).)
Public methodVisitZeroaryExpression
Visits an expression of type IZeroaryExpression.
(Overrides SyntaxTreeVisitor.VisitZeroaryExpression(IZeroaryExpression).)
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also