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