예제 #1
0
        public override bool Equals(object obj)
        {
            if (obj is MonadicDo)
            {
                MonadicDo other = (MonadicDo)obj;
                return(this.codeblock == other.codeblock);
            }

            return(false);
        }
예제 #2
0
        private static string ToDot(string parent, MonadicDo node)
        {
            string name = String.Format("MonadicDo{0}", counter++);

            text.AppendFormat("  subgraph cluster_{0}_block {{ style=dotted; color=black; label=\"Protected Block\";\n", name);
            string codeBlockName = ToDot(name, node.Codeblock);

            text.AppendFormat("  }}\n");

            text.AppendFormat("  {0} [label=\"DO\"];\n", name);
            text.AppendFormat("  {0} -> {1};\n", name, codeBlockName);


            return(name);
        }
예제 #3
0
        private static string ToDot(string parent, MonadicDo node)
        {
            string name = String.Format("MonadicDo{0}", counter++);
            text.AppendFormat("  subgraph cluster_{0}_block {{ style=dotted; color=black; label=\"Protected Block\";\n", name);
            string codeBlockName = ToDot(name, node.Codeblock);
            text.AppendFormat("  }}\n");

            text.AppendFormat("  {0} [label=\"DO\"];\n", name);
            text.AppendFormat("  {0} -> {1};\n", name, codeBlockName);


            return name;
        }