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