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