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