@@ -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