提交 f9a3ae70 编写于 作者: C Cyrus Najmabadi

Add comment

上级 d1aa885d
......@@ -43,6 +43,10 @@ protected override string GetTitle(string diagnosticId, string nodeText)
protected override SyntaxNode AddSimplificationAnnotationTo(SyntaxNode expressionSyntax)
{
// Add the DoNotAllowVarAnnotation annotation. All the code fixer
// does is pass the tagged node to the simplifier. And we do *not*
// ever want the simplifier to produce 'var' in the 'Simplify type
// names' fixer. only the 'Use var' fixer should produce 'var'.
var annotatedexpressionSyntax = expressionSyntax.WithAdditionalAnnotations(
Simplifier.Annotation, Formatter.Annotation, DoNotAllowVarAnnotation.Annotation);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册