File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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>
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ All usages of JetBrains.Annotations attributes are erased from metadata by defau
1919 </description >
2020 <releaseNotes >
2121• Added MustDisposeResourceAttribute and HandlesResourceDisposalAttribute attributes for resource disposal analysis.
22+ • 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 >
You can’t perform that action at this time.
0 commit comments