Table of Contents

Class AnnotationExtensions

Namespace
ICSharpCode.Decompiler.CSharp
Assembly
ICSharpCode.Decompiler.dll
public static class AnnotationExtensions
Inheritance
AnnotationExtensions
Inherited Members

Methods

CopyAnnotationsFrom<T>(T, AstNode)

Copies all annotations from other to node.

public static T CopyAnnotationsFrom<T>(this T node, AstNode other) where T : AstNode

Parameters

node T
other AstNode

Returns

T

Type Parameters

T

CopyInstructionsFrom<T>(T, AstNode)

Copies all ILInstruction annotations from other to node.

public static T CopyInstructionsFrom<T>(this T node, AstNode other) where T : AstNode

Parameters

node T
other AstNode

Returns

T

Type Parameters

T

GetILVariable(ForeachStatement)

Retrieves the ILVariable associated with this ForeachStatement, or null if no variable is associated with this foreach statement.

public static ILVariable GetILVariable(this ForeachStatement loop)

Parameters

loop ForeachStatement

Returns

ILVariable

GetILVariable(IdentifierExpression)

Retrieves the ILVariable associated with this IdentifierExpression, or null if no variable is associated with this identifier.

public static ILVariable GetILVariable(this IdentifierExpression expr)

Parameters

expr IdentifierExpression

Returns

ILVariable

GetILVariable(VariableInitializer)

Retrieves the ILVariable associated with this VariableInitializer, or null if no variable is associated with this initializer.

public static ILVariable GetILVariable(this VariableInitializer vi)

Parameters

vi VariableInitializer

Returns

ILVariable

GetResolveResult(AstNode)

Retrieves the ResolveResult associated with this AstNode, or UnknownError if no resolve result is associated with the node.

public static ResolveResult GetResolveResult(this AstNode node)

Parameters

node AstNode

Returns

ResolveResult

GetSymbol(AstNode)

Retrieves the ISymbol associated with this AstNode, or null if no symbol is associated with the node.

public static ISymbol GetSymbol(this AstNode node)

Parameters

node AstNode

Returns

ISymbol

WithILVariable(ForeachStatement, ILVariable)

Adds an ILVariable to this foreach statement.

public static ForeachStatement WithILVariable(this ForeachStatement loop, ILVariable v)

Parameters

loop ForeachStatement
v ILVariable

Returns

ForeachStatement

WithILVariable(VariableInitializer, ILVariable)

Adds an ILVariable to this initializer.

public static VariableInitializer WithILVariable(this VariableInitializer vi, ILVariable v)

Parameters

vi VariableInitializer
v ILVariable

Returns

VariableInitializer