Class ControlFlowEdgeAdorner<TInstruction>
- Namespace
- Echo.ControlFlow.Serialization.Dot
- Assembly
- Echo.ControlFlow.dll
Represents an adorner that styles edges in a control flow graph.
public class ControlFlowEdgeAdorner<TInstruction> : IDotEdgeAdorner where TInstruction : notnull
Type Parameters
TInstructionThe type of instructions the nodes contain.
- Inheritance
-
ControlFlowEdgeAdorner<TInstruction>
- Implements
- Inherited Members
Properties
AbnormalStyle
Gets or sets the edge style to use for any abnormal edge.
public DotEntityStyle AbnormalStyle { get; set; }
Property Value
FallthroughStyle
Gets or sets the edge style to use for normal fallthrough edges.
public DotEntityStyle FallthroughStyle { get; set; }
Property Value
FalseStyle
Gets or sets the edge style to use for any fallthrough edge originating from a branching node.
public DotEntityStyle FalseStyle { get; set; }
Property Value
TrueStyle
Gets or sets the edge style to use for any conditional edge.
public DotEntityStyle TrueStyle { get; set; }
Property Value
UnconditionalStyle
Gets or sets the edge style to use for unconditional branch edges.
public DotEntityStyle UnconditionalStyle { get; set; }
Property Value
Methods
GetEdgeAttributes(IEdge, long, long)
Obtains the adornments that should be added to the edge.
public IDictionary<string, string>? GetEdgeAttributes(IEdge edge, long sourceId, long targetId)
Parameters
edgeIEdgeThe edge to adorn.
sourceIdlongThe identifier assigned to the source node.
targetIdlongThe identifier assigned to the target node.
Returns
- IDictionary<string, string>
The adornments.