Commit Graph
26 Commits
Author SHA1 Message Date
Marek Habersack 290b8a6b66 2009-08-13 Marek Habersack <[email protected]>
* CodeTypeReferenceTest.cs: added test for bug #523341

2009-08-13  Marek Habersack  <[email protected]>

	* CodeTypeReference.cs: generic types specialized on arrays must
	not be treated as array declarations. Fixes bug #523341

svn path=/trunk/mcs/; revision=139819
2009-08-12 23:50:32 +00:00
Konstantin Triger a1be005ce9 remove TARGET_JVM conditional compilation blocks
svn path=/trunk/mcs/; revision=73675
2007-03-04 12:57:53 +00:00
Ilya Kharmatsky db0224b929 Added 'Ignore' attributes, under TARGET_JVM directive in order to workaround
Grasshopper's bugs.


svn path=/trunk/mcs/; revision=71676
2007-01-25 16:37:25 +00:00
Atsushi Eno 62a6678fad 2007-01-18 Atsushi Enomoto <[email protected]>
* CodeTypeReference.cs :
	  Support generic type definition in .ctor(Type)
	  Handle generic type in straightforward way in .ctor(Type), no need
	  to do ToString() and Parse().
	  Supply "`n" in .ctor(string,params CodeTypeReference[]).

	* CSharpCodeGenerator.cs : for GenericTypeParameter, GetTypeOutput()
	  should just print its name.
	  For generic type definition, print "<>". OutputTypeArguments() was
	  also causing IndexOutOfRangeException.

	* CodeGeneratorFromTypeTestBase.cs :
	  added GenerateGenericCodeTypeReferences() for generic type test.

	* CodeGeneratorFromTypeTest.cs :
	  Added test for generic type references output.

	* CodeTypeReferenceTest.cs :
	  Fixed generic type tests and let them involved in the actual tests.
	  Added some more generic type tests, including generic type
	  definition.


svn path=/trunk/mcs/; revision=71244
2007-01-18 10:23:33 +00:00
Gert Driesen e4e516d410 * CodeGeneratorFromStatementTest.cs: Added tests for
CodeAssignStatement, CodeAttachEventStatement,
CodeConditionStatement, CodeExpressionStatement,
CodeIterationStatement, CodeLabeledStatement,
CodeMethodReturnStatement, CodeRemoveEventStatement,
CodeSnippetStatement, CodeStatement, CodeVariableDeclarationStatement.
* CodeRemoveEventStatementTest.cs: Added tests for ctors.
* IndentedTextWriterTest.cs: Added tests for Indent property.
* CodeGeneratorFromStatementTest.cs: Added tests for
CodeAssignStatement, CodeAttachEventStatement, CodeConditionStatement,
CodeExpressionStatement, CodeIterationStatement,
CodeLabeledStatement, CodeMethodReturnStatement,
CodeRemoveEventStatement and CodeSnippetStatement.
* CSharpCodeGenerator.cs: No longer output semicolon and newline for
CodeVariableDeclarationStatement in for statement, fixes #75292.
Fixed NRE in GenerateEventReferenceExpression. Cosmetic changes to
code generated for iteration to match MS.NET. Temporary reduce
indentation for label and no longer escape label if its a keyword.
* CodeRemoveEventStatement.cs: Event returns new CodeEventReference
if underlying value is null.
* System_test.dll.sources: Added CodeRemoveEventStatementTest.cs from
System.CodeDom.
* CodeGenerator.cs: Corrected line endings. Set eol-style to native.
* IndentedTextWriter.cs: Indent can no longer become negative.
* VBCodeGenerator.cs: Fixed NRE in GenerateEventReferenceExpression,
and escape event name. Indent statements for iteration. Avoid
ArgumentNullException if expression is not set for CodeReturnStatement.
Temporary reduce indentation for label, and fixed ArgumentNullException
if no statement is set. Cosmetic changes to code generated for
condition to match MS.NET. In OutputTypeNamePair, escape name.

svn path=/trunk/mcs/; revision=53703
2005-11-30 18:54:17 +00:00
Gert Driesen e8c67296c0 * CodeParameterDeclarationExpressionCollection.cs: Use CollectionBase
implementation of IList.Remove to handle removal of item from
collection.
* CodeCatchClauseCollection.cs: Same.
* CodeStatementCollection.cs: Same.
* CodeAttributeDeclarationCollection.cs: Same.
* CodeTypeMemberCollection.cs: Same.
* CodeDirectiveCollection.cs: Same.
* CodeTypeDeclarationCollection.cs: Same.
* CodeNamespaceCollection.cs: Same.
* CodeExpressionCollection.cs: Same.
* CodeTypeReferenceCollection.cs: Same.
* CodeTypeParameterCollection.cs: Same.
* CodeCommentStatementCollection.cs: Same.
* CodeAttributeArgumentCollection.cs: Same.
* CodeTypeParameterCollectionTest.cs: Improve coverage of AddRange
test. Added Remove tests.
* CodeParameterDeclarationExpressionCollectionTest.cs: Same.
* CodeCatchClauseCollectionTest.cs: Same.
* CodeStatementCollectionTest.cs: Same.
* CodeTypeMemberCollectionTest.cs: Same.
* CodeExpressionCollectionTest.cs: Same.
* CodeTypeReferenceCollectionTest.cs: Same.
* CodeCommentStatementCollectionTest.cs: Same.
* CodeAttributeArgumentCollectionTest.cs: Same.
* CodeAttributeDeclarationCollectionTest.cs: Same.
* CodeDirectiveCollectionTest.cs: Same.
* CodeTypeDeclarationCollectionTest.cs: Same.
* CodeNamespaceCollectionTest.cs: Same.

svn path=/trunk/mcs/; revision=53293
2005-11-20 18:46:58 +00:00
Gert Driesen 1994a6236a * CodeTypeParameterCollectionTest.cs: Added tests for ctors, and
Add/AddRange/Insert methods.
* CodeCatchClauseCollectionTest.cs: Added tests for ctors, and
Add/AddRange/Insert methods.
* CodeStatementCollectionTest.cs: Added AddRange test for null item.
* CodeTypeMemberCollectionTest.cs: Added tests for ctors, and
Add/AddRange/Insert methods.
* CodeCommentStatementCollectionTest.cs: Added tests for ctors, and
Add/AddRange/Insert methods.
* CodeAttributeArgumentCollectionTest.cs: Added tests for ctors, and
Add/AddRange/Insert methods.
* CodeAttributeDeclarationCollectionTest.cs: Added tests for ctors,
and Add/AddRange/Insert methods.
* CodeDirectiveCollectionTest.cs: Added tests for ctors, and
Add/AddRange/Insert methods.
* CodeTypeDeclarationCollectionTest.cs: Added tests for ctors, and
Add/AddRange/Insert methods.
* CodeNamespaceImportCollectionTest.cs: Added tests for ctor, Add and
AddRange methods.
* CodeNamespaceCollectionTest.cs: Added tests for ctors, and
Add/AddRange/Insert methods.
* CodeCatchClauseCollection.cs: Added null check to AddRange overloads
and use for loop to add elements.
* CodeAttributeDeclarationCollection.cs: Added null check to AddRange
overloads and use for loop to add elements.
* CodeTypeMemberCollection.cs: Added null check to AddRange overloads
and use for loop to add elements.
* CodeTypeDeclarationCollection.cs: Added null check to AddRange
overloads and use for loop to add elements.
* CodeNamespaceImportCollection.cs: Added null check to Add and perform
case-insensitive check on namespace to avoid duplicate namespace
imports. Added null check to AddRange method.
* CodeNamespaceCollection.cs: Added null check to AddRange overloads
and use for loop to add elements.
* CodeCommentStatementCollection.cs: Added null check to AddRange
overloads and use for loop to add elements.
* CodeAttributeArgumentCollection.cs: Added null check to AddRange
overloads and use for loop to add elements.
* CodeDirectiveCollection.cs: Added null check to AddRange overloads
and use for loop to add elements.
* CodeTypeParameterCollection.cs: Added null check to AddRange
overloads and use for loop to add elements.
* System_test.dll.sources: Added CodeNamespaceImportCollectionTest.cs,
CodeNamespaceCollectionTest.cs, CodeTypeDeclarationCollectionTest.cs,
CodeTypeMemberCollectionTest.cs, CodeTypeParameterCollectionTest.cs,
CodeAttributeArgumentCollectionTest.cs, CodeDirectiveCollectionTest.cs,
CodeAttributeDeclarationCollectionTest.cs,
CodeCatchClauseCollectionTest.cs,
CodeCommentStatementCollectionTest.cs.

svn path=/trunk/mcs/; revision=53288
2005-11-20 17:21:40 +00:00
Gert Driesen 79f6e3d086 * CodeExpressionCollectionTest.cs: Fixed test case for AddRange_Self
to really discover regressions.
* CodeStatementCollectionTest.cs: same.
* CodeTypeReferenceCollectionTest.cs: same.

svn path=/trunk/mcs/; revision=52796
2005-11-09 20:40:17 +00:00
Sebastien Pouliot 2d1e4c6038 2005-11-08 Sebastien Pouliot <[email protected]>
* CodeExpressionCollectionTest.cs: Added test case for AddRange(self).
	* CodeStatementCollectionTest.cs: Added test case for AddRange(self).
	* CodeTypeReferenceCollectionTest.cs: Added test case for 
	AddRange(self).


svn path=/trunk/mcs/; revision=52727
2005-11-08 20:27:46 +00:00
Gert Driesen a34e6a2169 * CodeExpressionCollectionTest.cs: Added tests for ctors and AddRange
changes made in r52579.
* CodeParameterDeclarationExpressionCollectionTest.cs: same.
* CodeTypeReferenceCollectionTest.cs: same.
* System_test.dll.sources: Added CodeExpressionCollectionTest.cs,
CodeParameterDeclarationExpressionCollectionTest.cs,
CodeTypeReferenceCollectionTest.cs.

svn path=/trunk/mcs/; revision=52718
2005-11-08 18:57:15 +00:00
Sebastien Pouliot e43a91352a 2005-11-07 Sebastien Pouliot <[email protected]>
*  CodeMethodInvokeExpressionTest.cs: Fixed some failures on 2.0 
	tests.


svn path=/trunk/mcs/; revision=52679
2005-11-08 02:35:30 +00:00
Gert Driesen 553a7f2083 * System_test.dll.sources: Added CodeCastExpressionTest.cs,
CodeCatchClauseTest.cs, CodeChecksumPragmaTest.cs,
CodeConstructorTest.cs, CodeDefaultValueExpressionTest.cs;
CodeDelegateCreateExpressionTest.cs, CodeEventReferenceExpressionTest.cs
CodeGotoStatementTest.cs, CodeLabeledStatementTest.cs,
CodeLinePragmaTest.cs, CodeMemberMethodTest.cs,
CodeMethodInvokeExpressionTest.cs, CodeMethodReferenceExpressionTest.cs,
CodeNamespaceImportTest.cs, CodeNamespaceTest.cs,
CodeObjectCreateExpressionTest.cs,
CodeParameterDeclarationExpressionTest.cs,
CodePropertyReferenceExpressionTest.cs, CodeRegionDirectiveTest.cs,
CodeSnippetCompileUnitTest.cs, CodeSnippetExpressionTest.cs,
CodeSnippetStatementTest.cs, CodeSnippetTypeMemberTest.cs,
CodeStatementCollectionTest.cs, CodeTypeConstructorTest.cs,
CodeTypeParameterTest.cs, CodeTypeOfExpressionTest.cs,
CodeTypeReferenceExpressionTest.cs,
CodeVariableDeclarationStatementTest.cs,
CodeVariableReferenceExpressionTest.cs
* CSharpCodeGenerator.cs: Ignore ChecksumData of CodeChecksumPragma
if null.
* CodeTypeReferenceExpressionTest.cs: Added tests.
* CodeVariableDeclarationStatementTest.cs: Added tests.
* CodePropertyReferenceExpressionTest.cs: Added tests.
* CodeNamespaceImportTest.cs: Added tests.
* CodeTypeConstructorTest.cs: Added tests.
* CodeSnippetExpressionTest.cs: Added tests.
* CodeParameterDeclarationExpressionTest.cs: Added tests.
* CodeObjectCreateExpressionTest.cs: Added tests.
* CodeTypeDelegateTest.cs: Set eol-style to native.
* CodeLabeledStatementTest.cs: Added tests.
* CodeConstructorTest.cs: Added tests.
* CodeTypeOfExpressionTest.cs: Added tests.
* CodeGotoStatementTest.cs: Added tests.
* CodeCastExpressionTest.cs: Added tests.
* CodeMemberFieldTest.cs: Set eol-style to native.
* CodeMethodInvokeExpressionTest.cs: Added tests.
* CodeEventReferenceExpressionTest.cs: Added tests.
* CodeChecksumPragmaTest.cs: Added tests.
* CodeSnippetCompileUnitTest.cs: Added tests.
* CodeNamespaceTest.cs: Added tests.
* CodeSnippetStatementTest.cs: Added tests.
* CodeMemberMethodTest.cs: Added tests.
* CodeMemberPropertyTest.cs: Set eol-style to native.
* CodeCatchClauseTest.cs: Added tests.
* CodeStatementCollectionTest.cs: Added tests.
* CodeRegionDirectiveTest.cs: Added tests.
* CodeTypeParameterTest.cs: Added tests.
* CodeVariableReferenceExpressionTest.cs: Added tests.
* CodeDefaultValueExpressionTest.cs: Added tests.
* CodeSnippetTypeMemberTest.cs: Added tests.
* CodeDelegateCreateExpressionTest.cs: Added tests.
* CodeLinePragmaTest.cs: Added tests.
* CodeMethodReferenceExpressionTest.cs: Added tests.
* CodeEventReferenceExpression.cs: EventName now returns zero-length
string if underlying value is null.
* CodeParameterDeclarationExpressionCollection.cs: Fixed AddRange to
add each item to collection using Add method to ensure validation
is performed.
* CodeChecksumPragma.cs: FileName now returns zero-length string
if underlying value is null.
* CodeSnippetCompileUnit.cs: Value now returns zero-length string if
underlying value is null.
* CodeNamespace.cs: Name now returns zero-length string if underlying
value is null.
* CodeSnippetStatement.cs: Value now returns zero-length string if
underlying value is null.
* CodeMemberMethod.cs: code formatting change.
* CodeCatchClause.cs: CatchExceptionType now returns CodeTypeReference
instance for System.Exception if underlying value is null. LocalName
now returns zero-length string if underlying value is null.
* CodeStatementCollection.cs: Fixed AddRange to add each item to
collection using Add method to ensure validation is performed. Code
formatting changes.
* CodeRegionDirective.cs: RegionText now returns zero-length string
if underlying value is null.
* CodeTypeParameter.cs: Name now returns zero-length string if
underlying value is null.
* CodeVariableReferenceExpression.cs: VariableName now returns
zero-length string if underlying value is null.
* CodeDefaultValueExpression.cs: Type now returns CodeTypeReference
for void if underlying value is null.
* CodeExpressionCollection.cs: Fixed AddRange to add each item to
collection using Add method to ensure validation is performed.
* CodeSnippetTypeMember.cs: Text now returns zero-length string if
underlying value is null.
* CodeTypeReferenceCollection.cs: Fixed AddRange to add each item
to collection using Add method to ensure validation is performed.
* CodeDelegateCreateExpression.cs: DelegateType now returns
CodeTypeReference for void if underlying value is null. MethodName
now returns zero-length string if underlying value is null.
* CodeMethodReferenceExpression.cs: MethodName now returns
zero-length string if underlying value is null.
* CodeLinePragma.cs: FileName now returns zero-length string if
underlying value is null.
* CodeTypeReferenceExpression.cs: Type now return CodeTypeReference
for void if underlying value is null.
* CodeVariableDeclarationStatement.cs: Name now return zero-length
string if underlying value is null. Type returns CodeTypeReference
for void if underlying value is null.
* CodePropertyReferenceExpression.cs: PropertyName now returns
zero-length string if underlying value is null.
* CodeNamespaceImport.cs: Namespace now returns zero-length string
if underlying value is null.
* CodeTypeConstructor.cs: Name is fixed to ".cctor" to match MS.NET.
* CodeSnippetExpression.cs: Value now returns zero-length string if
underlying value is null.
* CodeParameterDeclarationExpression.cs: Name now returns zero-length
string if underlying value is null. Type now returns CodeTypeReference
for void if underlying value is null.
* CodeObjectCreateExpression.cs: CreateType now returns
CodeTypeReference for void if underlying value is null.
* CodeLabeledStatement.cs: Label returns zero-length string if
underlying value is null.
* CodeConstructor.cs: Name is fixed to ".ctor" to match MS.NET.
* CodeTypeOfExpression.cs: Type returns CodeTypeReference for void
if underlying value is null.
* CodeGotoStatement.cs: Only throw ArgumentNullException for null or
zero-length label on 2.0 profile.
* CodeCastExpression.cs: TargetType returns CodeTypeReference for void
if underlying value is null.
* CodeMethodInvokeExpression.cs: Method returns a default
CodeMethodReferenceExpression instance if the underlying value is
null.

svn path=/trunk/mcs/; revision=52579
2005-11-04 16:09:59 +00:00
Gert Driesen 23859c3aa4 * CodeArgumentReferenceExpressionTest.cs: Fixed namespace.
* CodeArrayCreateExpressionTest.cs: Fixed namespace.
* CodeAttachEventStatementTest.cs: Fixed namespace and added tests for
contructors that were not covered.
* CodeAttributeArgumentTest.cs: Fixed namespace.
* CodeAttributeDeclarationTest.cs: Fixed namespace and added tests for
constructors that were not covered.
* CodeAttachEventStatement.cs: Fixed extra removal in r52147.
* CodeAttributeDeclaration.cs: Make sure AttributeType is updated
when Name is set or changed. For constructors taking attribute type,
use BaseType of attribute type as name of CodeAttributeDeclaration.

svn path=/trunk/mcs/; revision=52190
2005-10-25 16:49:00 +00:00
Gert Driesen cdfa103b25 * CodeArgumentReferenceExpressionTest.cs: Added test for default ctor
and default value of ParameterName.
* CodeArrayCreateExpressionTest.cs: Added test for default ctor and
default value of CreateType.
* CodeAttachEventStatementTest.cs: Added test for default ctor and
default value of Event.
* CodeAttributeArgumentTest.cs: Added test for default ctor and default
value of Name.
* CodeAttributeDeclarationTest.cs: Added test for default ctor and
default value of Name.
* System_test.dll.sources: Added CodeArgumentReferenceExceptionTest.cs,
CodeArrayCreateExpressionTest.cs, CodeAttachEventStatementTest.cs,
CodeAttributeArgumentTest.cs, CodeAttributeDeclarationTest.cs.
* CodeArgumentReferenceExpression.cs: If ParameterName is null, return
string.Empty.
* CodeArrayCreateExpression.cs: Implement default value in CreateType
property.
* CodeAttachEventStatement.cs: Implement default value in Event
property.
* CodeAttributeArgument.cs: Implement default value in Name property.
* CodeAttributeDeclaration.cs: Implement default value in Name
property.

svn path=/trunk/mcs/; revision=52147
2005-10-24 20:07:57 +00:00
Gert Driesen 4da2e88823 * CodeTypeReferenceTest.cs: Enabled test case for bug #76535. Added
few additional tests for null or zero length data type of array.
* CodeTypeReference.cs: Ignore ArrayElementType for determining
BaseType if ArrayRank is zero or less. Fixes bug #76535.

svn path=/trunk/mcs/; revision=52130
2005-10-24 15:46:17 +00:00
Sebastien Pouliot 808e72f938 2005-10-24 Sebastien Pouliot <[email protected]>
* CodeTypeReferenceCas.cs: Fixed test cases not to trigger bug or 
	depend on the internal ctor.
	* CodeTypeReferenceTest.cs: Added a test case for bug #76535.


svn path=/trunk/mcs/; revision=52126
2005-10-24 14:20:00 +00:00
Sebastien Pouliot d696ee55ac 2005-10-24 Sebastien Pouliot <[email protected]>
* CodeArgumentReferenceExpressionCas.cs, 
	CodeArrayCreateExpressionCas.cs, CodeArrayIndexerExpressionCas.cs,
	CodeAssignStatementCas.cs, CodeAttachEventStatementCas.cs,
	CodeAttributeArgumentCas.cs, CodeAttributeArgumentCollectionCas.cs,
	CodeAttributeDeclarationCas.cs, 
	CodeAttributeDeclarationCollectionCas.cs, 
	CodeBaseReferenceExpressionCas.cs, CodeBinaryOperatorExpressionCas.cs,
	CodeCastExpressionCas.cs, CodeCatchClauseCas.cs,
	CodeCatchClauseCollectionCas.cs, CodeChecksumPragmaCas.cs,
	CodeCommentStatementCas.cs, CodeCommentStatementCollectionCas.cs,
	CodeCompileUnitCas.cs, CodeConditionStatementCas.cs,
	CodeConstructorCas.cs, CodeDefaultValueExpressionCas.cs,
	CodeDelegateCreateExpressionCas.cs, 
	CodeDelegateInvokeExpressionCas.cs, CodeDirectionExpressionCas.cs,
	CodeDirectiveCas.cs, CodeDirectiveCollectionCas.cs,
	CodeEntryPointMethodCas.cs, CodeEventReferenceExpressionCas.cs,
	CodeExpressionCas.cs, CodeExpressionCollectionCas.cs, 
	CodeExpressionStatementCas.cs, CodeFieldReferenceExpressionCas.cs,
	CodeGotoStatementCas.cs, CodeIndexerExpressionCas.cs,
	CodeIterationStatementCas.cs, CodeLinePragmaCas.cs,
	CodeMemberEventCas.cs, CodeMemberFieldCas.cs, CodeMemberMethodCas.cs,
	CodeMemberPropertyCas.cs, CodeMethodInvokeExpressionCas.cs,
	CodeMethodReferenceExpressionCas.cs, CodeMethodReturnStatementCas.cs,
	CodeNamespaceCas.cs, CodeNamespaceCollectionCas.cs,
	CodeNamespaceImportCas.cs, CodeNamespaceImportCollectionCas.cs,
	CodeObjectCas.cs, CodeObjectCreateExpressionCas.cs,
	CodeParameterDeclarationExpressionCas.cs,
	CodeParameterDeclarationExpressionCollectionCas.cs,
	CodePrimitiveExpressionCas.cs, CodePropertyReferenceExpressionCas.cs,
	CodePropertySetValueReferenceExpressionCas.cs,
	CodeRegionDirectiveCas.cs, CodeRemoveEventStatementCas.cs,
	CodeSnippetCompileUnitCas.cs, CodeSnippetExpressionCas.cs,
	CodeSnippetStatementCas.cs, CodeSnippetTypeMemberCas.cs,
	CodeStatementCas.cs, CodeStatementCollectionCas.cs,
	CodeThisReferenceExpressionCas.cs, CodeThrowExceptionStatementCas.cs,
	CodeTryCatchFinallyStatementCas.cs, CodeTypeConstructorCas.cs,
	CodeTypeDeclarationCas.cs, CodeTypeDeclarationCollectionCas.cs,
	CodeTypeDelegateCas.cs, CodeTypeMemberCas.cs, 
	CodeTypeMemberCollectionCas.cs, CodeTypeOfExpressionCas.cs,
	CodeTypeParameterCas.cs, CodeTypeReferenceCas.cs,
	CodeTypeReferenceCollectionCas.cs, CodeTypeReferenceExpressionCas.cs,
	CodeVariableDeclarationStatementCas.cs,
	CodeVariableReferenceExpressionCas.cs: New. CAS unit tests.


svn path=/trunk/mcs/; revision=52125
2005-10-24 12:52:06 +00:00
Gert Driesen 6f13bef75d * CodeGeneratorTypeOutputTest.cs: Added tests for CSharpCodeGenerator.GetTypeOutput.
* CodeTypeReferenceTest.cs: Added tests for multi-dimensional arrays.
* CSharpCodeGenerator.cs: Fixed supported for type arguments in
GetTypeOutput on 2.0 profile. Partial fix for bug #76286.
* CodeTypeReference.cs: Fixed Parse implementation on 1.0 profile.
Added MonoTODO's.
* System_test.dll.sources: Added CodeGeneratorTypeOutputTest.cs
from Test/Microsoft.CSharp.

svn path=/trunk/mcs/; revision=51378
2005-10-06 22:49:14 +00:00
Gert Driesen 08c37001e2 * CodeTypeReference.cs: Added support for generic type parameters.
* CodeTypeReferenceTest.cs: Added tests for generic types and base
types with generic type parameters.

svn path=/trunk/mcs/; revision=51218
2005-10-04 22:10:57 +00:00
Gert Driesen c886291d70 * CodeTypeReferenceTest.cs: Added tests for CodeTypeParameter ctor,
and string (basetype) ctor.
* CodeTypeReference.cs: Added default ctor for 2.0 profile. Set
Options to CodeReferenceOptions.GenericTypeParameter when instance
is constructed using ctor taking CodeTypeParameter argument. Modified
BaseType property to return BaseType of ArrayElementType if
available. Fixed some bugs in array and typeparameter support.

svn path=/trunk/mcs/; revision=51089
2005-10-02 14:57:07 +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 9db8d8e301 * CodeGeneratorFromExpressionTest.cs: No longer inherit from
CodeGeneratorTestBase. Added tests for CodeTypeReference.
* CodeTypeReferenceTest.cs: Tests for zero-length and null type names,
and null type.
* CodeGeneratorFromExpressionTest.cs: Renumbered tests for
TypeReferenceExpressionTest. Added tests for zero-length or null
type name, and object type.
* CSharpCodeGenerator.cs: Fixed GetTypeOutput to match MS.NET 1.x and 2.0.
* CodeTypeReference.cs: Also consider null type name as void, throw
ArgumentNullException for null type on 2.0 profile.
* System_test.dll.sources: Added CodeTypeReferenceTest.cs from
System.CodeDom.

svn path=/trunk/mcs/; revision=46662
2005-06-28 18:17:53 +00:00
Gert Driesen 430e39b0b8 * CodeMemberPropertyTest.cs: Test for default value of Type property.
* ChangeLog: Set svn:eol-style to native.
* CodeMemberFieldTest.cs: Set svn:eol-style to native.

svn path=/trunk/mcs/; revision=46573
2005-06-27 17:22:21 +00:00
Gert Driesen a420f939be * CodeMemberPropertyTest.cs: Test for default value of Type property.
* CodeGeneratorFromCompileUnitTest.cs: Removed last usage of Assertion class.
* CodeGeneratorFromTypeTest.cs: Added tests for method, property and
parameter level attributes.
* CodeMemberProperty.cs: Default value of Type is empty CodeTypeReference.
* System_test.dll.sources: Added CodeMemberPropertyTest.cs from System.CodeDom.
* VBCodeGenerator.cs: Fixed generated code for method, property and parameter 
level attributes. Fixed code generated for FieldDirection.

svn path=/trunk/mcs/; revision=46516
2005-06-26 08:56:28 +00:00
Gert Driesen 52b569f71a Removed svn:executable property
svn path=/trunk/mcs/; revision=46504
2005-06-25 19:28:52 +00:00
Gert Driesen 4ad874563a * CodeMemberFieldTest.cs: Test for default value of Type attribute.
svn path=/trunk/mcs/; revision=46500
2005-06-25 19:16:31 +00:00