internal override void WriteString(AstWriter writer) { if(_value is string) writer.WriteLine("\"{0}\"", _value); else writer.WriteLine("{1}, {0}", _value.GetType(), _value.ToString()); }
internal override void WriteString(AstWriter writer) { writer.WriteLine("case "); using(writer.CurlyBraces()) { this.CaseValues.ForAllBetween(cv => cv.WriteString(writer), () => writer.Write(", ")); writer.WriteLine(":"); this.CaseStatementBlock.WriteString(writer); } }
internal override void WriteString(AstWriter writer) { writer.WriteLine("("); using (writer.Indent()) { writer.Write(this.LeftValue); writer.Write(this.Operator); writer.Write(this.RightValue); } writer.WriteLine(")"); }
internal override void WriteString(AstWriter writer) { writer.WriteLine("switch"); using(writer.CurlyBraces()) { this.SwitchExpression.WriteString(writer); this.Cases.ForAllBetween(c => c.WriteString(writer), () => writer.Write("\n")); if(this.DefaultStatementBlock != null) { writer.WriteLine("default:"); this.DefaultStatementBlock.WriteString(writer); } } }
internal override void WriteString(AstWriter writer) { writer.WriteLine("return "); if(this.ReturnExp != null) using(writer.Indent()) writer.Write(this.ReturnExp); }
internal override void WriteString(AstWriter writer) { writer.WriteLine(""); writer.Write("function {0}", this.Name.Text); writer.Write(")"); using(writer.CurlyBraces()) writer.Write(_body); }
internal override void WriteString(AstWriter writer) { writer.WriteLine("if"); using(writer.Parens()) writer.Write(_condition); writer.WriteLine("then"); using(writer.Indent()) writer.Write(_trueStatementBlock); if (_falseStatementBlock != null) { writer.WriteLine("else"); using (writer.CurlyBraces()) writer.Write(_falseStatementBlock); } }
internal override void WriteString(AstWriter writer) { writer.WriteLine("~"); using(writer.CurlyBraces()) _expressionsToWrite.ExecuteOverAll(writer.Write); }
internal override void WriteString(AstWriter writer) { writer.WriteLine("load \"{0}\"", this.AssemblyName); }
internal override void WriteString(AstWriter writer) { writer.WriteLine("use {0}", String.Join(".", this.NamespaceSegments)); }
public BlockTracker(AstWriter writer, string start, string end) { _writer = writer; _end = end; _writer.WriteLine(start); _writer.IndentCount++; }
internal override void WriteString(AstWriter writer) { writer.WriteLine("const null"); }
internal override void WriteString(AstWriter writer) { writer.WriteLine(this.Operation.ToString()); }
internal override void WriteString(AstWriter writer) { writer.WriteLine("verbatim length: {0}, startsAt: ({1})>", _text.Length, this.Location); }
internal override void WriteString(AstWriter writer) { writer.WriteLine("continue"); }
internal override void WriteString(AstWriter writer) { writer.WriteLine("break"); }
internal override void WriteString(AstWriter writer) { writer.WriteLine("[{0}]", this.Identifier.Text); }
internal override void WriteString(AstWriter writer) { writer.WriteLine("call {0} ", this.Identifier.Text); using(writer.Parens()) _arguments.ExecuteOverAll(writer.Write); }
internal override void WriteString(AstWriter writer) { writer.WriteLine("<unexpected token>"); }