2 Commits
Author SHA1 Message Date
Gert Driesen fe32d6af83 * CodeGeneratorFromExpressionTest.cs: Added test for
CodeParameterDeclarationExpression.
* CodeGeneratorFromTypeTest.cs: Modified tests to check result
for zero-length event, field and parameter name.
* CodeGeneratorFromStatementTest.cs: Added CodeCommentStatement,
CodeThrowExceptionStatement, CodeGotoStatement and
CodeTryCatchFinallyStatement tests.
* CodeGeneratorFromTypeTestBase.cs: Modified GetMethodMembersType3 to
add parameter with no name.
* CodeGeneratorTestBase.cs: Removed Code property, added Generate
overload taking CodeGeneratorOptions, added NewLine property.
* CodeGeneratorCompileUnitTest.cs: Use Generate method instead of
Code property.
* CodeGeneratorFromExpressionTest.cs: Added test for
CodeParameterDeclarationExpression.
* CodeGeneratorFromTypeTest.cs: Added tests for __exception name that
is output for zero-length field, event and parameter name in 2.0
profile.
* CodeGeneratorFromStatementTest.cs: Added.
* CSharpCodeGenerator.cs: Fixed GenerateComment to also write
comment chars for carriage-return (and skip linefeed, if its the
next character). Fixed output for TryCatchFinallyStatement. Fixed
GotoStatement to end with newline.
* VBCodeGenerator.cs: Fixed NullReferenceException if no ToThrow
expression is set for CodeThrowExceptionStatement. Fixed
GenerateComment to output comment chars for carriage-returns and
linefeed characters. Modified code generated for
CodeTryCatchFinallyStatement to match MS.NET. Fixed code generated
for CodeGotoStatement to match MS.NET. On 2.0 profile, output
"__exception" if name is zero-length string in OutputTypeNamePair.

svn path=/trunk/mcs/; revision=53506
2005-11-26 16:23:45 +00:00
Jochen Wezel 4cd8388161 VB mirrored from C#
svn path=/trunk/mcs/; revision=21020
2003-12-11 11:08:00 +00:00