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
Attributename
stringargument
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
IsArgList(AstType)
public static bool IsArgList(this AstType type)
Parameters
type
AstType
Returns
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
IsComparisonOperator(OperatorType)
public static bool IsComparisonOperator(this OperatorType operatorType)
Parameters
operatorType
OperatorType
Returns
UnwrapInDirectionExpression(Expression)
public static Expression UnwrapInDirectionExpression(this Expression expr)
Parameters
expr
Expression