2008-04-16 Marek Habersack <mhabersack@novell.com>
[mono.git] / mcs / class / System / Microsoft.VisualBasic / ChangeLog
1 2008-03-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2
3         * VBCodeGenerator.cs: Add quotes around the filename in ExternalSource
4           directives.
5
6 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
7
8         * VBCodeGenerator.cs: In GenerateDelegateInvokeExpression, only emit
9         RaiseEvent statement on 2.0 profile if TargetObject is a
10         CodeEventReferenceExpression. Spaces to tabs and code formatting.
11
12 2008-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
13
14         * VBCodeGenerator.cs: Implement support for type parameters.
15
16 2007-12-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
17
18         * VBCodeGenerator.cs: Split array of keywords in two, one for 1.1 and one
19           for 2.0. Add some 2.0 specific keywords. When writing a type, escape the
20           name of the type if necessary. Output "Partial" if a type is partial.
21
22 2007-12-14  Rolf Bjarne Kvinge <RKvinge@novell.com>
23
24         * VBCodeProvider.cs: Implement constructor added in 2.0SP1.
25
26 2007-10-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
27
28         * VBCodeGenerator.cs: Fix array indexer expressions by don't adding a
29           ".Item" to the array.
30
31 2007-06-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
32
33         * VBCodeCompiler.cs: Throw a descriptive exception if we're trying to
34           compile anything on the 1.0 profile. Correctly parse vbnc error
35           messages (and don't return any messages if there weren't any
36           errors/warnings). Fixes #81872.
37
38 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
39
40         * VBCodeCompiler.cs: Make sure there are spaces between all options in the command line arguments..
41
42 2007-05-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
43
44         * VBCodeGenerator.cs: Add support for delegates with parameters, and misc fixes for event handling to match MS.
45
46 2007-05-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
47
48         * VBCodeGenerator.cs: Always create escaped identifiers if the
49           identifier matches a keyword.
50
51 2007-05-08  Rolf Bjarne Kvinge  <RKvinge@novell.com>
52
53         * VBCodeGenerator.cs: Don't add newlines when creating array creations expressions, fix the initial size expression and make sure a there's always {} somewhere.
54
55 2007-04-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
56
57         * VBCodeCompiler.cs: In CompileFromFileBatch don't create error messages if compilation succeeded.
58
59 2007-04-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
60
61         * VBCodeGenerator.cs: Small fix in GenerateBinaryOperatorExpression to always emit the IdentityInequality comparisons with Nothing in the same order (first object, then Nothing).
62
63 2007-04-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
64
65         * VBCodeCompiler.cs: In CreateErrorFromString don't return null if the message couldn't be parsed. Temporary fix for ASP.Net to show more helpful fail messages. In CompileFromFileBatch don't try to load the assembly if the compilation returned a non-zero exit code.
66
67 2007-04-13  Frederik Carlier  <frederik.carlier@carlier-online.be>
68
69         * VBCodeGenerator.cs: Added support for the IdentityInequality operator when comparing against Nothing.
70
71 2007-03-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
72
73         * VBCodeCompiler.cs: Reference Microsoft.VisualBasic.dll and not Microsoft.VisualBasic (patch by Frederik Carlier). 
74         Don't set /wlevel, vbnc doesn't support it.
75
76 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
77
78         * VBCodeCompiler.cs: Also generate temp filename if OutputAssembly is
79         zero-length string. Fixed bug #80920 for VB.
80         * VBCodeGenerator.cs: To match MS, do not emit empty parentheses when
81         calling base ctor without arguments.
82
83 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
84
85         * VBCodeCompiler.cs: Replace mbas with vbnc. Don't send '--' to the
86         compiler, since vbnc doesn't support it.
87
88 2006-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
89
90         * VBCodeGenerator.cs: Empty line and comments should be output after 
91         namespace imports.
92
93 2006-02-14  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
94         * VBCodeCompiler.cs: 
95                 use mbas.exe from 1.0 or 2.0, depending on NET_2_0
96                 BuildArgs()
97                         copy options.CompilerOptions to the resulting command line  (as pointed by Arnhoffer Károly)   
98                         use Append instead of AppendFormat when possible
99                         
100 2005-12-07  Gert Driesen  <drieseng@users.sourceforge.net>
101
102         * VBCodeCompiler.cs: Set eol-style to native.
103         * VBCodeGenerator.cs: Set eol-style to native.
104         * VBCodeProvider.cs: Set eol-style to native.
105
106
107 2005-12-07  Gert Driesen  <drieseng@users.sourceforge.net>
108
109         * VBCodeGenerator.cs: Modified GeneratePrimitiveExpression to match
110         .NET 1.x and 2.0 for char, float, ushort, uint, ulong and sbyte.
111
112 2005-11-30  Gert Driesen  <drieseng@users.sourceforge.net>
113
114         * VBCodeGenerator.cs: Fixed NRE in GenerateEventReferenceExpression,
115         and escape event name. Indent statements for iteration. Avoid
116         ArgumentNullException if expression is not set for CodeReturnStatement.
117         Temporary reduce indentation for label, and fixed ArgumentNullException
118         if no statement is set. Cosmetic changes to code generated for 
119         condition to match MS.NET. In OutputTypeNamePair, escape name.
120
121 2005-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
122
123         * VBCodeGenerator.cs: Fixed NullReferenceException if no ToThrow
124         expression is set for CodeThrowExceptionStatement. Fixed
125         GenerateComment to output comment chars for carriage-returns and
126         linefeed characters. Modified code generated for
127         CodeTryCatchFinallyStatement to match MS.NET. Fixed code generated
128         for CodeGotoStatement to match MS.NET. On 2.0 profile, output
129         "__exception" if name is zero-length string in OutputTypeNamePair.
130
131 2005-10-29  Sebastien Pouliot  <sebastien@ximian.com>
132
133         * VBCodeProvider.cs: GenerateCodeFromMember method is an override in 
134         2.0 final.
135
136 2005-10-28  Gert Driesen <drieseng@users.sourceforge.net>
137
138         * VBCodeGenerator.cs: Use fixed signature for entrypoint method.
139         Only output attributes on 2.0 profile. Replace + with dot in type 
140         name (for nested types). Fixes bug #76580.
141
142 2005-10-25  Gert Driesen <drieseng@users.sourceforge.net>
143
144         * VBCodeGenerator.cs: Do not output name of CodeAttributeArgument if
145         its a zero-length string.
146
147 2005-10-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com>
148         * VBCodeGenerator.cs: Generate MyBase.New() with parenthesis as mbas currently chokes without them 
149         
150 2005-10-17  Sebastien Pouliot  <sebastien@ximian.com>
151
152         * VBCodeProvider.cs: Added a LinkDemand and an InheritanceDemand
153         for FullTrust (i.e. Unrestricted permission set) at the class level.
154         Added [Obsolete] on CreateCompiler and CreateGenerator methods (2.0).
155         Stubbed new method GenerateCodeFromMember (2.0).
156
157 2006-07-30  Gert Driesen <drieseng@users.sourceforge.net>
158
159         * VBCodeGenerator.cs: Fixed code generated for NewSlot members.
160
161 2005-07-24  Gert Driesen <drieseng@users.sourceforge.net>
162
163         * VBCodeGenerator.cs: Fixed generated code for enums, interfaces and
164         delegates to match MS.NET.
165
166 2005-07-02  Gert Driesen <drieseng@users.sourceforge.net>
167
168         * VBCodeGenerator.cs: Added support for ReturnTypeCustomAttributes.
169
170 2005-07-02  Gert Driesen <drieseng@users.sourceforge.net>
171
172         * VBCodeGenerator.cs: Scope modifiers should not be output for
173         events.
174
175 2005-07-02  Gert Driesen <drieseng@users.sourceforge.net>
176
177         * VBCodeGenerator.cs: Added PrivateImplementationType support for
178         properties, methods and event (2.0 only). Added Overloads support
179         for properties and methods.
180
181 2005-07-01  Gert Driesen <drieseng@users.sourceforge.net>
182
183         * VBCodeGenerator.cs: Added ImplementationTypes support for
184         properties and events, and fixed support for methods.
185
186 2005-06-30  Gert Driesen <drieseng@users.sourceforge.net>
187
188         * VBCodeGenerator.cs: Mark indexer as default property.
189
190 2005-06-27  Gert Driesen <drieseng@users.sourceforge.net>
191
192         * VBCodeGenerator.cs: Added short type names for which support was
193         added in .NET 2.0. Added support for Date. 
194
195 2005-06-26  Gert Driesen <drieseng@users.sourceforge.net>
196
197         * VBCodeGenerator.cs: Minor fixes for compatibility with MS.NET 2.0.
198
199 2005-06-26  Gert Driesen <drieseng@users.sourceforge.net>
200
201         * VBCodeGenerator.cs: Fixed generated code for attributes on ctors.
202         Implemented Base/Chained ctor args.
203
204 2005-06-26  Gert Driesen <drieseng@users.sourceforge.net>
205
206         * VBCodeGenerator.cs: Fixed generated code for method, property
207         and parameter level attributes. Fixed code generated for
208         FieldDirection.
209
210 2005-06-25  Gert Driesen <drieseng@users.sourceforge.net>
211
212         * VBCodeGenerator.cs: Removed type shortcuts that are not valid for
213         VB.NET. Fixed generated code for event and field level attributes.
214         Don't output Overridable for events. 
215
216 2005-06-25  Gert Driesen <drieseng@users.sourceforge.net>
217
218         * VBCodeGenerator.cs: Modified generated code for type-level
219         attributes to match MS.NET.
220
221 2005-06-25  Gert Driesen <drieseng@users.sourceforge.net>
222
223         * VBCodeGenerator.cs: No longer implictly add import for 
224         Microsoft.VisualBasic namespace to match MS.NET. Several fixes
225         in order to have generated code match that generated by MS
226         (backed by unit tests).
227
228 2005-06-13  Gert Driesen <drieseng@users.sourceforge.net>
229
230         * VBCodeCompiler.cs: Temp source files should have extension ".vb".
231
232 2005-06-09  Gert Driesen <drieseng@users.sourceforge.net>
233
234         * VBCodeCompiler.cs: ArgumentException was thrown when more than 
235         one file/source or CodeCompileUnit is built, temporary files were
236         not cleaned up. Fixes bug #75191.
237
238 2005-05-29  Gert Driesen <drieseng@users.sourceforge.net>
239
240         * VBCodeCompiler.cs: Load compiled assembly from byte array if
241         GenerateInMemory compiler parameter is set, set PathToAssembly
242         if compilation succeeded and GenerateInMemory is false.
243         Fixes bug #74959.
244
245 2005-04-20  Rafael Teixeira <rafaelteixeirabr@hotmail.com>
246         * VBCodeGenerator.cs: Better logic for OptionStrict/Explicit generation
247
248 2004-12-27  Rafael Teixeira <rafaelteixeirabr@hotmail.com>
249         * VBCodeCompiler.cs: Added /quiet argument to avoid the "Alpha message"
250         
251 2004-08-21  Jochen Wezel <jwezel@compumaster.de>
252         * VBCodeGenerator.cs: Removed some indentation commenting in generated
253           source code
254
255 2004-08-09  Jambunathan K  <kjambunathan@novell.com>
256         * VBCodeCompiler.cs: Regex pattern in CreateErrorFromString() now
257           reads (?<level>error|warning) instead of (?<level>\w*). This is
258           so that mbas's ALPHA message doesn't get captured as a error
259           string.
260
261 2004-06-28  Atsushi Enomoto  <atsushi@ximian.com>
262
263         * VBCodeCompiler.cs : (only for windows) First check mono.bat, then
264           check mono.exe. It enables xsp working with mono windows installer.
265
266 2004-06-24  Atsushi Enomoto <atsushi@ximian.com>
267
268         * VBCodeCompiler.cs : On windows we use fixed mono.exe and mbas.exe
269           located by mscorlib.dll. (The same fix as that of CSharpCodeCompiler)
270
271 2004-06-03  Jochen Wezel <jwezel@compumaster.de>
272
273         * VBCodeGenerator.cs: MemberAttributes made more compatible to MS
274         style (e. g. NotOverridable), Properties ReadOnly/WriteOnly fixed,
275         Property Set fixed, successless analysis of wrong indentation of last 
276         line which contains "End Namespace" (should be on the very left)
277
278 2004-04-26  Jochen Wezel <jwezel@compumaster.de>
279
280         * VBCodeGenerator.cs: GenerateAttributeDeclarationsEnd: Fix of line break
281
282 2004-02-10  Jackson Harper <jackson@ximian.com>
283
284         * VBCodeCompiler.cs: Use the temp files collection for
285         creating temp files.
286         
287 2004-02-05  Jackson Harper <jackson@ximian.com>
288
289         * VBCodeCompiler.cs: Set file extensions properly.
290         
291 2003-11-27  Rafael Teixeira <rafaelteixeirabr@hotmail.com>
292
293         * Microsoft.VisualBasic/VBCodeGenerator.cs: Support for Option Strict/Option Explicit
294         
295 2003-11-27  Jackson Harper <jackson@ximian.com>
296
297         * VBCodeCompiler.cs: Put a space between Property and the
298         properties name. Only add a closing quote to strings if we are
299         still in a quote. Use BaseType == "System.Void" to determine if a
300         method is void. This prevents getting As Nothing functions. Many
301         thanks to Anirban for helping me with VB Syntax.
302         
303 2003-11-27  Jackson Harper <jackson@ximian.com>
304
305         * VBCodeCompiler.cs: use /wlevel for warning level. This is what
306         mbas uses.
307         
308 2003-11-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
309
310         * VBCodeGenerator.cs: some corrections regarding missing spaces in
311         generated code (e. g. "Property "). QuoteSnippetString implemented.
312         Patch by Jochen Wezel (jwezel@compumaster.de).
313
314 2003-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com>
315
316         * Microsoft.VisualBasic/VBCodeGenerator.cs: Sub or Function generation
317         is switched by method.ReturnType being "System.Void"
318
319 2003-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com>
320
321         * Microsoft.VisualBasic/VBCodeCompiler.cs: Inserts "--" before file
322         names block
323         * Microsoft.VisualBasic/VBCodeGenerator.cs: Indexer should be
324         ".Item(xx)"
325
326 2003-10-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
327
328         * Microsoft.VisualBasic/VBCodeCompiler.cs: New.
329         * Microsoft.VisualBasic/VBCodeGenerator.cs:
330         * Microsoft.VisualBasic/VBCodeProvider.cs: modified others to use the
331         new CodeCompiler.
332
333         New VBCodeCompiler by Jochen Wezel <jwezel@compumaster.de>.
334
335
336 2003-07-07  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
337
338         * VBCodeProvider.cs: Removed unneccesary attributes according to
339         corecompare
340
341 2003-06-25  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
342
343         * VBCodeGenerator.cs: Added and nearly completely implemented
344                 (it compiles, but the functionallity is completely untested)
345                 (also without a working mbas the compilaton options will fail)
346                 (once all command line arguments for mbas are final and the
347                 warning output is final change the apropriate code to generate
348                 these options)
349
350         * VBCodeProvider.cs: Added and implemented