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