Esempio n. 1
0
        internal static ControlFlowGraph GetControlFlowGraph(IOperation operation, Func <IOperation, ControlFlowGraph> getControlFlowGraphOpt, CancellationToken cancellationToken)
        {
            IOperation rootOperation = operation.GetRootOperation();

            return(getControlFlowGraphOpt != null?
                   getControlFlowGraphOpt(rootOperation) :
                       ControlFlowGraph.CreateCore(rootOperation, nameof(rootOperation), cancellationToken));
        }