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

Tweak comment

上级 a2673ea0
......@@ -55,9 +55,10 @@ private void AnalyzeSyntax(SyntaxNodeAnalysisContext context)
//
// 1. Variable declarations. i.e. `List<int> 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<int> Prop => new ...` or `List<int>
// 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<int> Prop => new ...` or
// `List<int> 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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册