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.
* 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
* 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
ExternalSourceTest.
* Microsoft.VisualBasic/VBCodeGenerator.cs: Add quotes around the
filename in ExternalSource directives.
svn path=/trunk/mcs/; revision=98097
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
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
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
ArrayIndexerExpressionTest.
* Microsoft.VisualBasic/VBCodeGenerator.cs: Fix array indexer
expressions by don't adding a ".Item" to the array.
svn path=/trunk/mcs/; revision=88446
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
* 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
* 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
#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
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
* 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
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
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
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
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
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
* 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
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
* CSharpCodeGenerator.cs: Fixed output of ReturnTypeCustomAttributes.
* VBCodeGenerator.cs: Added support for ReturnTypeCustomAttributes.
svn path=/trunk/mcs/; revision=46950
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
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
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
* 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
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
* 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
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
(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