Skip to content

Commit 53cd720

Browse files
committed
2023.3.0-eap2
1 parent 0a43548 commit 53cd720

3 files changed

Lines changed: 12 additions & 7 deletions

File tree

src/Annotations.cs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -788,20 +788,24 @@ 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 not specified, Inner is assumed.
791+
/// If not specified, <see cref="SourceTemplateTargetExpression.Inner"/> is assumed.
792792
/// </summary>
793793
public SourceTemplateTargetExpression Target { get; set; }
794794
}
795+
795796
/// <summary>
796797
/// Provides a value for the <see cref="SourceTemplateAttribute"/> to define how to capture
797798
/// the expression at the point of expansion
798799
/// </summary>
799800
public enum SourceTemplateTargetExpression
800801
{
801802
/// <summary>Selects inner expression</summary>
803+
/// <example><c>value > 42.{caret}</c> captures <c>42</c></example>
802804
/// <example><c>_args = args.{caret}</c> captures <c>args</c></example>
803805
Inner = 0,
806+
804807
/// <summary>Selects outer expression</summary>
808+
/// <example><c>value > 42.{caret}</c> captures <c>value > 42</c></example>
805809
/// <example><c>_args = args.{caret}</c> captures whole assignment</example>
806810
Outer = 1
807811
}
@@ -1012,11 +1016,11 @@ public sealed class RegexPatternAttribute : Attribute { }
10121016
/// </summary>
10131017
public enum InjectedLanguage
10141018
{
1015-
CSS,
1016-
HTML,
1017-
JAVASCRIPT,
1018-
JSON,
1019-
XML
1019+
CSS = 0,
1020+
HTML = 1,
1021+
JAVASCRIPT = 2,
1022+
JSON = 3,
1023+
XML = 4
10201024
}
10211025

10221026
/// <summary>

src/JetBrains.Annotations.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
MAJOR and MINOR version numbers should match latest ReSharper version (to avoid confusion),
77
PATCH version may vary during development and EAPs -->
88
<VersionPrefix>2023.3.0</VersionPrefix>
9-
<VersionSuffix>eap1</VersionSuffix>
9+
<VersionSuffix>eap2</VersionSuffix>
1010

1111
<!-- versioning -->
1212
<Version Condition=" '$(VersionSuffix)' != '' ">$(VersionPrefix)-$(VersionSuffix)</Version>

src/JetBrains.Annotations.nuspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ All usages of JetBrains.Annotations attributes are erased from metadata by defau
1919
</description>
2020
<releaseNotes>
2121
&#8226; Added MustDisposeResourceAttribute and HandlesResourceDisposalAttribute attributes for resource disposal analysis.
22+
&#8226; Added SourceTemplateAttribute.Target property to provide a way to specify expression source template must be applied to.
2223
</releaseNotes>
2324
<tags>jetbrains resharper rider annotations canbenull notnull</tags>
2425
<dependencies>

0 commit comments

Comments
 (0)