internal override void AppendMDX(StringBuilder mdx, Formatter f, int indent, bool comma) { int num = indent; if (this.m_List.Count > 1) { base.AppendCommentAndIndent(mdx, f, indent, comma); num = f.Indent(indent); } else if (comma) { base.AppendCommentAndIndent(mdx, f, indent, comma); } mdx.Append("("); bool flag = true; foreach (object obj2 in this.m_List) { f.AppendCommaAtTheEndOfLine(mdx, !flag); ((MDXNode)obj2).AppendMDX(mdx, f, num, !flag); flag = false; } if (this.m_List.Count > 1) { f.AppendIndent(mdx, indent); } mdx.Append(")"); }
internal override void AppendMDX(StringBuilder mdx, Formatter f, int indent, bool comma) { base.m_Arguments[0].AppendMDX(mdx, f, indent, comma); string str = f.Options.ColorFunctionNames ? f.Keyword(base.m_Function) : base.m_Function; mdx.AppendFormat(".{0}", str); if (base.m_Arguments.Count > 1) { mdx.Append("("); } bool flag = true; bool flag2 = true; foreach (object obj2 in base.m_Arguments) { if (flag) { flag = false; } else { f.AppendCommaAtTheEndOfLine(mdx, !flag2); (obj2 as MDXNode).AppendMDX(mdx, f, indent, !flag2); flag2 = false; } } if (base.m_Arguments.Count > 1) { mdx.Append(")"); } }
internal override void AppendMDX(StringBuilder mdx, Formatter f, int indent, bool comma) { base.AppendCommentAndIndent(mdx, f, indent, comma); int num = f.Indent(indent); if (this.m_List.Count == 1) { string mDX = this.m_List[0].GetMDX(f, -1); if (mDX.Length < 60) { mdx.AppendFormat("{0}{1}{2}", f.OpenBrace(), mDX, f.CloseBrace()); return; } } mdx.Append(f.OpenBrace()); bool flag = true; if (this.m_List != null) { foreach (object obj2 in this.m_List) { f.AppendCommaAtTheEndOfLine(mdx, !flag); ((MDXNode)obj2).AppendMDX(mdx, f, num, !flag); flag = false; } } if (this.m_List.Count != 0) { f.AppendIndent(mdx, indent); } mdx.Append(f.CloseBrace()); }
internal override void AppendMDX(StringBuilder mdx, Formatter f, int indent, bool comma) { base.AppendComment(mdx, f, indent); bool flag = true; foreach (T local in this.m_List) { f.AppendCommaAtTheEndOfLine(mdx, !flag); local.AppendMDX(mdx, f, indent, comma || !flag); flag = false; } }
internal override void AppendMDX(StringBuilder mdx, Formatter f, int indent, bool comma) { base.AppendCommentAndIndent(mdx, f, indent, comma); string str = (base.IsBuiltin && f.Options.ColorFunctionNames) ? f.Keyword(base.m_Function) : base.m_Function; mdx.Append(str); bool flag = false; string mDX = null; if (base.m_Arguments.Count != 0) { if (base.m_Arguments.Count == 1) { mDX = base.m_Arguments[0].GetMDX(f, -1); if ((indent >= 0) && ((mDX.Length + indent) > 70)) { f.AppendIndent(mdx, indent); flag = true; } } else { f.AppendIndent(mdx, indent); flag = true; } } mdx.Append("("); bool flag2 = true; foreach (MDXExpNode node in base.m_Arguments) { f.AppendCommaAtTheEndOfLine(mdx, !flag2); if (base.m_Arguments.Count > 1) { node.AppendMDX(mdx, f, f.Indent(indent), !flag2); } else if (flag) { node.AppendMDX(mdx, f, f.Indent(indent)); } else { mdx.Append(mDX); } flag2 = false; } if (flag) { f.AppendIndent(mdx, indent); } mdx.Append(")"); }
internal override void AppendMDX(StringBuilder mdx, Formatter f, int indent, bool comma) { base.AppendCommentAndIndent(mdx, f, indent, comma); if (!base.m_NewSyntax) { mdx.AppendFormat("{0} {1} {2} {3} ", new object[] { f.Keyword("MEMBER"), base.Name.GetLabel(), f.Keyword("AS"), base.Exp.GetMDX(f, f.Indent(indent)) }); if ((base.CalcProps != null) && (base.CalcProps.Count > 0)) { f.AppendCommaAtTheEndOfLine(mdx, true); base.CalcProps.AppendMDX(mdx, f, f.Indent(indent), true); } } else if ((base.Exp.GetType() == typeof(MDXIDNode)) && (base.Exp as MDXIDNode).GetLabel().Equals("NULL", StringComparison.InvariantCultureIgnoreCase)) { mdx.AppendFormat("{0} ", base.Name.GetLabel()); } else { mdx.AppendFormat("{0} = {1}", base.Name.GetLabel(), base.Exp.GetMDX(f, f.Indent(indent))); } }