Commit Graph
78 Commits
Author SHA1 Message Date
Jonathan Pryor 3a3269001b * System.CodeDom.Compiler/CodeGenerator.cs: Clear out the current member
when beginning Type generation.  This prevents "invalid" 
	  `#endregion`s; if the CodeGenerator instance is reused for multiple 
	  types, the last member of the first type has an EndDirective, then 
	  the EndDirectvies will be generated before any members of the 2nd 
	  type.  Don't do that.
	* Test/System.CodeDom.Compiler/CodeGeneratorTest.cs: Add some testing 
	  for CodeRegionDirectives.

svn path=/trunk/mcs/; revision=155321
2010-04-13 18:48:04 +00:00
Jb Evain b97703b3c5 2010-04-07 Jb Evain <[email protected]>
* Executor.cs: make class static.


svn path=/trunk/mcs/; revision=154953
2010-04-07 13:32:15 +00:00
Jb Evain 48c0c9ee3b 2010-04-01 Jb Evain <[email protected]>
* CodeDomProvider.cs, CompilerInfo.cs: add .net 4.0 overloads.


svn path=/trunk/mcs/; revision=154649
2010-04-01 15:47:55 +00:00
Marek Habersack c6c642eec3 commit 9405fa168b1255c51bb31ef17511c05593b08caa
Author: Marek Habersack <[email protected]>
Date:   Sat Mar 6 03:37:53 2010 +0100

    2010-03-06  Marek Habersack  <[email protected]>

    	* CompilerCollection.cs: in the 4.0 profile, the latest C#
    	standard is the compiler's default.

    2010-03-06  Marek Habersack  <[email protected]>

    	* CSharpCodeCompiler.cs: in the 4.0 profile, the latest C#
    	standard is the default one.

    2010-03-06  Marek Habersack  <[email protected]>

    	* RequestValidatorTestGenerated.cs: added

    	* RequestValidator.cs: added

    2010-03-06  Marek Habersack  <[email protected]>

    	* TestWorkerRequest.cs: added overloads of GetRawUrl and
    	GetUriPath which make sure that the returned paths do not contain
    	more than one leading / character.

    	* TestRunItem.cs: added new TestRunData property - to contain
    	per-appdomain test run data.

    	* TestCallback.cs: added a TestRunItem parameter.

    	* StandaloneTest.cs: runner object is created for each test item
    	now.
    	Added test progress feedback.

    	* ITestRunner.cs: added two properties, TestRunData - to return
    	collected test result data, if any, and Domain which returns the
    	current AppDomain.

    2010-03-06  Marek Habersack  <[email protected]>

    	* RequestValidatorTest.cs: added

    2010-03-06  Marek Habersack  <[email protected]>

    	* HttpRequest.cs: cache RawUrl value.
    	Added new internal property, PathNoValidation, which returns
    	request path without validating it.
    	Implemented 4.0 extensible validation.

    	* HttpApplication.cs: Pipeline () validates the request path, if
    	new validation mode is enabled, before doing anything else.
    	Added a generic LoadType overload which checks whether the loaded
    	type, if any, derives from the type specified in the method's
    	specialization.

    2010-03-06  Marek Habersack  <[email protected]>

    	* RequestValidator.cs: added

    	* RequestValidationSource.cs: added

    2010-03-06  Marek Habersack  <[email protected]>

    	* WebConfigurationManager.cs: do not use Request.Path - it may
    	fail because of invalid web.config file, use
    	Request.PathNoValidation instead.

    	* VersionConverter.cs: added

    	* PropertyHelper.cs: added a Version converter helper.

    	* HttpRuntimeSection.cs: added 4.0 properties -
    	RequestPathInvalidCharacters, RequestValidationType and
    	RequestValidationMode.

svn path=/trunk/mcs/; revision=153172
2010-03-06 02:48:31 +00:00
Marek Habersack e7f4c49538 2008-10-09 Marek Habersack <[email protected]>
* CompilerCollection.cs: use all the compiler information from
	config file when adding new CompilerInfo. Fixes bug #433802

svn path=/trunk/mcs/; revision=115329
2008-10-09 11:51:09 +00:00
Marek Habersack 93b63dd25d 2008-02-26 Marek Habersack <[email protected]>
* CSharpCodeCompiler.cs: CompilerResults.Output can now be set
	internally.
2008-02-26  Marek Habersack  <[email protected]>

	* CompilerResults.cs: Output can be set internally.

svn path=/trunk/mcs/; revision=96615
2008-02-26 10:19:42 +00:00
Juraj Skripsky 9b56a80c04 2008-02-10 Juraj Skripsky <[email protected]>
* System.dll.sources: Added ICodeDomVisitor.cs.

2008-02-10  Juraj Skripsky  <[email protected]>

	* CodeObject.cs: Add empty Visit method implementation.
	
	* CodeArgumentReferenceExpression.cs, CodeArrayCreateExpression.cs,
	CodeArrayIndexerExpression.cs, CodeAssignStatement.cs,
	CodeAttachEventStatement.cs, CodeBaseReferenceExpression.cs,
	CodeBinaryOperatorExpression.cs, CodeCastExpression.cs,
	CodeCommentStatement.cs, CodeConditionStatement.cs,
	CodeConstructor.cs, CodeDefaultValueExpression.cs,
	CodeDelegateCreateExpression.cs, CodeDelegateInvokeExpression.cs,
	CodeDirectionExpression.cs, CodeEntryPointMethod.cs,
	CodeEventReferenceExpression.cs, CodeExpressionStatement.cs,
	CodeFieldReferenceExpression.cs, CodeGotoStatement.cs,
	CodeIndexerExpression.cs, CodeIterationStatement.cs,
	CodeLabeledStatement.cs, CodeMemberEvent.cs,
	CodeMemberField.cs, CodeMemberMethod.cs,
	CodeMemberProperty.cs, CodeMethodInvokeExpression.cs,
	CodeMethodReferenceExpression.cs, CodeMethodReturnStatement.cs,
	CodeObjectCreateExpression.cs, CodeParameterDeclarationExpression.cs,
	CodePrimitiveExpression.cs, CodePropertyReferenceExpression.cs,
	CodePropertySetValueReferenceExpression.cs, CodeRemoveEventStatement.cs, 
	CodeSnippetExpression.cs, CodeSnippetTypeMember.cs,
	CodeThisReferenceExpression.cs, CodeThrowExceptionStatement.cs,
	CodeTryCatchFinallyStatement.cs, CodeTypeConstructor.cs,
	CodeTypeOfExpression.cs, CodeTypeReferenceExpression.cs,
	CodeVariableDeclarationStatement.cs, CodeVariableReferenceExpression.cs:
	Add Visit method implementation.

2008-02-10  Juraj Skripsky  <[email protected]>

	* CodeGenerator.cs: Mark CurrentClass internal for NET_1_1.
	Add nested Visitor class and member. 
	GenerateExpression, GenerateStatement, GenerateType: Use visitor.
	GeneratePrimitiveExpression: Replace if-else chain with switch
	on TypeCode.


svn path=/trunk/mcs/; revision=95401
2008-02-10 20:01:25 +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
Marek Habersack f3e716d95e 2007-12-15 Marek Habersack <[email protected]>
* System.dll.sources: added
	System.CodeDom.Compiler/CompilerProviderOption.cs and
	System.CodeDom.Compiler/CompilerProviderOptionsCollection.cs
2007-12-15  Marek Habersack  <[email protected]>

	* CSharpCodeProvider.cs: added support for the 2.0sp1 constructor
	which takes a Dictionary <string, string> parameter with compiler
	provider options. If any options are present, the
	generator/compiler are created using appropriate constructor
	overload.

	* CSharpCodeGenerator.cs: added support for the 2.0sp1 constructor
	which takes a Dictionary <string, string> parameter with compiler
	provider options.

	* CSharpCodeCompiler.cs: added support for the 2.0sp1 constructor
	which takes a Dictionary <string, string> parameter with compiler
	provider options. The "CompilerVersion" option is supported, with
	possible values "2.0" (currently maps to -langversion:Default) and
	"3.5" (currently maps to -langversion:linq).
2007-12-15  Marek Habersack  <[email protected]>

	* Compiler.cs: added support for the default collection of
	<providerOption> child elements and corresponding public
	properties (ProviderOptions and ProviderOptionsDictionary).

	* CompilerInfo.cs: added ProviderOptions dictionary, to hold
	values from the <providerOption> collection of the
	system.codeDom/compilers/compiler/ element.
	CodeDomProviderType throws an exception if the provider type
	cannot be found, as per MSDN.
	CreateProvider uses the new provider constructor which takes
	provider options dictionary as its parameter, if found in the
	provider type.

	* CompilerCollection.cs: compiler defaults are initialized using
	the provider options dictionary, with one option present -
	"CompilerVersion" set to "2.0".
	Two dictionaries to map languages and extensions to compiler
	information objects added.

	* CompilerProviderOption.cs: added - implements the
	<providerOption> element.

	* CompilerProviderOptionsCollection.cs: added - implements
	collection for the 2.0sp1 <providerOption> child element of the
	system.codeDom/compilers/compiler element.


svn path=/trunk/mcs/; revision=91337
2007-12-15 01:46:04 +00:00
Miguel de Icaza 56f425ec1e 2007-03-05 Peter Dettman <[email protected]>
* Codegenerator.cs: I noticed an `unreachable code' warning while
	building Mono:

	System.CodeDom.Compiler/CodeGenerator.cs(1229,42): warning CS0162:
	Unreachable code detected

	This turned out to be in the method
	CodeGenerator.IsValidLanguageIndependentIdentifier, which was
	broken.

	The following patch contains a unit test to demonstrate the
	problem (checked against MS.NET), and a fix to CodeGenerator.cs.

svn path=/trunk/mcs/; revision=73782
2007-03-06 04:59:30 +00:00
Marek Habersack 7e8cda0259 Be case-insensitive when looking up compilers
svn path=/trunk/mcs/; revision=73327
2007-02-22 16:54:03 +00:00
Miguel de Icaza e2e780cbc8 2007-01-22 Miguel de Icaza <[email protected]>
* CodeDomProvider.cs: Prevent Moma from getting confused.

svn path=/trunk/mcs/; revision=71455
2007-01-22 19:55:12 +00:00
Atsushi Eno 2a32cf13f8 2006-11-17 Atsushi Enomoto <[email protected]>
* TempFileCollection.cs : make it work under non-libc environment.


svn path=/trunk/mcs/; revision=68053
2006-11-17 09:19:49 +00:00
Marek Habersack 5af811cddc CompilerCollection must use a List to store the compiler infos because MS.NET allows storing multiple entries for the same language
svn path=/trunk/mcs/; revision=68039
2006-11-16 22:53:10 +00:00
Marek Habersack ff553f3300 Reimplementation of the CodeDomConfigurationHandler class as a ConfigurationSection. It now provides default compiler entries a'la MS.NET
svn path=/trunk/mcs/; revision=67961
2006-11-16 00:13:33 +00:00
Marek Habersack 12270df7fe A default value of WarningLevel change and implementation of a missing API
svn path=/trunk/mcs/; revision=67454
2006-11-07 13:57:10 +00:00
Marek Habersack cca23190ec two small fixes for the handling of compiler definitions in the system.codedom section
svn path=/trunk/mcs/; revision=67401
2006-11-06 11:47:30 +00:00
Lluis Sanchez 1095b452d1 2006-09-15 LLuis Sanchez Gual <[email protected]>
* TempFileCollection.cs: Create files in a temporary subdirectory,
	for security reasons.
	* CodeCompiler.cs: Let TempFileCollection choose the temp dir.


svn path=/trunk/mcs/; revision=65441
2006-09-15 09:32:42 +00:00
Lluis Sanchez c259dff81d 2006-05-04 LLuis Sanchez Gual <[email protected]>
* TempFileCollection.cs: Make sure generated file names
	  are unique. Fixes bug #76125 and #78230.


svn path=/trunk/mcs/; revision=60253
2006-05-04 12:03:35 +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
Chris Toshok 9a12e2a666 2006-03-24 Chris Toshok <[email protected]>
* CompilerInfo.cs (Init): make this internal as well, so
	CodeDomConfigurationHandler can call it.

	* CodeDomConfigurationHandler.cs (ReadCompilers): we need to call
	CompilerInfo.Init after setting CompilerInfo.TypeName.


svn path=/trunk/mcs/; revision=58509
2006-03-24 23:57:42 +00:00
Miguel de Icaza a5bd130af9 2006-03-11 Miguel de Icaza <[email protected]>
* 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
2006-03-11 19:07:56 +00:00
Zoltan Varga b0de6b315c 2006-02-19 Zoltan Varga <[email protected]>
* CodeDomProvider.cs: Fix the [ToolboxItem] attribute. Fixes #77513.

svn path=/trunk/mcs/; revision=57052
2006-02-19 18:09:33 +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
Sebastien Pouliot f0b8c46803 oops forgot to save the ChangeLog before committing...
svn path=/trunk/mcs/; revision=52590
2005-11-04 18:46:14 +00:00
Sebastien Pouliot ec1dca6f61 2005-11-02 Sebastien Pouliot <[email protected]>
* Executor.cs: Reworked (for permissions) and fixed ExitCode (must be 
	called before Close).


svn path=/trunk/mcs/; revision=52477
2005-11-02 16:17:52 +00:00
Sebastien Pouliot aa31ebd7da 2005-11-01 Sebastien Pouliot <[email protected]>
* CodeGenerator.cs: Added/stubbed missing 2.0 stuff.


svn path=/trunk/mcs/; revision=52457
2005-11-01 20:06:17 +00:00
Sebastien Pouliot 6051cfedb5 2005-11-01 Sebastien Pouliot <[email protected]>
CodeDomProvider.cs: Added missing 2.0 methods. Added CAS permissions.
	Added protection against NullReferenceException when no config is
	available.


svn path=/trunk/mcs/; revision=52446
2005-11-01 15:27:56 +00:00
Sebastien Pouliot 9f47927748 2005-10-29 Sebastien Pouliot <[email protected]>
CodeDomProvider.cs: Stubbed a few 2.0 methods to fix API errors in 
	derived classes.


svn path=/trunk/mcs/; revision=52376
2005-10-29 13:56:34 +00:00
Sebastien Pouliot 490fcf25a6 2005-10-25 Sebastien Pouliot <[email protected]>
* CompilerError.cs: Added LinkDemand for Unrestricted before 2.0.
	* CompilerErrorCollection.cs: Added LinkDemand for Unrestricted before
	2.0.


svn path=/trunk/mcs/; revision=52195
2005-10-25 18:06:07 +00:00
Sebastien Pouliot b1e7b9d210 2005-10-25 Sebastien Pouliot <[email protected]>
* CodeGenerator.cs: Fixed OutputAttributeArgument not to assume the
	default value is null (it's String.Empty).


svn path=/trunk/mcs/; revision=52185
2005-10-25 15:51:22 +00:00
Sebastien Pouliot 5ac70cd072 2005-10-25 Sebastien Pouliot <[email protected]>
* CompilerParameters.cs: Added [ComVisible(false)] on the new (2.0)
	EmbeddedResources and LinkedResources properties.
	* TempFileCollection.cs: Changed BasePath property to use Path.
	GetTempPath (Environment check) and added the PathDiscovery check on
	the combined result. Fixed TempDir so it's value never change (i.e. 
	imply that it doesn't need any permissions). Fixed SyncRoot to always 
	return null.


svn path=/trunk/mcs/; revision=52181
2005-10-25 14:31:18 +00:00
Sebastien Pouliot b8cacc11d6 2005-10-24 Sebastien Pouliot <[email protected]>
* CodeGeneratorOptions.cs: Fixed how properties are kept inside the
	IDictionary (which is just like System.Web.dll).
	* CompilerError.cs: Added [Serializable] attribute for 2.0.
	* CompilerInfo.cs: Added LinkDemand for Unrestricted. Stubbed new 
	(2.0) CreateDefaultCompilerParameters method.
	* CompilerParameters.cs: Added LinkDemand and InheritanceDemand for
	Unrestricted. Added Demand for ControlEvidence to Evidence property.
	Added new (2.0) EmbeddedResources and LinkedResources properties.
	* CompilerResults.cs: Added LinkDemand and InheritanceDemand for 
	Unrestricted. Added Demand for ControlEvidence to Evidence property.
	* Executor.cs: Added LinkDemand for Unrestricted. Added support for 
	userToken (impersonation).
	* GeneratedCodeAttribute.cs: New. 2.0 attribute for code generated by 
	tools.
	* IndentedTextWriter.cs: Added LinkDemand and InheritanceDemand for 
	Unrestricted.


svn path=/trunk/mcs/; revision=52159
2005-10-25 00:59:32 +00:00
Sebastien Pouliot c4ddcc8aa8 2005-10-04 Sebastien Pouliot <[email protected]>
* TempFileCollection.cs: Added a call to GC.SuppressFinalize in 
	Dispose.


svn path=/trunk/mcs/; revision=51229
2005-10-04 23:32:44 +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 16b04eb9a6 * CodeGeneratorTest.cs: Added unit tests for CodeGenerator.IsCurrent*.
* System_test.dll.sources: Added CodeGeneratorTest.cs from 
System.CodeDom.Compiler.
* CodeGenerator.cs: Fixed IsCurrentClass to return false for delegate.

svn path=/trunk/mcs/; revision=47500
2005-07-21 09:33:05 +00:00
Gert Driesen a5b5581b4d * CodeGeneratorFromTypeTest.cs: Added additional property tests.
* CodeGenerator.cs: On 2.0 profile, internal members are also marked
virtual. Fixed access modifier for FamilyAndAssembly to match MS.NET.

svn path=/trunk/mcs/; revision=46671
2005-06-28 20:27:55 +00:00
Ben Maurer a68aa2eda4 remove executable bit from changelogs
svn path=/trunk/mcs/; revision=46563
2005-06-27 15:53:16 +00:00
Gert Driesen 4f410a76b4 * CodeGeneratorFromCompileUnitTest.cs: enabled test for bug #75190.
* CodeGenerator.cs: Fixed bug #75190, GenerateCodeFromCompileUnit generates
no code for CodeSnippetCompileUnit.

svn path=/trunk/mcs/; revision=46494
2005-06-25 15:26:38 +00:00
Gert Driesen f3f823c46a * IndentedTextWriter.cs: also output tabs in WriteLine () to match MS.NET.
svn path=/trunk/mcs/; revision=45401
2005-06-04 13:55:23 +00:00
Gonzalo Paniagua Javier 5e04df3d2f 2005-02-17 Gonzalo Paniagua Javier <[email protected]>
* System.dll.sources: added CodeDomConfigurationHandler.
	* System.CodeDom.Compiler/CodeDomProvider.cs: implemented IsDefined* and
	GetCompilerInfo.
	* System.CodeDom.Compiler/CompilerInfo.cs: implemented.
	* System.CodeDom.Compiler/CodeDomConfigurationHandler.cs: system.codedom
	section reader.


svn path=/trunk/mcs/; revision=40814
2005-02-17 17:46:55 +00:00
Lluis Sanchez 567ff42c08 2005-01-27 LLuis Sanchez Gual <[email protected]>
* CodeGenerator.cs: Write 'f' suffix for float constants.


svn path=/trunk/mcs/; revision=39666
2005-01-27 22:08:11 +00:00
Marek Safar 5d46b79756 2004-09-06 Marek Safar <[email protected]>
* CodeCompileUnit.cs,
	* CodeMemberMethod.cs,
	* CodeMethodReferenceExpression.cs,
	* CodeStatement.cs,
	* CodeTypeDeclaration.cs,
	* CodeTypeMember.cs,
	* CodeTypeReference.cs : Implemented NET_2_0.

	* CodeChecksumPragma.cs,
	* CodeDirective.cs,
	* CodeDirectiveCollection.cs,
	* CodeRegionDirective.cs,
	* CodeRegionMode.cs,
	* CodeTypeParameter.cs,
	* CodeTypeParameterCollection.cs,
	* CodeTypeReferenceOptions.cs : New NET_2_0 files

svn path=/trunk/mcs/; revision=33419
2004-09-06 16:32:53 +00:00
Marek Safar fb98c02600 I fixed mono CodeDom bugs to pass on the latest Microsoft CodeDom Test Suite.
svn path=/trunk/mcs/; revision=33172
2004-09-01 18:45:52 +00:00
Atsushi Eno 1c4f8a680a 2004-08-09 Atsushi Enomoto <[email protected]>
* CodeGenerator.cs :
	  Don't initialize output more than once. TextWriter is wrapped twice.

svn path=/trunk/mcs/; revision=32088
2004-08-09 17:24:51 +00:00
Atsushi Eno c539cf49a2 2004-07-15 Peter Williams <[email protected]>
* CodeGenerator.cs: Have the basic generator create line pragmas
	for NamespaceImports, SnippetCompileUnits, and TypeMembers, all of
	which had LinePragma members which were going unused.

svn path=/trunk/mcs/; revision=31213
2004-07-16 10:03:56 +00:00
Jackson Harper 13bd73bd49 * CompilerError.cs:
* CodeGenerator.cs: Make sure we are using invariant for non
	culture sensitive operations.

svn path=/trunk/mcs/; revision=29807
2004-06-17 19:27:12 +00:00
Jackson Harper 9fcdd687af * CodeGenerator.cs: Make sure we are using invariant for non
culture sensitive operations.

svn path=/trunk/mcs/; revision=29806
2004-06-17 19:11:43 +00:00