mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
CodeAssignStatement, CodeAttachEventStatement, CodeConditionStatement, CodeExpressionStatement, CodeIterationStatement, CodeLabeledStatement, CodeMethodReturnStatement, CodeRemoveEventStatement, CodeSnippetStatement, CodeStatement, CodeVariableDeclarationStatement. * CodeRemoveEventStatementTest.cs: Added tests for ctors. * IndentedTextWriterTest.cs: Added tests for Indent property. * CodeGeneratorFromStatementTest.cs: Added tests for CodeAssignStatement, CodeAttachEventStatement, CodeConditionStatement, CodeExpressionStatement, CodeIterationStatement, CodeLabeledStatement, CodeMethodReturnStatement, CodeRemoveEventStatement and CodeSnippetStatement. * CSharpCodeGenerator.cs: No longer output semicolon and newline for CodeVariableDeclarationStatement in for statement, fixes #75292. Fixed NRE in GenerateEventReferenceExpression. Cosmetic changes to code generated for iteration to match MS.NET. Temporary reduce indentation for label and no longer escape label if its a keyword. * CodeRemoveEventStatement.cs: Event returns new CodeEventReference if underlying value is null. * System_test.dll.sources: Added CodeRemoveEventStatementTest.cs from System.CodeDom. * CodeGenerator.cs: Corrected line endings. Set eol-style to native. * IndentedTextWriter.cs: Indent can no longer become negative. * VBCodeGenerator.cs: Fixed NRE in GenerateEventReferenceExpression, and escape event name. Indent statements for iteration. Avoid ArgumentNullException if expression is not set for CodeReturnStatement. Temporary reduce indentation for label, and fixed ArgumentNullException if no statement is set. Cosmetic changes to code generated for condition to match MS.NET. In OutputTypeNamePair, escape name. svn path=/trunk/mcs/; revision=53703