You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write a source generator that not only generates the member, but also generates the doc comment, such as:
context.AddSource($"{name}.g.cs",$@"#pragma warning disable 1591using System.Runtime.CompilerServices;#nullable enablenamespace {namespaceName}{{ partial {typeKind}{symbol.Name}{genericParametersList} {{ /// <inheritdoc cref=""object.ToString""/> [MethodImpl(MethodImplOptions.AggressiveInlining)] public override {readonlyKeyword}partial string ToString() => ToString(null, null); /// <summary> /// Returns a string that represents the current object with the specified format string. /// </summary> /// <param name=""format""> /// The format. If available, the parameter can be <see langword=""null""/>. /// </param> /// <returns>The string result.</returns> [MethodImpl(MethodImplOptions.AggressiveInlining)] public {readonlyKeyword}partial string ToString(string? format) => ToString(format, null); }}}}");
Expected Behavior:
In the main file, because of the success of the code generating, the main file doesn't raise CS1591.
Actual Behavior:
CS1591 still raised.
The text was updated successfully, but these errors were encountered:
Version Used:
VS 16.11.0 Preview 2
Steps to Reproduce:
Write a source generator that not only generates the member, but also generates the doc comment, such as:
Expected Behavior:
In the main file, because of the success of the code generating, the main file doesn't raise CS1591.
Actual Behavior:
CS1591 still raised.
The text was updated successfully, but these errors were encountered: