Show / Hide Table of Contents

Class VisitorExtensions

Wrapper class for extension methods on the various visitor interfaces.

Inheritance
Object
VisitorExtensions
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Mangrove.MetricSetSyntaxTree.Extensions
Assembly: MetricSetSyntaxTree.dll
Syntax
public static class VisitorExtensions

Methods

View Source

Transform<T>(IGenericExpressionVisitor<T>, Expression)

Reset the visitor, apply it to the given expression, and return the result.

Declaration
public static T Transform<T>(this IGenericExpressionVisitor<T> visitor, Expression expr)
Parameters
Type Name Description
IGenericExpressionVisitor<T> visitor
Expression expr
Returns
Type Description
T
Type Parameters
Name Description
T
View Source

Transform<T>(IGenericTableVisitor<T>, Table)

Reset the visitor, apply it to the given table, and return the result.

Declaration
public static T Transform<T>(this IGenericTableVisitor<T> visitor, Table table)
Parameters
Type Name Description
IGenericTableVisitor<T> visitor
Table table
Returns
Type Description
T
Type Parameters
Name Description
T
View Source

VisitAll(IExpressionVisitor, IEnumerable<Expression>)

Visit each of the given expressions in order.

Declaration
public static void VisitAll(this IExpressionVisitor visitor, IEnumerable<Expression> expressions)
Parameters
Type Name Description
IExpressionVisitor visitor
IEnumerable<Expression> expressions
View Source

VisitAll(ITableVisitor, IEnumerable<Table>)

Visit each of the given tables in order.

Declaration
public static void VisitAll(this ITableVisitor visitor, IEnumerable<Table> tables)
Parameters
Type Name Description
ITableVisitor visitor
IEnumerable<Table> tables
View Source

VisitAll<T>(IGenericExpressionVisitor<T>, IEnumerable<Expression>)

Visit each of the given expressions in order, then return the result.

Declaration
public static T VisitAll<T>(this IGenericExpressionVisitor<T> visitor, IEnumerable<Expression> expressions)
Parameters
Type Name Description
IGenericExpressionVisitor<T> visitor
IEnumerable<Expression> expressions
Returns
Type Description
T

The result from the visitor after visiting all the expressions.

Type Parameters
Name Description
T
View Source

VisitAll<T>(IGenericTableVisitor<T>, IEnumerable<Table>)

Visit each of the given tables in order, then return the result.

Declaration
public static T VisitAll<T>(this IGenericTableVisitor<T> visitor, IEnumerable<Table> tables)
Parameters
Type Name Description
IGenericTableVisitor<T> visitor
IEnumerable<Table> tables
Returns
Type Description
T

The result from the visitor after visiting all the tables.

Type Parameters
Name Description
T
  • View Source
Back to top Generated by DocFX