* CodeNamespaceImportCollection.cs: Properly update the internal
keys hashtable when there are changes in the items.
svn path=/trunk/mcs/; revision=144649
* 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
* 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
* Uri.cs: Pragma disable warning 612 (Obsolete methods are being
used by us internally).
Ponder: should we instead move our methods to use new versions of
the Obsoleted ones?
2006-03-11 Miguel de Icaza <[email protected]>
* CodeNamespaceImportCollection.cs: It turns out that a lot of the
errors flagged with "!" were just missing explicit interface
implementations.
Implement.
2006-03-11 Miguel de Icaza <[email protected]>
* CodeDomConfigurationHandler.cs: Comment out unused methods.
* TempFileCollection.cs: Implement explicitly some interface
methods to get rid of the "!" errors on CorCompare.
2006-03-11 Miguel de Icaza <[email protected]>
* Queue.cs: Flag as serializable.
* LinkedList.cs (OnDeserialization): Fix signature.
* SortedList.cs: Implement explicitly a few methods that were
flagged by corcompare.
2006-03-11 Miguel de Icaza <[email protected]>
* IOrderedDictionary.cs: Flag GetEnumerator as a "new" method to
avoid warning.
2006-03-11 Miguel de Icaza <[email protected]>
* ConfigurationSettings.cs (ChangeConfigurationSettings): Make
internal to avoid warnings. This routine is called from
System.Web with MethodInfo.Invoke.
2006-03-11 Miguel de Icaza <[email protected]>
* DeflateStream.cs: Comment out DllImport that was not being
used.
2006-03-11 Miguel de Icaza <[email protected]>
* y
* SerialPort.cs: Remove unused variable (writeBuffer).
* SerialPortStream.cs (Dispose): override, not new.
2006-03-11 Miguel de Icaza <[email protected]>
* WebClient.cs: Only expose the right methods to avoid warnings.
* FtpDataStream.cs (Dispose): Fix signature.
* FtpWebResponse.cs: Comment out keepAlive field (unused, sounds
like we are missing features here).
* IPAddress.cs: Move m_HashCode property to the end, and set
pragmas to disable warnings.
2006-03-11 Miguel de Icaza <[email protected]>
* MailAddress.cs: Comment out unused field to remove warning.
2006-03-11 Miguel de Icaza <[email protected]>
* NetworkChange.cs: Use pragmas to eliminate warnings from events
that we do not trigger yet.
This is a candidate for using Aaron's NetworkManager code. But
would make us depend on d-bus.
* NetworkInformationException.cs: Use error_code for ErrorCode,
instead of NativeErrorCode. Fixes warning.
2006-03-11 Miguel de Icaza <[email protected]>
* AuthenticatedStream.cs: Fixed normative parameter names (yes, we
need to do this everywhere one day).
(Close): actually obey the "leaveInnerStreamOpen" setting from the
constructor.
2006-03-11 Miguel de Icaza <[email protected]>
* NetworkStream.cs (Dispose): Use the right signature depending on
the profile being built.
2006-03-11 Miguel de Icaza <[email protected]>
* X509Chain.cs: Flagged member as internal to avoid unused warning.
* X500DistinguishedName.cs: Comment out unused names and move
temporary unused variables inside the comments that were removed
svn path=/trunk/mcs/; revision=57836
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
* CodeArgumentReferenceExpression.cs: Set eol-style to native.
* CodeParameterDeclarationExpressionCollection.cs: Set eol-style to native.
* CodeRegionMode.cs: Set eol-style to native.
* FieldDirection.cs: Set eol-style to native.
* CodeChecksumPragma.cs: Set eol-style to native.
* CodeCatchClauseCollection.cs: Set eol-style to native.
* CodeAttachEventStatement.cs: Set eol-style to native.
* CodeSnippetCompileUnit.cs: Set eol-style to native.
* CodeNamespace.cs: Set eol-style to native.
* CodePropertySetValueReferenceExpression.cs: Set eol-style to native.
* CodeTypeReference.cs: Set eol-style to native.
* CodeDirectionExpression.cs: Set eol-style to native.
* CodeThisReferenceExpression.cs: Set eol-style to native.
* CodeSnippetStatement.cs: Set eol-style to native.
* CodeMemberMethod.cs: Set eol-style to native.
* CodeMemberProperty.cs: Set eol-style to native.
* CodeEntryPointMethod.cs: Set eol-style to native.
* CodeTypeReferenceOptions.cs: Set eol-style to native.
* CodeIndexerExpression.cs: Set eol-style to native.
* CodeCatchClause.cs: Set eol-style to native.
* CodeStatementCollection.cs: Set eol-style to native.
* CodeRegionDirective.cs: Set eol-style to native.
* CodeTypeParameter.cs: Set eol-style to native.
* CodeIterationStatement.cs: Set eol-style to native.
* CodeRemoveEventStatement.cs: Set eol-style to native.
* CodeVariableReferenceExpression.cs: Set eol-style to native.
* CodeAttributeDeclarationCollection.cs: Set eol-style to native.
* CodeTryCatchFinallyStatement.cs: Set eol-style to native.
* CodeTypeMemberCollection.cs: Set eol-style to native.
* CodeCompileUnit.cs: Set eol-style to native.
* CodePrimitiveExpression.cs: Set eol-style to native.
* CodeDirectiveCollection.cs: Fixed line endings. Set eol-style to native.
* CodeTypeDeclarationCollection.cs: Set eol-style to native.
* CodeNamespaceImportCollection.cs: Set eol-style to native.
* CodeNamespaceCollection.cs: Set eol-style to native.
* CodeTypeMember.cs: Set eol-style to native.
* CodeAttributeDeclaration.cs: Set eol-style to native.
* CodeConditionStatement.cs: Set eol-style to native.
* CodeExpressionCollection.cs: Set eol-style to native.
* CodeTypeReferenceCollection.cs: Set eol-style to native.
* CodeSnippetTypeMember.cs: Set eol-style to native.
* CodeDelegateCreateExpression.cs: Set eol-style to native.
* CodeLinePragma.cs: Set eol-style to native.
* CodeMethodReferenceExpression.cs: Set eol-style to native.
* CodeVariableDeclarationStatement.cs: Set eol-style to native.
* CodeTypeReferenceExpression.cs: Set eol-style to native.
* CodeArrayCreateExpression.cs: Set eol-style to native.
* CodeFieldReferenceExpression.cs: Set eol-style to native.
* CodePropertyReferenceExpression.cs: Set eol-style to native.
* CodeTypeDeclaration.cs: Set eol-style to native.
* CodeTypeConstructor.cs: Set eol-style to native.
* CodeNamespaceImport.cs: Set eol-style to native.
* CodeTypeParameterCollection.cs: Use for loop instead of foreach to add
elements in AddRange method. Fixed line endings. Set eol-style to native.
* CodeTypeParameterCollection.cs: Set eol-style to native.
* CodeExpression.cs: Set eol-style to native.
* CodeBinaryOperatorType.cs: Set eol-style to native.
* CodeSnippetExpression.cs: Set eol-style to native.
* CodeCommentStatementCollection.cs: Set eol-style to native.
* CodeMethodReturnStatement.cs: Set eol-style to native.
* CodeObject.cs: Set eol-style to native.
* CodeParameterDeclarationExpression.cs: Set eol-style to native.
* CodeDelegateInvokeExpression.cs: Set eol-style to native.
* CodeThrowExceptionStatement.cs: Set eol-style to native.
* CodeObjectCreateExpression.cs: Set eol-style to native.
* CodeTypeDelegate.cs: Set eol-style to native.
* CodeLabeledStatement.cs: Set eol-style to native.
* CodeArrayIndexerExpression.cs: Set eol-style to native.
* CodeBinaryOperatorExpression.cs: Set eol-style to native.
* CodeAttributeArgumentCollection.cs: Set eol-style to native.
* MemberAttributes.cs: Set eol-style to native.
* CodeExpressionStatement.cs: Set eol-style to native.
* CodeConstructor.cs: Set eol-style to native.
* CodeTypeOfExpression.cs: Set eol-style to native.
* CodeCommentStatement.cs: Set eol-style to native.
* CodeGotoStatement.cs: Set eol-style to native.
* CodeComment.cs: Set eol-style to native.
* CodeStatement.cs: Set eol-style to native.
* CodeMemberEvent.cs: Set eol-style to native.
* CodeBaseReferenceExpression.cs: Set eol-style to native.
* CodeAssignStatement.cs: Set eol-style to native.
* CodeCastExpression.cs: Set eol-style to native.
* CodeMemberField.cs: Set eol-style to native.
* CodeMethodInvokeExpression.cs: Set eol-style to native.
* CodeDirective.cs: Set eol-style to native.
svn path=/trunk/mcs/; revision=53289
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
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
* 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
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
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
* CodeArgumentReferenceExpression.cs: Added default value for
arameterName.
* CodeArrayCreateExpression.cs: Added default value for createType.
* CodeAttachEventStatement.cs: Added default value for eventRef.
* CodeAttributeArgument.cs: Added default value for name.
* CodeAttributeArgumentCollection.cs: Fixed AddRange methods not to
throw an exception (as the list was being changed when using an
numerator).
* CodeAttributeDeclaration.cs: Added default value for name.
* CodeAttributeDeclarationCollection.cs: Fixed AddRange methods not to
throw an exception (as the list was being changed when using an
numerator).
* CodeCastExpression.cs: Added default value for targetType.
* CodeCatchClause.cs: Added default value for catchExceptionType and
ocalName.
* CodeCatchClauseCollection.cs: Fixed AddRange methods not to throw an
xception (as the list was being changed when using an enumerator).
* CodeCommentStatementCollection.cs: Fixed AddRange methods not to
hrow an exception (as the list was being changed when using an
numerator).
* CodeDelegateCreateExpression.cs: Added default value for
elegateType and methodName.
* CodeEventReferenceExpression.cs: Added default value for eventName.
* CodeExpressionCollection.cs: Fixed AddRange methods not to throw an
xception (as the list was being changed when using an enumerator).
* CodeFieldReferenceExpression.cs: Added default value for fieldName.
* CodeMethodInvokeExpression.cs: Added default value for method.
* CodeMethodReferenceExpression.cs: Added default value for methodName
* CodeNamespace.cs: Added default value for name.
* CodeNamespaceCollection.cs: Fixed AddRange methods not to throw an
xception (as the list was being changed when using an enumerator).
* CodeNamespaceImport.cs: Added default value for nameSpace.
* CodeNamespaceImportCollection.cs: SyncRoot returns null.
* CodeObjectCreateExpression.cs: Added default value for createType.
* CodeParameterDeclarationExpression.cs: Added default value for name
and type.
* CodeParameterDeclarationExpressionCollection.cs: Fixed AddRange
methods not to throw an exception (as the list was being changed when
using an enumerator).
* CodePropertyReferenceExpression.cs: Added default value for
propertyName.
* CodeRemoveEventStatement.cs: Added default value for eventRef.
* CodeSnippetExpression.cs: Added default value for value.
* CodeSnippetStatement.cs: Added default value for value.
* CodeSnippetTypeMember.cs: Added default value for text.
* CodeStatementCollection.cs: Fixed AddRange methods not to throw an
exception (as the list was being changed when using an enumerator).
* CodeTypeDeclarationCollection.cs: Fixed AddRange methods not to
throw an exception (as the list was being changed when using an
enumerator).
* CodeTypeMemberCollection.cs: Fixed AddRange methods not to throw an
exception (as the list was being changed when using an enumerator).
* CodeTypeOfExpression.cs: Added default value for type.
* CodeTypeReferenceCollection.cs: Fixed AddRange methods not to throw
an exception (as the list was being changed when using an enumerator).
* CodeTypeReferenceExpression.cs: Added default value for type.
* CodeVariableDeclarationStatement.cs: Added default value for name
and type.
* CodeVariableReferenceExpression.cs: Added default value for
variableName.
svn path=/trunk/mcs/; revision=52127
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
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
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
* 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
* Microsoft.CSharp/CSharpCodeGenerator.cs:
- fixed support for method references where target
object is null
- fixed CodeThrowExceptionStatement
- disabled member access modifiers for private method
implementations
- disabled generation of empty method body for interface
declarations
- disabled generation of empty property accessor bodies
in interface declarations
- added support for indexers (properties named "Item")
- added support for chained constructor arguments and
base constructor arguments
* System.CodeDom/CodeTypeDeclaration.cs:
- TypeAttributes of CodeTypeDeclaration now defaults to
TypeAttributes.Public (same as MS implementation)
svn path=/trunk/mcs/; revision=17363
* Microsoft.CSharp/CSharpCodeGenerator.cs: implemented
GenerateSnippetMember and some little fixes.
* System.CodeDom/CodeMemberProperty.cs: fixed HasGet and HasSet to
actually generate code for the property.
* System.CodeDom.Compiler/CodeGenerator.cs: more fixes and sorted the
output.
* System.CodeDom.Compiler/IndentedTextWriter.cs: don't output tabs in
WriteLine ().
svn path=/trunk/mcs/; revision=13960
* CodeMethodInvokeExpression.cs : Fix second constructor so that
the last argument is params - that is what the docs say.
svn path=/trunk/mcs/; revision=8176
* FieldDirection.cs: Added so rest of classes would compile.
* CodeTypeMember.cs: Added so rest of classes would compile.
* CodeTypeDeclaration.cs: Added so rest of classes would compile.
* CodeObject.cs: Added so rest of classes would compile.
* CodeBinaryOperatorType.cs: Added so rest of classes would compile.
svn path=/trunk/mcs/; revision=148