Example #1
0
        public override string ToString()
        {
            var s = new StringBuilder();

            s.Append(CommandInfoId.ToString().PadLeft(3));
            s.Append(": ");
            s.AppendLine(AssociatedCommand.ToString());

            s.Append("   LHS ");
            s.Append(LhslValueName);

            if (LhslValueUses.Count > 0)
            {
                s.Append(" Used later at {");

                foreach (var useSt in LhslValueUses)
                {
                    s.Append(useSt.CommandInfoId.ToString()).Append(", ");
                }

                s.Length -= 2;

                s.AppendLine("}");
            }
            else
            {
                s.AppendLine(" not used later");
            }

            if (RhsVariablesInfo.Count > 0)
            {
                foreach (var varInfo in RhsVariablesInfo)
                {
                    s.AppendLine("   " + varInfo);
                }
            }
            else
            {
                s.AppendLine("   No RHS variables");
            }

            return(s.ToString());
        }
Example #2
0
 public override string ToString()
 {
     return(AssociatedCommand.ToString());
 }