Skip to content

Commit 73ab4d1

Browse files
committed
fix tab/space mess
1 parent bef4dac commit 73ab4d1

File tree

2 files changed

+41
-41
lines changed

2 files changed

+41
-41
lines changed

ReadableExpressions/ExpressionExtensions.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
namespace AgileObjects.ReadableExpressions
22
{
3-
using System.Linq.Expressions;
3+
using System.Linq.Expressions;
44

5-
/// <summary>
6-
/// Provides the Expression translation extension method.
7-
/// </summary>
8-
public static class ExpressionExtensions
5+
/// <summary>
6+
/// Provides the Expression translation extension method.
7+
/// </summary>
8+
public static class ExpressionExtensions
99
{
1010
private static readonly ExpressionTranslatorRegistry _translatorRegistry = new ExpressionTranslatorRegistry();
1111

12-
/// <summary>
13-
/// Translates the given <paramref name="expression"/> to source-code string.
14-
/// </summary>
15-
/// <param name="expression">The Expression to translate.</param>
16-
/// <param name="settings">Configuration options for the translation</param>
17-
/// <returns>The translated <paramref name="expression"/>.</returns>
18-
public static string ToReadableString(this Expression expression, ReadableStringSettings settings = null)
12+
/// <summary>
13+
/// Translates the given <paramref name="expression"/> to source-code string.
14+
/// </summary>
15+
/// <param name="expression">The Expression to translate.</param>
16+
/// <param name="settings">Configuration options for the translation</param>
17+
/// <returns>The translated <paramref name="expression"/>.</returns>
18+
public static string ToReadableString(this Expression expression, ReadableStringSettings settings = null)
1919
{
2020
return _translatorRegistry
2121
.Translate(expression, settings ?? new ReadableStringSettings())?

ReadableExpressions/TranslationContext.cs

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,28 @@ public class TranslationContext
1515
{
1616
private readonly ExpressionAnalysisVisitor _analyzer;
1717
private readonly Translator _globalTranslator;
18-
private readonly ReadableStringSettings _settings;
18+
private readonly ReadableStringSettings _settings;
1919

20-
private TranslationContext(ExpressionAnalysisVisitor analyzer, Translator globalTranslator, ReadableStringSettings settings)
20+
private TranslationContext(ExpressionAnalysisVisitor analyzer, Translator globalTranslator, ReadableStringSettings settings)
2121
{
2222
_analyzer = analyzer;
2323
_globalTranslator = globalTranslator;
24-
_settings = settings;
25-
}
26-
27-
/// <summary>
28-
/// Creates a <see cref="TranslationContext"/> containing information about the given
29-
/// <paramref name="expression"/>.
30-
/// </summary>
31-
/// <param name="expression">
32-
/// The <see cref="Expression"/> for which to create the <see cref="TranslationContext"/>.
33-
/// </param>
34-
/// <param name="globalTranslator">
35-
/// A global <see cref="Translator"/> delegate with which to perform translations.
36-
/// </param>
37-
/// <param name="settings">Configuration for the translation</param>
38-
/// <returns>A <see cref="TranslationContext"/> for the given<paramref name="expression"/>.</returns>
39-
public static TranslationContext For(Expression expression, Translator globalTranslator, ReadableStringSettings settings)
24+
_settings = settings;
25+
}
26+
27+
/// <summary>
28+
/// Creates a <see cref="TranslationContext"/> containing information about the given
29+
/// <paramref name="expression"/>.
30+
/// </summary>
31+
/// <param name="expression">
32+
/// The <see cref="Expression"/> for which to create the <see cref="TranslationContext"/>.
33+
/// </param>
34+
/// <param name="globalTranslator">
35+
/// A global <see cref="Translator"/> delegate with which to perform translations.
36+
/// </param>
37+
/// <param name="settings">Configuration for the translation</param>
38+
/// <returns>A <see cref="TranslationContext"/> for the given<paramref name="expression"/>.</returns>
39+
public static TranslationContext For(Expression expression, Translator globalTranslator, ReadableStringSettings settings)
4040
{
4141
return new TranslationContext(ExpressionAnalysisVisitor.Analyse(expression), globalTranslator, settings);
4242
}
@@ -47,17 +47,17 @@ public static TranslationContext For(Expression expression, Translator globalTra
4747
/// </summary>
4848
public IEnumerable<ParameterExpression> JoinedAssignmentVariables => _analyzer.JoinedAssignedVariables;
4949

50-
/// <summary>
51-
/// Configuration for translation in this context
52-
/// </summary>
53-
public ReadableStringSettings Settings { get => _settings; }
54-
55-
/// <summary>
56-
/// Translates the given <paramref name="expression"/> to readable source code.
57-
/// </summary>
58-
/// <param name="expression">The <see cref="Expression"/> to translate.</param>
59-
/// <returns>A source code translation of the given <paramref name="expression"/>.</returns>
60-
public string Translate(Expression expression)
50+
/// <summary>
51+
/// Configuration for translation in this context
52+
/// </summary>
53+
public ReadableStringSettings Settings { get => _settings; }
54+
55+
/// <summary>
56+
/// Translates the given <paramref name="expression"/> to readable source code.
57+
/// </summary>
58+
/// <param name="expression">The <see cref="Expression"/> to translate.</param>
59+
/// <returns>A source code translation of the given <paramref name="expression"/>.</returns>
60+
public string Translate(Expression expression)
6161
{
6262
return _globalTranslator.Invoke(expression, this);
6363
}

0 commit comments

Comments
 (0)