MemberDeclarationSyntax GenStruct(@struct s) { if (s.name == null) { return; } //FIXME: just check to see if it contains complex (list etc.) values instead of this basic = !(s.name.EndsWith("Rep") || s.name.EndsWith("Req") || s.name == "DEPTH" || s.name == "SCREEN" || s.name == "STR" || s.name == "HOST"); GenClass(cwt, typeMap.NewTypeToCs(s.name), s.Items); basic = false; }
static void GenStruct(@struct s) { if (s.name == null) { return; } //FIXME: just check to see if it contains complex (list etc.) values instead of this basic = true; if (s.name.EndsWith("Rep")) { basic = false; } if (s.name.EndsWith("Req")) { basic = false; } if (s.name == "DEPTH") { basic = false; } if (s.name == "SCREEN") { basic = false; } if (s.name == "STR") { basic = false; } if (s.name == "HOST") { basic = false; } GenClass(NewTypeToCs(s.name), s.Items); basic = false; }