static void GenErrorCopy(@errorcopy e) { if (e.name == null) { return; } cwt.WriteLine("[Error (" + e.number + ")]"); GenClass(NewTypeToCs(ToCs(e.name) + "Error"), null, " : " + ToCs(e.@ref) + "Error"); }
MemberDeclarationSyntax GenErrorCopy(@errorcopy e) { if (e.name == null) { throw new InvalidOperationException("Name cannot be null"); } return (ClassDeclaration(typeMap.NewTypeToCs(GeneratorUtil.ToCs(e.name) + "Error")). AddAttributeLists(BuildSingleAttributeList("Error", e.number)). AddBaseListTypes(SimpleBaseType(IdentifierName(GeneratorUtil.ToCs(e.@ref) + "Error")))); }
static void GenErrorCopy (@errorcopy e) { if (e.name == null) return; cwt.WriteLine ("[Error (" + e.number + ")]"); GenClass (NewTypeToCs (ToCs (e.name) + "Error"), null, " : " + ToCs (e.@ref) + "Error"); }