SpookyET noted this strange occurance of generated code, where everything is nested inside of the first if, a bug.
#His boo code
if Verbosity:
if string.Compare(
Verbosity,
'Normal',
StringComparison.InvariantCultureIgnoreCase) == 0:
pass
elif string.Compare(
Verbosity,
'Warning',
StringComparison.InvariantCultureIgnoreCase) == 0:
commandLine.AppendSwitch('-v')
elif string.Compare(
Verbosity,
'Info',
StringComparison.InvariantCultureIgnoreCase) == 0:
commandLine.AppendSwitch('-vv')
elif string.Compare(
Verbosity,
'Verbose',
StringComparison.InvariantCultureIgnoreCase) == 0:
commandLine.AppendSwitch('-vvv')
else:
Log.LogErrorWithCodeFromResources(
'Vbc.EnumParameterHasInvalidValue',
'Verbosity',
Verbosity,
'Normal, Warning, Info, Verbose')
commandLine.AppendFileNamesIfNotNull(Sources, ' ')
#what the compiler generated
if (this.Verbosity != null)
{
if (string.Compare(this.Verbosity, "Normal", StringComparison.InvariantCultureIgnoreCase) != 0)
{
if (string.Compare(this.Verbosity, "Warning", StringComparison.InvariantCultureIgnoreCase) == 0)
{
commandLine.AppendSwitch("-v");
}
else if (string.Compare(this.Verbosity, "Info", StringComparison.InvariantCultureIgnoreCase) == 0)
{
commandLine.AppendSwitch("-vv");
}
else if (string.Compare(this.Verbosity, "Verbose", StringComparison.InvariantCultureIgnoreCase) == 0)
{
commandLine.AppendSwitch("-vvv");
}
else
{
object[] objArray1 = new object[3] { "Verbosity", this.Verbosity, "Normal, Warning, Info, Verbose" } ;
this.Log.LogErrorWithCodeFromResources("Vbc.EnumParameterHasInvalidValue", objArray1);
}
}
commandLine.AppendFileNamesIfNotNull(this.Sources, " ");
}