From da769850cfc38a4f4cb1549db4ef75177efcdb44 Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Wed, 23 Sep 2020 16:31:04 -0700 Subject: [PATCH] Tweak comment --- .../CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Analyzers/CSharp/Analyzers/UseImplicitObjectCreation/CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs b/src/Analyzers/CSharp/Analyzers/UseImplicitObjectCreation/CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs index de883bc586c..e083a8f48ec 100644 --- a/src/Analyzers/CSharp/Analyzers/UseImplicitObjectCreation/CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs +++ b/src/Analyzers/CSharp/Analyzers/UseImplicitObjectCreation/CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs @@ -55,9 +55,10 @@ private void AnalyzeSyntax(SyntaxNodeAnalysisContext context) // // 1. Variable declarations. i.e. `List list = new ...`. Note: we will suppress ourselves if this // is a field and the 'var' preferences would lead to preferring this as `var list = ...` - // 2. Expr-bodied constructs with an explicit return type. i.e. `List Prop => new ...` or `List - // GetX(...) => ...` The latter doesn't necessarily have the object creation spatially next to the type. - // However, the type is always in a very easy to ascertain location in c#, so it counts as apparent. + // 2. Expression-bodied constructs with an explicit return type. i.e. `List Prop => new ...` or + // `List GetValue(...) => ...` The latter doesn't necessarily have the object creation spatially next to + // the type. However, the type is always in a very easy to ascertain location in C#, so it is treated as + // apparent. var objectCreation = (ObjectCreationExpressionSyntax)context.Node; -- GitLab