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