7 references to MayBeNameofOperator
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Invocation.cs (2)
253if (node.Expression is MemberAccessExpressionSyntax { Expression: InvocationExpressionSyntax receiver, RawKind: (int)SyntaxKind.SimpleMemberAccessExpression } && !receiver.MayBeNameofOperator()) 2206if (node.MayBeNameofOperator())
Binder\LocalBinderFactory.cs (2)
216if (node.MayBeNameofOperator()) 277if (node.Expression is MemberAccessExpressionSyntax { Expression: InvocationExpressionSyntax receiver } && !receiver.MayBeNameofOperator())
Compilation\MemberSemanticModel.cs (1)
341else if ((current is InvocationExpressionSyntax invocation) && invocation.MayBeNameofOperator())
Compiler\MethodCompiler.cs (1)
2147if (id.Parent is InvocationExpressionSyntax invocation && invocation.Expression == id && invocation.MayBeNameofOperator())
Syntax\SyntaxNodeExtensions.cs (1)
83case SyntaxKind.InvocationExpression when ((InvocationExpressionSyntax)syntax).MayBeNameofOperator():