Commit Graph
12 Commits
Author SHA1 Message Date
Marek Safar 81e3a33c79 Write only import section from global namespaces before global attribute sections. Fixes #13523 2013-07-30 20:18:48 +02:00
Miguel de Icaza c8d4b0cbee 2010-03-20 Miguel de Icaza <[email protected]>
* WebConnection.cs: Drop pre-2.0 and pre-1.1 support, and remove
	warnings. 

svn path=/trunk/mcs/; revision=153950
2010-03-20 22:57:49 +00:00
Gonzalo Paniagua Javier c0a0a8adc1 2009-09-30 Gonzalo Paniagua Javier <[email protected]>
* CodeNamespace.cs:
	* CodeTypeReference.cs:
	* CodeMemberMethod.cs:
	* CodeCompileUnit.cs:
	* CodeNamespaceImportCollection.cs:
	* CodeTypeDeclaration.cs: renamed/added fields so that we're
	compatible with MS serialization.


svn path=/trunk/mcs/; revision=143102
2009-10-01 01:43:49 +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
Sebastien Pouliot 899b184bce 2005-10-24 Sebastien Pouliot <[email protected]>
* 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
2005-10-24 14:33:27 +00:00
Ben Maurer 0e8decdb37 remove svn:executable from .cs files
svn path=/trunk/mcs/; revision=46562
2005-06-27 15:51:40 +00:00
Duncan Mak 24f5ef2c44 Add MIT license to System.dll
svn path=/trunk/mcs/; revision=30054
2004-06-21 18:02:11 +00:00
Daniel Stodden 1b4e294c54 big patch:
- System.CodeDom: lotsa corrections
	- System.CodeDom.Compiler: CodeGenerator about 80% complete
	- Microsoft.CSharp: CSharpCodegenerator intro

svn path=/trunk/mcs/; revision=4980
2002-05-28 06:59:57 +00:00
Daniel Stodden d89628eae5 - System.CodeDom review, ns more or less complete now
svn path=/trunk/mcs/; revision=4532
2002-05-11 15:44:41 +00:00
Piers Haken 610d7923ac added missing [Serializable] attribute
svn path=/trunk/mcs/; revision=3540
2002-04-01 20:22:40 +00:00
Sean MacIsaac 7fc6d7d59d Fixed all sorts of compiler errors.
svn path=/trunk/mcs/; revision=124
2001-07-13 22:20:51 +00:00
Miguel de Icaza 848b7aa0f5 Add CodeDom implementation
svn path=/trunk/mcs/; revision=20
2001-06-21 05:17:07 +00:00