* CodeGeneratorFromTypeTest.cs: Added BaseTypes and TypeConstructor
[mono.git] / mcs / class / System / Microsoft.CSharp / ChangeLog
1 2005-07-24 Gert Driesen <drieseng@users.sourceforge.net>
2
3         * CSharpCodeGenerator.cs: Fixed generated code for enums, interfaces
4         and delegates to match MS.NET.
5
6 2005-07-02 Gert Driesen <drieseng@users.sourceforge.net>
7
8         * CSharpCodeGenerator.cs: Fixed output of ReturnTypeCustomAttributes.
9
10 2005-07-02 Gert Driesen <drieseng@users.sourceforge.net>
11
12         * CSharpCodeGenerator.cs: Added PrivateImplementationType support
13         for events, properties, methods. No longer output scope modifier
14         for events.
15
16 2005-06-30 Gert Driesen <drieseng@users.sourceforge.net>
17
18         * CSharpCodeGenerator.cs: Only consider property an indexer if
19         name is Item (case-insensitive comparison) and property has
20         parameters.
21
22 2005-06-28 Gert Driesen <drieseng@users.sourceforge.net>
23
24         * CSharpCodeGenerator.cs: Fixed GetTypeOutput to match MS.NET 1.x
25         and 2.0.        
26
27 2005-06-26 Gert Driesen <drieseng@users.sourceforge.net>
28
29         * CSharpCodeGenerator.cs: Fixed generated code for events, fields,
30         properties, methods and ctors to match MS.NET.
31
32 2005-06-25 Gert Driesen <drieseng@users.sourceforge.net>
33
34         * CSharpCodeGenerator.cs: Also modified generated code for type-level
35         attributes to match MS.NET.
36
37 2005-06-25 Gert Driesen <drieseng@users.sourceforge.net>
38
39         * CSharpCodeGenerator.cs: Fixed generated code for assembly-level
40         attributes to match code generated by MS.NET.
41
42 2005-06-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
43
44         * CSharpCodeCompiler.cs: use UTF8 in the StreamWriter, as it did before
45         r45802 removed it accidentally. Fixes bug #75361.
46
47 2005-06-12  Gert Driesen <drieseng@users.sourceforge.net>
48
49         * CSharpCodeCompiler.cs: Temp source files should have extension
50         ".cs".
51
52 2005-06-11  Gert Driesen <drieseng@users.sourceforge.net>
53
54         * CSharpCodeGenerator.cs: Win32 resources are supported. Fixes bug
55         #75218.
56         * CSharpCodeCompiler.cs: Clean up temporary files after compilation. 
57         Fixes bug #75221. Added support for Win32 resources. Fixes bug
58         #75218.
59
60 2005-05-29  Gert Driesen <drieseng@users.sourceforge.net>
61
62         * CSharpCodeCompiler.cs: Load compiled assembly from byte array
63         if GenerateInMemory compiler parameter is set, set PathToAssembly
64         if compilation succeeded and GenerateInMemory is false.
65         Fixes bug #74959.
66
67 2005-04-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
68
69         * CSharpCodeCompiler.cs: fix problem with the output CS8028.
70
71 2005-02-03  Atsushi Enomoto  <atsushi@ximian.com>
72
73         * CSharpCodeCompiler.cs : On windows, use gmcs under 2.0 profile too.
74
75 2005-01-19  Jonathan Pryor  <jonpryor@vt.edu>
76
77         * CSharpCodeGenerator.cs: Remove extra ' ' emitted after class name in 
78           GenerateTypeStart().  This removes a regression test failure in
79           MonoTests.Microsoft.CSharp.CodeGeneratorFromTypeTest.DefaultTypeTest.
80
81 2005-01-12  Lluis Sanchez Gual  <lluis@novell.com>
82
83         * CSharpCodeGenerator.cs: Avoid keywords when writing enum members.
84         Removed the GetSafeTypeName method. It was a wrong bug fix. Type names
85         are expected to always use the full name form, never the alias.
86
87 2004-12-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
88
89         * CSharpCodeCompiler.cs: ignore the 'BETA SOFTWARE blah' from gmcs.
90         Use stderr to get the errors/warnings instead of stdout. Removed
91         obsolete lines from CreateErrorFromString.
92
93 2004-10-02 Marek Safar <marek.safar@seznam.cz>
94
95         * CSharpCodeCompiler.cs: Fix #65722.
96
97 2004-09-14 Marek Safar <marek.safar@seznam.cz>
98
99         * CSharpCodeGenerator.cs: Fix #65854.
100
101 2004-09-08  Lluis Sanchez Gual  <lluis@novell.com>
102
103         * CSharpCodeGenerator.cs: Reverted change in GenerateArrayCreateExpression.
104         It was causing regressions.
105
106 2004-09-06 Marek Safar <marek.safar@seznam.cz>
107
108         * CSharpCodeGenerator.cs: Implemented NET_2_0 extensions
109         
110 2004-09-01 Marek Safar <marek.safar@seznam.cz>
111
112         * CSharpCodeGenerator.cs : New private member dont_write_semicolon.
113         Used for one row "for" syntax.
114         (GenerateEvent): Added attributes output.
115         (GenerateField): Don't output access and scope modifier for enum field.
116         (GenerateConstructor): Added attributes output.
117         (QuoteSnippetString): Fixed mixed case type conversion. Replace '+'
118         with '.' for nested classes.
119
120 2004-07-21  Lluis Sanchez Gual  <lluis@novell.com>
121
122         * CSharpCodeCompiler.cs: Hack to make code generation work in 2.0.
123
124 2004-07-13  Peter Williams  <peter@newton.cx>
125
126         * CSharpCodeCompiler.cs (CompileAssemblyFromDomBatch): Include
127         counter in the extension so that batch compilations work.
128         (CompileAssemblyFromSourceBatch): Same.
129
130 2004-07-12  Fawad Halim <fawad@fawad.net>
131
132         * CSharpCodeGenerator.cs : Have GenerateField generate field sans the type for enums.
133
134 2004-06-28  Atsushi Enomoto  <atsushi@ximian.com>
135
136         * CSharpCodeCompiler.cs : (only for windows) First check mcs.bat, then
137           check mcs.exe. It enables xsp working with mono windows installer.
138
139 2004-06-24  Atsushi Enomoto  <atsushi@ximian.com>
140
141         * CSharpCodeCompiler.cs : On windows we use fixed mono.exe and mcs.exe
142           located by mscorlib.dll.
143
144 2004-06-23  Jackson Harper  <jackson@ximian.com>
145
146         * CSharpCodeGenerator.cs (GenerateLabeledStatement): Append a ": "
147         to the statement name. Make sure the statement isn't null before
148         writing. Patch by Alex Yakunin.
149         
150 2004-06-22  Atsushi Enomoto  <atsushi@ximian.com>
151
152         * CSharpCodeGenerator.cs :
153           Check null argument in CreateValidIdentifier().
154
155 2004-06-21  Atsushi Enomoto  <atsushi@ximian.com>
156
157         * CSharpCodeGenerator.cs : Fix for tests. Check type names in
158           CreateValidIdentifier. Implemented IsValidIdentifier.
159
160 2004-06-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
161
162         * CSharpCodeCompiler.cs: let the TempFileCollection handle the removal
163         of the files if needed.
164
165 2004-04-26  Atsushi Enomoto  <atsushi@ximian.com>
166
167         * CSharpCodeGenerator.cs : implemented GenerateEvent.
168           Delegate was output as usual class.
169
170 2004-03-29  Lluis Sanchez Gual  <lluis@ximian.com>
171
172         * CSharpCodeGenerator.cs: In GetTypeOutput, never escape runtime type names.
173         Created a new method GetSafeTypeName to support this.
174
175 2004-03-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
176
177         * CSharpCodeGenerator.cs: patch from Jaroslaw Kowalski that fixes
178         CodeMethodReturnStatement(). Closes bug #54934.
179
180 2004-02-27  Jaroslaw Kowalski <jaak@zd.com.pl>
181  
182         * CSharpCodeGenerator.cs: fixed static property references
183         in GeneratePropertyReferenceExpression
184  
185 2004-02-10  Jackson Harper <jackson@ximian.com>
186
187         * CSharpCodeCompiler.cs: Use the temp files collection for
188         creating temp files.
189         
190 2004-02-04  Jackson Harper <jackson@ximian.com>
191
192         * CSharpCodeGenerator.cs: Don't write ToThrow statement if it is
193         null (matches MS output). When creating comments there is a space
194         after the first // but not the following lines.
195         
196 2004-01-21  Atsushi Enomoto <atsushi@ximian.com>
197
198         * CSharpCodeGenerator.cs: Implemented CreateEscapedIdentifier() and
199           CreateValidIdentifier().
200
201 2004-01-19  Lluis Sanchez Gual <lluis@ximian.com>
202
203         * CSharpCodeGenerator.cs: Do not generate access and scope modifiers for
204         interface methods.
205
206 2004-01-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
207
208         * CSharpCodeCompiler.cs: when generating files from DOM, set the
209         encoding to UTF-8 with BOM marker. Fixes bug #52604.
210
211 2003-11-12  Lluis Sanchez Gual <lluis@ximian.com>
212
213         * CSharpCodeCompiler.cs: In BuildArgs, add "--" separator between
214         options and source files.
215
216 2003-10-15  Lluis Sanchez Gual <lluis@ximian.com>
217
218         * CSharpCodeGenerator.cs: added override for the method 
219           GenerateParameterDeclarationExpression. The parameter must be
220           generated with a safe C# name.
221         
222 2003-09-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
223
224         * CSharpCodeCompiler.cs: don't leave temporary files around.
225
226 2003-09-04  Lluis Sanchez Gual <lluis@ximian.com>
227
228         * CSharpCodeGenerator.cs: Fixed generation of array construction with
229         initializers. Render return type custom attributes.
230
231 2003-08-15  Jaroslaw Kowalski <jarek@atm.com.pl>
232
233         * CSharpCodeGenerator.cs:
234         
235           - fixed support for method references where target
236                 object is null
237           - fixed CodeThrowExceptionStatement
238           - disabled member access modifiers for private method
239             implementations
240           - disabled generation of empty method body for interface
241             declarations
242           - disabled generation of empty property accessor bodies
243             in interface declarations
244           - added support for indexers (properties named "Item")
245           - added support for chained constructor arguments and
246             base constructor arguments
247
248 2003-08-05  Lluis Sanchez Gual <lluis@ximian.com>
249
250         * CSharpCodeGenerator.cs: Added method GetSafeName() that checks if
251           a given id is a C# keyword, and returns the same if if it is not,
252           or @id if it is a keyword. This method is used everywhere
253           a name is rendered.
254
255 2003-08-05  Lluis Sanchez Gual <lluis@ximian.com>
256
257         * CSharpCodeGenerator.cs: GenerateComment(): Render multiline comments.
258
259 2003-07-30  Lluis Sanchez Gual <lluis@ximian.com>
260
261         * CSharpCodeGenerator.cs: GenerateTypeStart(): Write type custom attributes
262
263 2003-07-06  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
264
265         * CSharpCodeCompiler.cs: Few fixes for update in CodeDom.Compiler
266
267 2003-07-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
268
269         * CSharpCodeCompiler.cs: ignore debug statistics in mcs output when
270         debug is turned on.
271
272 2003-07-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
273
274         * CSharpCodeCompiler.cs: patch from pelle.johnsen@mail.dk (Pelle
275         Johnsen) that fixes bug #45708.
276
277 2003-05-17  Ben Maurer <bmaurer@users.sourceforge.net>
278
279         * CSharpCodeGenerator.cs: implemented GenerateLinePragma{Start, End}. 
280         Marked GenerateEvent as MonoTODO.
281
282 2003-04-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
283
284         * CSharpCodeCompiler.cs: add quotes around out assembly name.
285
286 2003-04-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
287
288         * CSharpCodeCompiler.cs:
289         (CompileAssemblyFromDomBatch): add the assemblies referenced by the
290         CodeCompileUnits to the options.
291
292 2003-04-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
293
294         * CSharpCodeCompiler.cs: set NativeCompilerReturnValue.
295
296 2003-04-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
297
298         * CSharpCodeGenerator.cs:
299         (QuoteSnippetString): add a few common escape sequences.
300
301 2003-04-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
302
303         * CSharpCodeGenerator.cs: implemented GenerateSnippetMember and some
304         little fixes.
305
306 2003-04-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
307
308         * CSharpCodeGenerator.cs: beautified conditional statements. Implemented
309         GenerateConstructor and GenerateTypeConstructor.
310
311 2003-01-10  Duncan Mak  <duncan@ximian.com>
312
313         * CSharpCodeCompiler.cs: 
314         * CSharpCodeProvider.cs: Patch from Sean Kasun
315         <skasun@azstarnet.com> to implement CSharpCodeCompiler.
316
317 2002-12-07 Jackson Harper <jackson@latitudegeo.com>
318
319         * CompilerError.cs Compiler.cs: Moving these classes to their own assembly
320
321 2002-11-11 Jackson Harper <jackson@latitudegeo.com>
322
323         * CompilerError.cs: Reordered ErrorLevel enumeration to match MS values
324
325 2002-11-11 Jackson Harper <jackson@latitudegeo.com>
326
327         * CompilerError.cs: Error levels are now lower case to match MS spec
328
329 2002-11-9 Jackson Harper <jackson@latitudegeo.com>
330
331         * CompilerError.cs: ToString() Do not show source file info if there was no source file in the error message
332
333 2002-11-6 Jackson Harper <jackson@latitudegeo.com>
334
335         * Compiler.cs: No longers waits untill mcs is finished running to read output, this should prevent
336         crashes from buffers filling up.        
337
338 2002-11-4 Jackson Harper <jackson@latitudegeo.com>
339
340         * Compiler.cs CompilerError.cs: Fixed (C) in header
341         
342 2002-11-4 Jackson Harper <jackson@latitudegeo.com>
343
344         * Compiler.cs: Added file
345
346 2002-11-4 Jackson Harper <jackson@latitudegeo.com>
347
348         * CompilerError.cs: Changed FileName property to the correct name 'SourceFile'
349
350 2002-10-30 Jackson Harper <jackson@latitudegeo.com>
351
352         * CompilerError.cs: Added class
353         
354 2002-10-19  Rachel Hestilow <hestilow@ximian.com>
355
356         * CSharpCodeProvider.cs
357         (GeneratePropertySetValueReferenceExpression): Implement.
358         (GenerateField, GenerateMethod): Only call OutputAttributeDeclarations
359         if there are any attributes.
360         (GenerateProperty): Implement.
361          
362 2002-10-11  Duncan Mak  <duncan@ximian.com>
363
364         * CSharpCodeProvider.cs: Fix constructor visibility.
365
366 2002-05-28  Daniel Stodden <stodden@in.tum.de>
367
368         * ChangeLog: added
369
370         * CSharpCodeProvider.cs: added
371
372         * CSharpCodeGenerator.cs: C# Code Generator. Not fully complete
373         but doing fairly well.