Table of Contents

Class SyntaxExtensions

Namespace
ICSharpCode.Decompiler.CSharp.Syntax
Assembly
ICSharpCode.Decompiler.dll

Extension methods for the syntax tree.

public static class SyntaxExtensions
Inheritance
SyntaxExtensions
Inherited Members

Methods

AddNamedArgument(Attribute, string, Expression)

public static void AddNamedArgument(this Attribute attribute, string name, Expression argument)

Parameters

attribute Attribute
name string
argument Expression

Detach<T>(T)

public static T Detach<T>(this T node) where T : AstNode

Parameters

node T

Returns

T

Type Parameters

T

GetNextStatement(Statement)

public static Statement GetNextStatement(this Statement statement)

Parameters

statement Statement

Returns

Statement

IsArgList(AstType)

public static bool IsArgList(this AstType type)

Parameters

type AstType

Returns

bool

IsBitwise(BinaryOperatorType)

Returns true if operatorType is bitwise and, bitwise or, or exclusive or.

public static bool IsBitwise(this BinaryOperatorType operatorType)

Parameters

operatorType BinaryOperatorType

Returns

bool

IsComparisonOperator(OperatorType)

public static bool IsComparisonOperator(this OperatorType operatorType)

Parameters

operatorType OperatorType

Returns

bool

UnwrapInDirectionExpression(Expression)

public static Expression UnwrapInDirectionExpression(this Expression expr)

Parameters

expr Expression

Returns

Expression