Exemple #1
0
        private GraphBlock CreateBlockAfter(GraphBlock before, string name)
        {
            var block = new GraphBlock(name);

            before.ConnectTo(block);
            return(block);
        }
Exemple #2
0
        public GraphBlock BuildCall(JToken node, GraphBlock current)
        {
            current.AddNode(node);

            foreach (var e in _exceptionHandlers.Last())
            {
                current.ConnectTo(e);
            }

            return(CreateBlockAfter(current, "next_to_call"));
        }
Exemple #3
0
        public GraphBlock BuildRaise(JToken node, GraphBlock current)
        {
            current.AddNode(node);
            foreach (var e in _exceptionHandlers.Last())
            {
                current.ConnectTo(e);
            }

            current.Exited = true;

            return(current);
        }
Exemple #4
0
 private void Exit(GraphBlock current)
 {
     current.ConnectTo(_exit);
     current.Exited = true;
 }