未验证 提交 307fc6b7 编写于 作者: F Fred Silberberg 提交者: GitHub

Apply suggestions from code review

Co-authored-by: NJason Malinowski <jason@jason-m.com>
上级 67b59f65
...@@ -725,7 +725,7 @@ internal bool IsGeneratedCode(SyntaxTreeOptionsProvider? provider, CancellationT ...@@ -725,7 +725,7 @@ internal bool IsGeneratedCode(SyntaxTreeOptionsProvider? provider, CancellationT
return provider?.IsGenerated(this, cancellationToken) switch return provider?.IsGenerated(this, cancellationToken) switch
{ {
null or GeneratedKind.Unknown => isGeneratedHeuristic(), null or GeneratedKind.Unknown => isGeneratedHeuristic(),
GeneratedKind kind => kind == GeneratedKind.MarkedGenerated GeneratedKind kind => kind != GeneratedKind.NotGenerated
}; };
bool isGeneratedHeuristic() bool isGeneratedHeuristic()
......
...@@ -7,7 +7,7 @@ namespace Microsoft.CodeAnalysis ...@@ -7,7 +7,7 @@ namespace Microsoft.CodeAnalysis
public enum GeneratedKind public enum GeneratedKind
{ {
/// <summary> /// <summary>
/// Whether the <see cref="SyntaxTree"/> is automatically generated is unknown. /// It is unknown if the <see cref="SyntaxTree"/> is automatically generated.
/// </summary> /// </summary>
Unknown, Unknown,
/// <summary> /// <summary>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册