C# Class Pchp.CodeAnalysis.Semantics.Graph.ControlFlowGraph

Exibir arquivo Open project: iolevel/peachpie Class Usage Examples

Public Methods

Method Description
GetLocalTypeMask ( string varname ) : TypeRefMask

Gets possible types of a local variable.

CFG has to be analysed prior to getting this property.

NewColor ( ) : int

Gets new (unique) color for use by graph algorithms.

Visit ( GraphVisitor visitor ) : void

Visits control flow blocks and contained statements, in deep. Unreachable blocks are not visited.

Visitor does not implement infinite recursion prevention.

Private Methods

Method Description
ControlFlowGraph ( BoundBlock start, BoundBlock exit, BoundBlock exception, LabelBlockState labels, List unreachable ) : Devsense.PHP.Syntax
ControlFlowGraph ( BuilderVisitor builder ) : Devsense.PHP.Syntax
ControlFlowGraph ( IList statements, SemanticsBinder binder, NamingContext naming ) : Devsense.PHP.Syntax

Method Details

GetLocalTypeMask() public method

Gets possible types of a local variable.
CFG has to be analysed prior to getting this property.
public GetLocalTypeMask ( string varname ) : TypeRefMask
varname string
return TypeRefMask

NewColor() public method

Gets new (unique) color for use by graph algorithms.
public NewColor ( ) : int
return int

Visit() public method

Visits control flow blocks and contained statements, in deep. Unreachable blocks are not visited.
Visitor does not implement infinite recursion prevention.
public Visit ( GraphVisitor visitor ) : void
visitor GraphVisitor
return void