diff --git a/src/Analyzers/CSharp/Analyzers/UseImplicitObjectCreation/CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs b/src/Analyzers/CSharp/Analyzers/UseImplicitObjectCreation/CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs index de883bc586c13872ec87950c33e4b134558c5512..e083a8f48ecf5dde7a064fbd175ebd5d7b619272 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;