private void BuildClassDeclaration(string tcline) { tcline = tcline.Replace(":", " : "); tcline = ReplaceManager.GetSingledSpacedString(tcline); int num = tcline.IndexOf(":"); string text; string text2; if (num > 0) { text = tcline.Substring(0, num - 1); text2 = tcline.Substring(num).Trim(); } else { text = tcline; text2 = ""; } text = ReplaceManager.HandleTypes(text); this.ClassDeclarationToken = text.Trim(); int num2 = this.ClassDeclarationToken.LastIndexOf(" "); this.ClassNameToken = this.ClassDeclarationToken.Substring(num2 + 1); text2 = text2.Replace(":", "").Trim(); if (text2.Length == 0) { return; } string[] array = text2.Split(new char[] { ',' }); for (int i = 0; i < array.Length; i++) { string text3 = array[i].Trim(); string text4 = " Inherits "; if (text3[0] == 'i' || text3[0] == 'I') { text4 = " Implements "; } string implementationDeclationToken = this.ImplementationDeclationToken; this.ImplementationDeclationToken = string.Concat(new string[] { implementationDeclationToken, "\n", '\t'.ToString(), text4, text3 }); } }
public string GetBlock(string tcLine, string tcBlock) { base.GetBlankToken(tcLine); string text = ReplaceManager.GetSingledSpacedString(tcLine); int num = text.LastIndexOf(":"); if (num > 0) { this.EnumReturnValue = "As " + text.Substring(num + 1).Trim(); text = text.Substring(0, num).Trim(); } text = ReplaceManager.HandleTypes(text); num = text.IndexOf(" "); this.EnumName = text.Substring(num + 1); this.EnumDeclarationToken = text.Substring(0, num).Trim(); this.EnumBlock = base.ExtractBlock(tcBlock, "{", "}").Replace(",", "\r\n" + this.BlankToken + "\t"); return(this.Execute()); }