DotNetWebToolkit.Cil2Js.Analysis.StmtCil.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
        public override string ToString() {
            if (this.Insts == null) {
                return "<null>";
            }
            int l = this.Insts.Count();
            if (l == 0) {
                return "<empty>";
            }
            return string.Format("[{0}:{1}]", this.StartStackSize, this.EndStackSize) +
                Environment.NewLine +
                string.Join(Environment.NewLine, this.Insts.Select(x => x.ToString()));
        }

Usage Example

 protected override ICode VisitCil(StmtCil s) {
     this.NewLine();
     this.code.Append("CIL: " + s.ToString());
     this.Visit(s.EndCil);
     return s;
 }