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