提交 51afdccc 编写于 作者: J jmarolf

Offer to generate types inside nameof operator. (changeset 1353278)

上级 4bae8882
......@@ -391,6 +391,11 @@ public static bool IsNamedArgumentIdentifier(this ExpressionSyntax expression)
return expression is IdentifierNameSyntax && expression.Parent is NameColonSyntax;
}
public static bool IsInsideNameOf(this ExpressionSyntax expression)
{
return expression.Ancestors().Any(a => a.IsKind(SyntaxKind.NameOfExpression));
}
private static bool CanReplace(ISymbol symbol)
{
switch (symbol.Kind)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册