Skip to content

Commit 802aa5f

Browse files
author
Slava Tutushkin
committed
Fixed after review,
removed versioning
1 parent 692fd99 commit 802aa5f

1 file changed

Lines changed: 11 additions & 26 deletions

File tree

src/Annotations.cs

Lines changed: 11 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -788,37 +788,22 @@ public sealed class SourceTemplateAttribute : Attribute
788788
{
789789
/// <summary>
790790
/// Allows specifying which expression to capture for template execution if more than one present on the expansion.
791-
/// If omitted, the Default is assumed.
791+
/// If not specified, Inner is assumed.
792792
/// </summary>
793-
/// <example>
794-
/// <code>_args = args.{caret}</code>
795-
/// Inner: args
796-
/// Outer: _args = args
797-
/// </example>
798-
/// <remarks>
799-
/// In versions before 2023.3 the Default used to be the Outer. Since 2023.3 the Default is Inner.
800-
/// <see cref="MinimumVersion"/> if this causes problems in specific cases.
801-
/// </remarks>
802793
public SourceTemplateTargetExpression Target { get; set; }
803-
/// <summary>
804-
/// Allows to hide the source template from the users of the older versions of the product if a serious difference
805-
/// in behaviour was introduced and template is not suitable or applicable in the previous versions.
806-
/// </summary>
807-
/// <remarks>
808-
/// 0 - Applicable for all versions
809-
/// 1 - 2023.3 and higher. Notable change: default capturing expression have been changed from Outer to Inner
810-
/// Products before 2023.2 do not know about this parameter and will ignore it. Workaround: SourceTemplateExAttribute
811-
/// can be added to the solution as an exact copy of this attribute, older version will ignore it and will not suggest
812-
/// templates for expansion.
813-
/// Specify this parameter only if you have a reasons to do so.
814-
/// </remarks>
815-
public int MinimumVersion { get; set; }
816794
}
795+
/// <summary>
796+
/// Provides a value for the <see cref="SourceTemplateAttribute"/> to define how to capture
797+
/// the expression at the point of expansion
798+
/// </summary>
817799
public enum SourceTemplateTargetExpression
818800
{
819-
Default = 0,
820-
Inner = 1,
821-
Outer = 2
801+
/// <summary>Selects inner expression</summary>
802+
/// <example><c>_args = args.{caret}</c> captures <c>args</c></example>
803+
Inner = 0,
804+
/// <summary>Selects outer expression</summary>
805+
/// <example><c>_args = args.{caret}</c> captures whole assignment</example>
806+
Outer = 1
822807
}
823808

824809
/// <summary>

0 commit comments

Comments
 (0)