Be case-insensitive when looking up compilers
[mono.git] / mcs / class / System / System.CodeDom.Compiler / ChangeLog
1 2007-02-22  Marek Habersack  <grendello@gmail.com>
2
3         * CompilerCollection.cs: be case-insensitive with languages and
4         extensions when looking up the compiler.
5
6 2007-01-22  Miguel de Icaza  <miguel@novell.com>
7
8         * CodeDomProvider.cs: Prevent Moma from getting confused.
9
10 2006-11-17  Atsushi Enomoto  <atsushi@ximian.com>
11
12         * TempFileCollection.cs : make it work under non-libc environment.
13
14 2006-11-16  Marek Habersack  <grendello@gmail.com>
15
16         * Compiler.cs: ConfigurationElement to handle the <compiler>
17         sub-element of the <system.codedom> section
18
19         * CodeDomConfigurationHandler.cs: Reimplemented as a
20         ConfigurationSection. Made the class internal.
21
22         * CompilerCollection.cs: Collection of Compiler and CompilerInfo
23         objects. Uses List<CompilerInfo> as we need to be able to store
24         multiple entries for the same language, as .NET does.
25
26         * CodeDomProvider.cs: Changes to use the new
27         CodeDomConfigurationHandler class.
28
29 2006-11-07  Marek Habersack  <grendello@gmail.com>
30
31         * CompilerInfo.cs: Implement the CreateDefaultCompilerParameters API.
32
33         * CodeDomConfigurationHandler.cs: WarningLevel of CompilerInfo
34         should default to -1 if it is absent from the config file, as per
35         MSDN.
36
37 2006-11-06  Marek Habersack  <grendello@gmail.com>
38
39         * CodeDomProvider.cs: IsDefinedLanguage should return true if
40         CompilerInfo for the specified language exists.
41
42         * CodeDomConfigurationHandler.cs: add an instance of CompilerInfo
43         separately for each language name defined in the compiler's
44         definition.
45
46 2006-09-15  LLuis Sanchez Gual  <lluis@novell.com>
47
48         * TempFileCollection.cs: Create files in a temporary subdirectory,
49         for security reasons.
50         * CodeCompiler.cs: Let TempFileCollection choose the temp dir.
51
52 2006-05-04  LLuis Sanchez Gual  <lluis@novell.com>
53
54         * TempFileCollection.cs: Make sure generated file names
55           are unique. Fixes bug #76125 and #78230.
56
57 2006-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
58
59         * CodeGenerator.cs: Output empty line between types if 
60         BlankLinesBetweenMembers option is set.
61
62 2006-03-24  Chris Toshok  <toshok@ximian.com>
63
64         * CompilerInfo.cs (Init): make this internal as well, so
65         CodeDomConfigurationHandler can call it.
66
67         * CodeDomConfigurationHandler.cs (ReadCompilers): we need to call
68         CompilerInfo.Init after setting CompilerInfo.TypeName.
69
70 2006-03-11  Miguel de Icaza  <miguel@novell.com>
71
72         * CodeDomConfigurationHandler.cs: Comment out unused methods. 
73
74         * TempFileCollection.cs: Implement explicitly some interface
75         methods to get rid of the "!" errors on CorCompare.
76
77 2006-02-19  Zoltan Varga  <vargaz@gmail.com>
78
79         * CodeDomProvider.cs: Fix the [ToolboxItem] attribute. Fixes #77513.
80
81 2005-12-07  Gert Driesen  <drieseng@users.sourceforge.net>
82
83         * CodeGenerator.cs: Modified GeneratePrimitiveExpression to throw 
84         ArgumentException for sbyte value, use GenerateSingleFloatValue for 
85         float, GenerateDecimalValue for decimal and GenerateDoubleValue for
86         double. Modified exception message for non-primitive types to match
87         MS.NET.
88         * ICodeCompiler.cs: Set eol-style to native.
89         * CodeCompiler.cs: Set eol-style to native.
90         * CodeDomConfigurationHandler.cs: Set eol-style to native.
91         * CodeDomProvider.cs: Set eol-style to native.
92         * CodeGeneratorOptions.cs: Set eol-style to native.
93         * CodeParser.cs: Set eol-style to native.
94         * CompilerError.cs: Set eol-style to native.
95         * CompilerErrorCollection.cs: Set eol-style to native.
96         * CompilerInfo.cs: Set eol-style to native.
97         * CompilerParameters.cs: Set eol-style to native.
98         * CompilerResults.cs: Set eol-style to native.
99         * Executor.cs: Set eol-style to native.
100         * GeneratorSupport.cs: Set eol-style to native.
101         * ICodeGenerator.cs: Set eol-style to native.
102         * ICodeParser.cs: Set eol-style to native.
103         * LanguageOptions.cs: Set eol-style to native.
104         * TempFileCollection.cs: Set eol-style to native.
105
106 2005-11-30  Gert Driesen  <drieseng@users.sourceforge.net>
107
108         * CodeGenerator.cs: Corrected line endings. Set eol-style to native.
109         * IndentedTextWriter.cs: Indent can no longer become negative.
110
111 2005-11-04  Sebastien Pouliot  <sebastien@ximian.com> 
112
113         * CodeCompiler.cs: Compile now use the Executor class (instead of the
114         Process class). Fixed JoinStringArray.
115         * CompilerResults.cs: Load assembly only when the property is called.
116
117 2005-11-02  Sebastien Pouliot  <sebastien@ximian.com> 
118
119         * Executor.cs: Reworked (for permissions) and fixed ExitCode (must be 
120         called before Close).
121
122 2005-11-01  Sebastien Pouliot  <sebastien@ximian.com> 
123  
124         * CodeGenerator.cs: Added/stubbed missing 2.0 stuff.
125
126 2005-11-01  Sebastien Pouliot  <sebastien@ximian.com>
127
128         CodeDomProvider.cs: Added missing 2.0 methods. Added CAS permissions.
129         Added protection against NullReferenceException when no config is
130         available.
131
132 2005-10-29  Sebastien Pouliot  <sebastien@ximian.com>
133
134         CodeDomProvider.cs: Stubbed a few 2.0 methods to fix API errors in 
135         derived classes.
136
137 2005-10-25  Sebastien Pouliot  <sebastien@ximian.com>
138
139         * CompilerError.cs: Added LinkDemand for Unrestricted before 2.0.
140         * CompilerErrorCollection.cs: Added LinkDemand for Unrestricted before
141         2.0.
142
143 2005-10-25  Sebastien Pouliot  <sebastien@ximian.com> 
144  
145         * CodeGenerator.cs: Fixed OutputAttributeArgument not to assume the
146         default value is null (it's String.Empty).
147
148 2005-10-25  Sebastien Pouliot  <sebastien@ximian.com>
149
150         * CompilerParameters.cs: Added [ComVisible(false)] on the new (2.0)
151         EmbeddedResources and LinkedResources properties.
152         * TempFileCollection.cs: Changed BasePath property to use Path.
153         GetTempPath (Environment check) and added the PathDiscovery check on
154         the combined result. Fixed TempDir so it's value never change (i.e. 
155         imply that it doesn't need any permissions). Fixed SyncRoot to always 
156         return null.
157
158 2005-10-24  Sebastien Pouliot  <sebastien@ximian.com>
159
160         * CodeGeneratorOptions.cs: Fixed how properties are kept inside the
161         IDictionary (which is just like System.Web.dll).
162         * CompilerError.cs: Added [Serializable] attribute for 2.0.
163         * CompilerInfo.cs: Added LinkDemand for Unrestricted. Stubbed new 
164         (2.0) CreateDefaultCompilerParameters method.
165         * CompilerParameters.cs: Added LinkDemand and InheritanceDemand for
166         Unrestricted. Added Demand for ControlEvidence to Evidence property.
167         Added new (2.0) EmbeddedResources and LinkedResources properties.
168         * CompilerResults.cs: Added LinkDemand and InheritanceDemand for 
169         Unrestricted. Added Demand for ControlEvidence to Evidence property.
170         * Executor.cs: Added LinkDemand for Unrestricted. Added support for 
171         userToken (impersonation).
172         * GeneratedCodeAttribute.cs: New. 2.0 attribute for code generated by 
173         tools.
174         * IndentedTextWriter.cs: Added LinkDemand and InheritanceDemand for 
175         Unrestricted.
176
177 2005-10-04  Sebastien Pouliot  <sebastien@ximian.com>
178
179         * TempFileCollection.cs: Added a call to GC.SuppressFinalize in 
180         Dispose.
181
182 2005-07-30 Gert Driesen <drieseng@users.sourceforge.net>
183
184         * CodeGenerator.cs: In OutputMemberScopeModifier, only output 
185         "new" modifier in 2.0 profile.
186
187 2005-07-24 Gert Driesen <drieseng@users.sourceforge.net>
188
189         * CodeGenerator.cs: Threat delegates like any other type.
190
191 2005-07-21 Gert Driesen <drieseng@users.sourceforge.net>
192
193         * CodeGenerator.cs: Fixed IsCurrentClass to return false for delegate.
194
195 2005-06-28 Gert Driesen <drieseng@users.sourceforge.net>
196
197         * CodeGenerator.cs: On 2.0 profile, internal members are also marked
198         virtual. Fixed access modifier for FamilyAndAssembly to match
199         MS.NET.
200
201 2005-06-25 Gert Driesen <drieseng@users.sourceforge.net>
202
203         * CodeGenerator.cs: Fixed bug #75190, GenerateCodeFromCompileUnit
204         generates no code for CodeSnippetCompileUnit.
205
206 2005-06-04 Gert Driesen <drieseng@users.sourceforge.net>
207
208         * IndentedTextWriter.cs: also output tabs in WriteLine () to
209         match MS.NET
210
211 2005-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
212
213         * CodeDomProvider.cs: implemented IsDefined* and GetCompilerInfo.
214         * CompilerInfo.cs: implemented.
215         * CodeDomConfigurationHandler.cs: system.codedom section reader.
216
217 2005-01-27  LLuis Sanchez Gual  <lluis@novell.com>
218
219         * CodeGenerator.cs: Write 'f' suffix for float constants.
220
221 2004-09-06  Marek Safar  <marek.safar@seznam.cz>
222
223         * CodeGenerator.cs,
224         * GeneratorSupport.cs : Implemented NET_2_0 extension
225         
226         * CompilerInfo.cs : New NET_2_0 file.
227
228 2004-09-01  Marek Safar  <marek.safar@seznam.cz>
229
230         * CodeGenerator.cs : Added newline after global attributes output.
231         (OutputAttributeDeclaration): Replace '+' with '.' for nested
232         attribute types.
233
234 2004-08-09  Atsushi Enomoto  <atsushi@ximian.com>
235
236         * CodeGenerator.cs :
237           Don't initialize output more than once. TextWriter is wrapped twice.
238
239 2004-07-15  Peter Williams  <peter@newton.cx>
240
241         * CodeGenerator.cs: Have the basic generator create line pragmas
242         for NamespaceImports, SnippetCompileUnits, and TypeMembers, all of
243         which had LinePragma members which were going unused.
244
245 2004-06-17  Jackson Harper  <jackson@ximian.com>
246
247         * CompilerError.cs:
248         * CodeGenerator.cs: Make sure we are using invariant for non
249         culture sensitive operations.
250         
251 2004-06-13  Gert Driesen <drieseng@users.sourceforge.net>
252
253         * IndentedTextWriter.cs: have DefaultTabString correspond with
254         MS.NET (meaning four spaces)
255
256 2004-05-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
257
258         * TempFileCollection.cs: don't create a Random object on every call to
259         BasePath.
260
261 2004-04-26  Atsushi Enomoto  <atsushi@ximian.com>
262
263         * CodeGenerator.cs : delegate was output as usual class.
264
265 2004-03-29  Lluis Sanchez Gual  <lluis@ximian.com>
266
267         * Executor.cs: Implemented.
268
269 2004-02-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
270
271         * TempFileCollection.cs: fixed typo in Delete. Closes bug #54443.
272
273 2004-02-10  Jackson Harper <jackson@ximian.com>
274
275         * CompilerParameters.cs: TempFiles should never return null.
276         
277 2004-02-04  Jackson Harper <jackson@ximian.com>
278
279         * CodeGenerator.cs (GenerateExpression): Don't allow null
280         expressions. Throw ArgumentException if the expression type is not
281         handled.
282         * CodeGenerator.cs (GenerateStatement): Add line pragmas if they
283         are set. Throw ArgumentException if the expression type is not handled.
284         
285 2003-12-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
286
287         * TempFileCollection.cs: fixed temp path in BaseDir.
288
289 2003-11-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>
290
291         * CodeGenerator.cs: fixed assembly level attribute generation.
292
293 2003-08-08  Lluis Sanchez Gual  <lluis@ximian.com>
294
295         * CodeGenerator.cs: When sorting the members of a type, keep the
296         relative order of the members of the same kind.
297
298 2003-08-05  Lluis Sanchez Gual  <lluis@ximian.com>
299
300         * CodeGenerator.cs: Generate comments for properties and fields.
301           Write a line separator between type declarations.
302
303 2003-07-10  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
304
305         * Executor.cs: Changed abstract to sealed
306
307 2003-07-07  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
308
309         * CodeDomProvider.cs: Removed unneccesary attribute according to corecompare
310         * Executor.cs: Fixed signature with ref calls according to corecompare and made neccessary changes
311
312 2003-06-20  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
313
314         * CodeCompiler.cs: Nearly completely implemented
315         * CodeDomProvider.cs: Added missing Attribute, restyled according to style guidelines
316         * CodeGenerator.cs: Fixed visibilies, added missing members, implemented members, stubbed out missing member, restyled according to style guidelines
317         * CodeParser.cs: Added and implemented (ok no real implementation needed ;)
318         * CompilerErrorCollection.cs: Removed unneeded MonoTODOs, restyled according to style guidelines
319         * CompilerParameters.cs: Fixed wrong properties, Added Initializers, restyled according to style guidelines
320         * CompilerResults.cs: Added Evidence property, added initial values
321         * Executor.cs: Added and partially implemented (should probably be used by CodeCompiler)
322         
323         * CompilerOptions.cs: Deleted this file (such a class does not exist)
324         
325 2003-05-16  Dick Porter  <dick@ximian.com>
326
327         * TempFileCollection.cs: Implement
328
329 2003-04-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
330
331         * CodeGenerator.cs:
332         (GenerateSnippetStatement): use WriteLine instead of Write.
333
334 2003-04-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
335
336         * CodeGenerator.cs:
337         (GenerateCodePrimitive): special case strings and chars (bool was
338         already a special case). Throw an exception if the type is not a
339         primitive type.
340
341 2003-04-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
342
343         * CodeGenerator.cs: more fixes and sorted the output.
344         
345         * IndentedTextWriter.cs: don't output tabs in WriteLine ().
346
347 2003-04-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
348
349         * CodeGenerator.cs:
350         (GenerateCompileUnitStart):
351         (GenerateCompileUnitEnd): removed debug output.
352         (GeneratePrimitiveExpression): handle null and bool as special cases.
353         (GenerateType): added type constructor and constructor calls.
354
355 2003-02-20  Alfonso Ali <isa@infomed.sld.cu>
356
357         * CodeGenerator.cs: Generates the entry point method.
358
359 2003-01-10  Duncan Mak  <duncan@ximian.com>
360
361         * CompilerErrorCollection.cs: 
362         * CompilerParameters.cs: Patch from Sean Kasun
363         <skasun@azstarnet.com> implementing most of the MonoTODOs in
364         CompilerErrorCollection and the CompilerParameters overloads in CompilerParameters.cs.
365
366 2002-11-30 Jackson Harper <jackson@latitudegeo.com>
367
368         * CodeCompiler.cs: Removed TODO attribute from abstract members
369
370 2002-11-30 Jackson Harper <jackson@latitudegeo.com>
371
372         * CodeCompiler.cs: Added stub
373
374 2002-09-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
375
376         * CodeDomProvider.cs:
377         * IndentedTextWriter.cs: misc. fixes.
378
379 2002-08-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
380
381         * CompilerError.cs: implemented.
382         * CompilerErrorCollection.cs: stubbed out and fix inheritance.
383         * GeneratorSupport.cs: fixed values.
384
385 2002-05-28  Daniel Stodden <stodden@in.tum.de>
386
387         * CodeDomProvider.cs: added, incomplete
388
389         * CodeGeneratorOptions.cs: added, complete
390
391         * CompilerErrorCollection.cs: added, stub
392
393         * CompilerOptions.cs: added, stub
394
395         * CompilerResults.cs: added, complete
396
397         * GeneratorSupport.cs: added, complete
398
399         * ICodeCompiler.cs: added, complete
400
401         * ICodeParser.cs: added, complete
402
403         * IndentedTextWriter.cs: added, complete
404
405         * LanguageOptions.cs: added, complete
406
407         * TempFileCollection.cs: added, stub
408         
409         * ICodeGenerator.cs: added, complete
410
411 2002-01-05  Ravi Pratap  <ravi@ximian.com>
412
413         * CodeGenerator.cs : Mark bits with MonoTODO.
414
415 2001-07-15  Sean MacIsaac  <macisaac@ximian.com>
416
417         * CodeGenerator.cs: moved using statement out of namespace
418         declaration.
419