Commit Graph
82 Commits
Author SHA1 Message Date
Marek Safar d5d4b9c22b Fix some warnings 2012-06-08 12:48:08 +01:00
Miguel de Icaza f48ceb9860 [System] Removal of the NET_2_0 in the source code
Modulo the GUID in the assembly and the GUID embedded in some
field initializers that use the assembly GUID for their name, the
assemblies are idential before and after the patch.
2012-06-02 13:16:40 -04:00
Miguel de Icaza 48292550e8 More NET_2_0 define removal 2011-03-16 21:46:02 -04:00
Gonzalo Paniagua Javier c8928818b7 2009-04-22 Gonzalo Paniagua Javier <[email protected]>
* Microsoft.CSharp/CSharpCodeCompiler.cs:
	* Microsoft.VisualBasic/VBCodeCompiler.cs: better error when there's a
	problem running the specified exec.


svn path=/trunk/mcs/; revision=132387
2009-04-22 18:35:40 +00:00
Gert Driesen 7bf14cac1d * VBCodeGenerator.cs: Fixed generated code for abstract properties.
* CodeGeneratorFromTypeTest.cs: Added tests for static and abstract
property.
* ComponentConverterTests.cs: Allow test to be compiled using csc 1.x.
* ExecutorTest.cs: Use Assert.Ignore when ping is not available.
Avoid using ExpectedException in ExecWait test, and added link to
MS bug report.

svn path=/trunk/mcs/; revision=102229
2008-04-30 18:41:21 +00:00
Rolf Bjarne Kvinge 43532efc76 * Test/Microsoft.VisualBasic/CodeGeneratorFromCompileUnitTest.cs: Added
ExternalSourceTest.
* Microsoft.VisualBasic/VBCodeGenerator.cs: Add quotes around the
  filename in ExternalSource directives.

svn path=/trunk/mcs/; revision=98097
2008-03-12 22:15:02 +00:00
Gert Driesen 04ed5e0ffa * CSharpCodeGenerator.cs: Avoid ArgumentNullException when
CodeDelegateInvokeExpression.TargetObject is null. 
* VBCodeGenerator.cs: In GenerateDelegateInvokeExpression, only emit
RaiseEvent statement on 2.0 profile if TargetObject is a
CodeEventReferenceExpression. Spaces to tabs and code formatting.
* CodeGenerator.cs: Fixed ArgumentException argument names. Indent
expression list.
* CodeGeneratorFromExpressionTest.cs: Copied some tests from VB, and
improved existing tests.
* CodeGeneratorFromExpressionTest.cs: Numbered tests. Fixed test for
DelegateInvokeExpression to pass on MS 2.0 and improved coverage.

svn path=/trunk/mcs/; revision=94055
2008-01-27 16:06:24 +00:00
Gert Driesen b8b445860f * CodeGeneratorFromCompileUnitTest.cs: Avoid using "", and use
Assert instead of Assertion.
* CodeGeneratorFromNamespaceTest.cs: Added tests for type parameters.
* CodeGeneratorFromNamespaceTest.cs: Added tests for type parameters.
* CSharpCodeGenerator.cs: Cosmetic changes to the code emitted for
type constraints. Allows our unit tests to pass on both Mono and MS.
* VBCodeGenerator.cs: Implement support for type parameters.

svn path=/trunk/mcs/; revision=93075
2008-01-16 18:15:25 +00:00
Rolf Bjarne Kvinge 4c1053be1e * Test/Microsoft.CSharp/CodeGeneratorFromTypeTest.cs,
Test/System.CodeDom.Compiler/CodeGeneratorFromTypeTestBase.cs,
  Test/Microsoft.VisualBasic/CodeGeneratorFromTypeTest.cs: Added
  PartialTypeTest.
* Microsoft.VisualBasic/VBCodeGenerator.cs: Split array of keywords in
  two, one for 1.1 and one for 2.0. Add some 2.0 specific keywords.
  When writing a type, escape the name of the type if necessary.
  Output "Partial" if a type is partial.

svn path=/trunk/mcs/; revision=91780
2007-12-21 18:45:39 +00:00
Rolf Bjarne Kvinge 9d750db6cc 2007-12-14 Rolf Bjarne Kvinge <[email protected]>
* VBCodeProvider.cs: Implement constructor added in 2.0SP1.


svn path=/trunk/mcs/; revision=91285
2007-12-14 13:54:23 +00:00
Marek Safar e61dde083e Warnings cleanup
svn path=/trunk/mcs/; revision=89678
2007-11-15 14:14:49 +00:00
Rolf Bjarne Kvinge ce851a5055 * Test/Microsoft.VisualBasic/CodeGeneratorFromExpressionTest.cs: Added
ArrayIndexerExpressionTest.
* Microsoft.VisualBasic/VBCodeGenerator.cs: Fix array indexer
  expressions by don't adding a ".Item" to the array.

svn path=/trunk/mcs/; revision=88446
2007-10-30 11:11:47 +00:00
Rolf Bjarne Kvinge d01dec73ef * VBCodeCompiler.cs: Throw a descriptive exception if we're trying to
compile anything on the 1.0 profile. Correctly parse vbnc error
  messages (and don't return any messages if there weren't any
  errors/warnings). Fixes #81872.

svn path=/trunk/mcs/; revision=80560
2007-06-22 16:10:33 +00:00
Rolf Bjarne Kvinge ed27fbeeb6 2007-05-21 Rolf Bjarne Kvinge <[email protected]>
* VBCodeCompiler.cs: Make sure there are spaces between all options in the command line arguments..


svn path=/trunk/mcs/; revision=77756
2007-05-21 11:48:14 +00:00
Rolf Bjarne Kvinge bc783c6fe6 * VBCodeGenerator.cs: Add support for delegates with parameters, and misc fixes for event handling to match MS.
2007-05-17  Rolf Bjarne Kvinge <[email protected]> 


svn path=/trunk/mcs/; revision=77620
2007-05-18 10:23:38 +00:00
Rolf Bjarne Kvinge 9230c02b2b * VBCodeGenerator.cs: Always create escaped identifiers if the
identifier matches a keyword.

svn path=/trunk/mcs/; revision=77566
2007-05-17 14:57:47 +00:00
Rolf Bjarne Kvinge 3e4a5b5adf 2007-05-08 Rolf Bjarne Kvinge <[email protected]>
* VBCodeGenerator.cs: Don't add newlines when creating array creations expressions, fix the initial size expression and make sure a there's always {} somewhere.


svn path=/trunk/mcs/; revision=76906
2007-05-08 09:02:33 +00:00
Rolf Bjarne Kvinge e718654f36 2007-04-27 Rolf Bjarne Kvinge <[email protected]>
* VBCodeCompiler.cs: In CompileFromFileBatch don't create error messages if compilation succeeded.


svn path=/trunk/mcs/; revision=76374
2007-04-27 08:41:17 +00:00
Rolf Bjarne Kvinge fde2bc21f9 * VBCodeGenerator.cs: Small fix in GenerateBinaryOperatorExpression to always emit the IdentityInequality comparisons with Nothing in the same order (first object, then Nothing).
2007-04-16  Rolf Bjarne Kvinge  <[email protected]>


svn path=/trunk/mcs/; revision=75755
2007-04-16 12:18:01 +00:00
Rolf Bjarne Kvinge 1190ea9b1d 2007-04-16 Rolf Bjarne Kvinge <[email protected]>
* VBCodeCompiler.cs: In CreateErrorFromString don't return null if the message couldn't be parsed. Temporary fix for ASP.Net to show more helpful fail messages. In CompileFromFileBatch don't try to load the assembly if the compilation returned a non-zero exit code.

2007-04-13  Frederik Carlier  <[email protected]>

	* VBCodeGenerator.cs: Added support for the IdentityInequality operator when comparing against Nothing.


svn path=/trunk/mcs/; revision=75746
2007-04-16 09:19:51 +00:00
Rolf Bjarne Kvinge 6f7b35e81d 2007-03-09 Rolf Bjarne Kvinge <[email protected]>
* VBCodeCompiler.cs: Reference Microsoft.VisualBasic.dll and not Microsoft.VisualBasic (patch by Frederik Carlier). 
	Don't set /wlevel, vbnc doesn't support it.


svn path=/trunk/mcs/; revision=73996
2007-03-09 10:12:52 +00:00
Gert Driesen 86edc3c0df * VBCodeProviderTest.cs: Modified tests to also cover fix for bug
#80920. No longer use Assert class in separate AppDomain since it
will only work if nunit.framework assembly is in the GAC.
* CodeGeneratorFromTypeTest.cs: Fixed tests to pass on MS.
* CSharpCodeProviderTest.cs: No longer use Assert class in separate
AppDomain since it will only work if nunit.framework assembly is in
the GAC.
* VBCodeCompiler.cs: Also generate temp filename if OutputAssembly is
zero-length string. Fixed bug #80920 for VB.
* VBCodeGenerator.cs: To match MS, do not emit empty parentheses when
calling base ctor without arguments.

svn path=/trunk/mcs/; revision=73275
2007-02-21 20:08:00 +00:00
Rolf Bjarne Kvinge c516b6ef88 2007-02-20 Rolf Bjarne Kvinge <[email protected]>
* VBCodeCompiler.cs: Replace mbas with vbnc. Don't send '--' to the
	compiler, since vbnc doesn't support it.


svn path=/trunk/mcs/; revision=73150
2007-02-20 09:33:20 +00:00
Miguel de Icaza d8f63090f3 Improve MonoTODOs
svn path=/trunk/mcs/; revision=68541
2006-11-27 23:24:06 +00:00
Gert Driesen ef75d63d41 * CodeGeneratorFromNamespaceTest.cs: Added tests for
GenerateCodeFromNamespace.
* System_test.dll.sources: Added CodeGeneratorFromNamespaceTest.cs from
Microsoft.VisualBasic.
* CodeGenerator.cs: Output empty line between types if
BlankLinesBetweenMembers option is set.
* VBCodeGenerator.cs: Empty line and comments should be output after
namespace imports.
* CodeGeneratorFromNamespaceTest.cs: Added tests for namespace imports
and types.

svn path=/trunk/mcs/; revision=59690
2006-04-20 11:06:27 +00:00
Miguel de Icaza dc0ba0a17c Another build fix
svn path=/trunk/mcs/; revision=59456
2006-04-13 16:17:43 +00:00
Rafael Teixeira 3d1ec5581d 2006-02-14 Rafael Teixeira <[email protected]>
* VBCodeCompiler.cs: 
		use mbas.exe from 1.0 or 2.0, depending on NET_2_0
		BuildArgs()
			copy options.CompilerOptions to the resulting command line  (as pointed by Arnhoffer Károly)	
			use Append instead of AppendFormat when possible
			

svn path=/trunk/mcs/; revision=56849
2006-02-14 11:15:03 +00:00
Gert Driesen 2861448b21 * VBCodeCompiler.cs: Set eol-style to native.
* VBCodeGenerator.cs: Set eol-style to native.
* VBCodeProvider.cs: Set eol-style to native.

svn path=/trunk/mcs/; revision=54033
2005-12-07 13:21:17 +00:00
Gert Driesen c3f574d8f0 * CodeGeneratorFromExpressionTest.cs: Added tests for
CodePrimitiveExpression.
* CSharpCodeGenerator.cs: Override GeneratePrimitiveExpression to
match .NET 1.x and 2.0 for float, decimal, char, ushort, uint, ulong
and sbyte.
* CodeGenerator.cs: Modified GeneratePrimitiveExpression to throw
ArgumentException for sbyte value, use GenerateSingleFloatValue for
float, GenerateDecimalValue for decimal and GenerateDoubleValue for
double. Modified exception message for non-primitive types to match
MS.NET.
* ICodeCompiler.cs: Set eol-style to native.
* CodeCompiler.cs: Set eol-style to native.
* CodeDomConfigurationHandler.cs: Set eol-style to native.
* CodeDomProvider.cs: Set eol-style to native.
* CodeGeneratorOptions.cs: Set eol-style to native.
* CodeParser.cs: Set eol-style to native.
* CompilerError.cs: Set eol-style to native.
* CompilerErrorCollection.cs: Set eol-style to native.
* CompilerInfo.cs: Set eol-style to native.
* CompilerParameters.cs: Set eol-style to native.
* CompilerResults.cs: Set eol-style to native.
* Executor.cs: Set eol-style to native.
* GeneratorSupport.cs: Set eol-style to native.
* ICodeGenerator.cs: Set eol-style to native.
* ICodeParser.cs: Set eol-style to native.
* LanguageOptions.cs: Set eol-style to native.
* TempFileCollection.cs: Set eol-style to native.
* VBCodeGenerator.cs: Modified GeneratePrimitiveExpression to match
.NET 1.x and 2.0 for char, float, ushort, uint, ulong and sbyte.

svn path=/trunk/mcs/; revision=54032
2005-12-07 13:16:31 +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 fe32d6af83 * CodeGeneratorFromExpressionTest.cs: Added test for
CodeParameterDeclarationExpression.
* CodeGeneratorFromTypeTest.cs: Modified tests to check result
for zero-length event, field and parameter name.
* CodeGeneratorFromStatementTest.cs: Added CodeCommentStatement,
CodeThrowExceptionStatement, CodeGotoStatement and
CodeTryCatchFinallyStatement tests.
* CodeGeneratorFromTypeTestBase.cs: Modified GetMethodMembersType3 to
add parameter with no name.
* CodeGeneratorTestBase.cs: Removed Code property, added Generate
overload taking CodeGeneratorOptions, added NewLine property.
* CodeGeneratorCompileUnitTest.cs: Use Generate method instead of
Code property.
* CodeGeneratorFromExpressionTest.cs: Added test for
CodeParameterDeclarationExpression.
* CodeGeneratorFromTypeTest.cs: Added tests for __exception name that
is output for zero-length field, event and parameter name in 2.0
profile.
* CodeGeneratorFromStatementTest.cs: Added.
* CSharpCodeGenerator.cs: Fixed GenerateComment to also write
comment chars for carriage-return (and skip linefeed, if its the
next character). Fixed output for TryCatchFinallyStatement. Fixed
GotoStatement to end with newline.
* VBCodeGenerator.cs: Fixed NullReferenceException if no ToThrow
expression is set for CodeThrowExceptionStatement. Fixed
GenerateComment to output comment chars for carriage-returns and
linefeed characters. Modified code generated for
CodeTryCatchFinallyStatement to match MS.NET. Fixed code generated
for CodeGotoStatement to match MS.NET. On 2.0 profile, output
"__exception" if name is zero-length string in OutputTypeNamePair.

svn path=/trunk/mcs/; revision=53506
2005-11-26 16:23:45 +00:00
Sebastien Pouliot 4f81bd1ced 2005-10-29 Sebastien Pouliot <[email protected]>
* VBCodeProvider.cs: GenerateCodeFromMember method is an override in 
	2.0 final.


svn path=/trunk/mcs/; revision=52377
2005-10-29 13:58:23 +00:00
Gert Driesen 4a813ed0db * CodeGeneratorFromTypeTest.cs: Added tests for CodeEntryPointMethod
and bug #76580.
* CodeGeneratorTestBase.cs: Set eol-style to native.
* CodeGeneratorTest.cs: Set eol-style to native.
* CodeGeneratorFromTypeTestBase.cs: Added tests for
CodeEntryPointMethod and bug #76580. Set eol-style to native.
* IndentedTextWriterTest.cs: Set eol-style to native.
* CodeGeneratorFromTypeTest.cs: Added tests for CodeEntryPointMethod
and bug #76580.
* CSharpCodeGenerator.cs: Use fixed signature for entrypoint method
on 1.0 profile. On 2.0 profile output custom attributes, and return
type. On 1.0 profile, also replace + with dot (for nested types).
Fixes bug #76580. Set eol-style to native.
* CSharpCodeCompiler.cs: Set eol-style to native.
* CSharpCodeProvider.cs: Set eol-style to native.
* VBCodeGenerator.cs: Use fixed signature for entrypoint method.
Only output attributes on 2.0 profile. Replace + with dot in type
name (for nested types). Fixes bug #76580.


svn path=/trunk/mcs/; revision=52344
2005-10-28 18:05:39 +00:00
Gert Driesen f21f4e9ec0 * CodeGeneratorTestBase.cs: Fixed line endings. Set eol-style to
native.
* CodeGeneratorFromCompileUnitTest.cs: Fixed line endings. Set
eol-style to native. Modified test to also check output for
CodeAttributeArgument with no name.
* CodeGeneratorFromNamespaceTest.cs: Fixed line endings. Set eol-style
to native.
* CodeGeneratorIdentifierTest.cs: Set eol-style to native.
* CodeGeneratorFromExpressionTest.cs: Fixed line endings. Set
eol-style to native.
* CSharpCodeProviderTest.cs: Set eol-style to native.
* CodeGeneratorFromTypeTest.cs: Fixed line endings. Set eol-style to
native.
* CodeGeneratorFromStatementTest.cs: Fixed line endings. Set
eol-style to native.
* CodeGeneratorTestBase.cs: Set eol-style to native.
* VBCodeProviderTest.cs: Set eol-style to native.
* CodeGeneratorFromCompileUnitTest.cs: Modified test to check
output for CodeAttributeArgument with no name. Set eol-style to
native.
* CodeGeneratorFromExpressionTest.cs: Set eol-style to native.
* CodeGeneratorFromTypeTest.cs: Fixed line endings. Set eol-style to
native.
* VBCodeGenerator.cs: Do not output name of CodeAttributeArgument if
its a zero-length string.

svn path=/trunk/mcs/; revision=52205
2005-10-25 20:17:22 +00:00
Rafael Teixeira 5d342a7808 2005-10-19 Rafael Teixeira <[email protected]>
* VBCodeGenerator.cs: Generate MyBase.New() with parenthesis as mbas currently chokes without them 
	

svn path=/trunk/mcs/; revision=51915
2005-10-19 15:24:12 +00:00
Sebastien Pouliot 24fe3a198f 2005-10-17 Sebastien Pouliot <[email protected]>
* VBCodeProvider.cs: Added a LinkDemand and an InheritanceDemand
	for FullTrust (i.e. Unrestricted permission set) at the class level.
	Added [Obsolete] on CreateCompiler and CreateGenerator methods (2.0).
	Stubbed new method GenerateCodeFromMember (2.0).


svn path=/trunk/mcs/; revision=51820
2005-10-17 19:21:43 +00:00
Gert Driesen 2ae96ccc57 * CodeGeneratorFromTypeTest.cs: Added NewSlot tests.
* CSharpCodeGenerator.cs: Fixed code generated for NewSlot members.
* CodeGeneratorFromTypeTestBase.cs: Added NewSlot tests.
* CodeGenerator.cs: In OutputMemberScopeModifier, only output "new" modifier 
in 2.0 profile.
* VBCodeGenerator.cs: Fixed code generated for NewSlot members.

svn path=/trunk/mcs/; revision=47859
2005-07-30 16:27:36 +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 a72cae2ddb * CodeGeneratorFromTypeTest.cs: Added test for ReturnTypeCustomAttributes.
* CSharpCodeGenerator.cs: Fixed output of ReturnTypeCustomAttributes.
* VBCodeGenerator.cs: Added support for ReturnTypeCustomAttributes.

svn path=/trunk/mcs/; revision=46950
2005-07-05 15:39:44 +00:00
Gert Driesen 50c1a55a78 * CodeGeneratorFromTypeTest.cs: Added event ImplementationTypes tests. Added
PrivateImplementationType and property and method overload tests. Added 
property indexer tests.
* CodeGeneratorFromTypeTest.cs: Modified test to ensure that scope modifiers 
are not output for events.
* CSharpCodeGenerator.cs: Added PrivateImplementationType support for events,
properties, methods. No longer output scope modifier for events.
* VBCodeGenerator.cs: Scope modifiers should not be output for events.

svn path=/trunk/mcs/; revision=46882
2005-07-02 19:03:58 +00:00
Gert Driesen 8bf9717e8c * CodeGeneratorFromTypeTest.cs: Added PrivateImplementationType tests
for property, event, method. Added Overloads tests for property and
method.
* VBCodeGenerator.cs: Added PrivateImplementationType support for
properties, methods and event (2.0 only). Added Overloads support
for properties and methods.

svn path=/trunk/mcs/; revision=46876
2005-07-02 13:36:00 +00:00
Gert Driesen f5ba0e6653 * CodeGeneratorFromTypeTest.cs: Added tests to ensure ImplementationTypes are
ignored in C# CodeDOM.
* CodeGeneratorFromTypeTest.cs: Added ImplementationTypes tests for
property, event, method, ctor.
* VBCodeGenerator.cs: Added ImplementationTypes support for
properties and events, and fixed support for methods.

svn path=/trunk/mcs/; revision=46840
2005-07-01 16:54:17 +00:00
Gert Driesen b573a24041 * CodeGeneratorFromTypeTest.cs: Added property indexer and parameter tests.
* CSharpCodeGenerator.cs: Only consider property an indexer if name is Item 
(case-insensitive comparison) and property has parameters.
* VBCodeGenerator.cs: Mark indexer as default property.

svn path=/trunk/mcs/; revision=46782
2005-06-30 18:29:13 +00:00
Gert Driesen cef7845778 * CodeGeneratorFromExpressionTest.cs: Added tests for
GenerateCodeFromExpression.
* System_test.dll.sources: Added CodeGeneratorFromExpressionTest.cs
from Microsoft.VisualBasic.
* VBCodeGenerator.cs: Added short type names for which support was
added in .NET 2.0. Added support for Date.

svn path=/trunk/mcs/; revision=46587
2005-06-27 18:47:38 +00:00
Ben Maurer b27c8e1534 remove .cvsignore from everywhere, as it is useless on svn
svn path=/trunk/mcs/; revision=46564
2005-06-27 15:55:58 +00:00
Gert Driesen 5b2475834b * CodeGeneratorFromTypeTest.cs: Make tests pass on MS.NET 1.x and 2.0, and
Mono 1.0/2.0.
* VBCodeGenerator.cs: Minor fixes for compatibility with MS.NET 2.0.

svn path=/trunk/mcs/; revision=46524
2005-06-26 20:53:56 +00:00
Gert Driesen 8d5b262801 * CodeGeneratorFromTypeTest.cs: Added tests for ctor level attributes and
Base/Chained ctor args.
* VBCodeGenerator.cs: Fixed generated code for attributes on ctors.
Implemented Base/Chained ctor args.

svn path=/trunk/mcs/; revision=46517
2005-06-26 11:41:24 +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 49d68a8698 * CodeGeneratorFromTypeTest.cs: Added tests to verify code generated for
field and event members.
* System_test.dll.sources: Added System.CodeDom/CodeMemberFieldTest.cs
* VBCodeGenerator.cs: Removed type shortcuts that are not valid for VB.NET.
Fixed code generator for event and field level attributes. Dont' output
Overridable for events.

svn path=/trunk/mcs/; revision=46503
2005-06-25 19:26:41 +00:00
Gert Driesen d24f54c0d8 * CodeGeneratorFromTypeTest.cs: Added tests to verify code generated for Type
(with or without custom attributes).
* System_test.dll.sources: Added CodeGeneratorFromTypeTest.cs from
Microsoft.VisualBasic
* VBCodeGenerator.cs: Modified code for type-level attributes to match MS.NET.

svn path=/trunk/mcs/; revision=46499
2005-06-25 18:03:40 +00:00