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
Tother
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
Tother
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
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
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
Returns
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
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
WithILVariable(ForeachStatement, ILVariable)
Adds an ILVariable to this foreach statement.
public static ForeachStatement WithILVariable(this ForeachStatement loop, ILVariable v)
Parameters
loop
ForeachStatementv
ILVariable
Returns
WithILVariable(VariableInitializer, ILVariable)
Adds an ILVariable to this initializer.
public static VariableInitializer WithILVariable(this VariableInitializer vi, ILVariable v)