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