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