提交 42e771c2 编写于 作者: C Cyrus Najmabadi

Add comments

上级 750b1ef6
......@@ -20,11 +20,13 @@ private SyntaxNode ProcessTypeSyntax(TypeSyntax typeSyntax)
{
this.CancellationToken.ThrowIfCancellationRequested();
// Only simplify if us, or a parent, was marked as needing simplification.
if (!alwaysSimplify && !typeSyntax.HasAnnotation(Simplifier.Annotation))
{
return typeSyntax;
}
// Definitely do not simplify us if we were told to not simplify.
if (typeSyntax.HasAnnotation(SimplificationHelpers.DontSimplifyAnnotation))
{
return typeSyntax;
......
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.CSharp.Utilities;
using Microsoft.CodeAnalysis.Options;
using Microsoft.CodeAnalysis.PooledObjects;
namespace Microsoft.CodeAnalysis.CSharp.Simplification
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册