Commit Graph
3 Commits
Author SHA1 Message Date
Miguel de Icaza 56f425ec1e 2007-03-05 Peter Dettman <[email protected]>
* Codegenerator.cs: I noticed an `unreachable code' warning while
	building Mono:

	System.CodeDom.Compiler/CodeGenerator.cs(1229,42): warning CS0162:
	Unreachable code detected

	This turned out to be in the method
	CodeGenerator.IsValidLanguageIndependentIdentifier, which was
	broken.

	The following patch contains a unit test to demonstrate the
	problem (checked against MS.NET), and a fix to CodeGenerator.cs.

svn path=/trunk/mcs/; revision=73782
2007-03-06 04:59:30 +00:00
Gert Driesen cafc6003d6 * CodeGeneratorFromTypeTest.cs: Added BaseTypes and TypeConstructor
tests. Added enum, interface and delegate tests.
* CodeTypeDelegateTest.cs: Added tests for BaseTypes and ReturnType.
* CodeGeneratorTest.cs: Removed duplicate import of NUNit.Framework namespace.
* CodeGeneratorFromTypeTestBase.cs: Added BaseTypes and TypeConstructor tests.
* CodeGeneratorFromTypeTest.cs: Added BaseTypes and TypeConstructor
tests. Enabled enum, interface and delegate tests.
* CSharpCodeGenerator.cs: Fixed generated code for enums, interfaces
and delegates to match MS.NET.
* CodeTypeReference.cs: Added internal IsInterface property.
* CodeTypeDelegate.cs: System.Delegate is base type, and make sure
ReturnType is initialized.
* System_test.dll.sources: Added CodeTypeDelegateTest.cs from System.CodeDom.
* CodeGenerator.cs: Threat delegates like any other type.
* VBCodeGenerator.cs: Fixed generated code for enums, interfaces and
delegates to match MS.NET.

svn path=/trunk/mcs/; revision=47604
2005-07-24 12:19:26 +00:00
Gert Driesen 16b04eb9a6 * CodeGeneratorTest.cs: Added unit tests for CodeGenerator.IsCurrent*.
* System_test.dll.sources: Added CodeGeneratorTest.cs from 
System.CodeDom.Compiler.
* CodeGenerator.cs: Fixed IsCurrentClass to return false for delegate.

svn path=/trunk/mcs/; revision=47500
2005-07-21 09:33:05 +00:00