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