https://bugzilla.novell.com/show_bug.cgi?id=660530
https://bugzilla.novell.com/show_bug.cgi?id=660530#c0 Summary: Compiler generated variables are all using the same name Classification: Mono Product: Mono: Compilers Version: SVN Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: C# AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- xMCS generates the same variable name "<$$>" inside foreach loop (and likely other places too). E.g. foreach (AssemblyDefinition assembly in Runner.Assemblies) { foreach (ModuleDefinition module in assembly.Modules) { foreach (TypeDefinition type in module.GetAllTypes ()) { will produce several variables named "<$$>". This seems to comes from: public static LocalVariable CreateCompilerGenerated (TypeSpec type, Block block, Location loc) { LocalVariable li = new LocalVariable (block, "<$$>", Flags.CompilerGenerated | Flags.Used, loc); li.Type = type; return li; } This confuse some Gendarme rules into reporting defects that do not exists. I suspect this can also confuse other tools too (e.g. debugger). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
