Skip to content

CSharp output with more consistency, robustness and more understandable code  #427

@dadhi

Description

@dadhi

Should work for at least the current Tests output.

List of problems to solve:

  • In the ternary expression, the second branch after : is not indented, but should be in Issue196_AutoMapper_tests_are_failing_when_using_FEC.Test_the_tmp_var_block_reduction.
  • In some ternary expression, the second branch on the new line is double indented in Issue419_The_JIT_compiler_encountered_invalid_IL_code_or_an_internal_limitation.Original_Case_2.
  • In catch the expression after return is in parens, but it should not in TryCatchTests.Can_handle_the_exception_and_return_result_from_TryCatch_block.
  • The body of the Action in the Invoke expression is double indented, but should not in NestedLambdaTests.Issue401_What_happens_if_inlined_invocation_of_lambda_overrides_the_same_parameter.
  • In the nested lambda with multiply parameters, the parameters are double indented, but should be only once.
  • The expression body of the function is in parens but should not be Issue196_AutoMapper_tests_are_failing_when_using_FEC.Test_the_tmp_var_block_reduction.
  • Some expressions are still in parens after the return in Issue390_405_406_Mapster_tests.Issue390_Test_extracted_mapping_code.
  • Arguments of the Invoke are not indented but should be in Issue156_InvokeAction.InvokeFuncConstantIsSupported
  • In the assignment, the right value after = on the new line is not indented, but should be.
  • Switch cases returning values should use return keyword in Issue274_Failing_Expressions_in_Linq2DB.Test_case_2_Full_ExecutionEngineException

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions