2 overrides of IsInsideNameof
Microsoft.CodeAnalysis.CSharp (2)
Binder\BuckStopsHereBinder.cs (1)
65internal override bool IsInsideNameof => false;
Binder\NameofBinder.cs (1)
48internal override bool IsInsideNameof => IsNameofOperator || base.IsInsideNameof;
21 references to IsInsideNameof
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder.CapturedParametersFinder.cs (1)
157isInsideNameof ??= enclosingBinder.IsInsideNameof;
Binder\Binder.cs (1)
79internal virtual bool IsInsideNameof => NextRequired.IsInsideNameof;
Binder\Binder_Expressions.cs (15)
561if (!expr.HasAnyErrors && !IsInsideNameof) 581if (IsEarlyAttributeBinder && result.Kind == BoundKind.MethodGroup && (!IsInsideNameof || EnclosingNameofArgument != node)) 1799if (!IsInMethodBody && !IsInsideNameof) 1941return (containingMethod.MethodKind == MethodKind.AnonymousFunction || containingMethod.MethodKind == MethodKind.LocalFunction) && !IsInsideNameof; // false in EE evaluation method 2067var constantValueOpt = localSymbol.IsConst && !IsInsideNameof && !type.IsErrorType() 2080!IsInsideNameof) 2090IsInsideNameof); 2117!IsInsideNameof) 2135!IsInsideNameof) 2262if (!IsInsideNameof || (EnclosingNameofArgument != node && !node.IsFeatureEnabled(MessageID.IDS_FeatureInstanceMemberInNameof))) 2294if (IsInsideNameof) 8534if (!hasError && fieldSymbol.IsFixedSizeBuffer && !IsInsideNameof) 8579if (fieldSymbol.IsConst && !IsInsideNameof) 8809if (!IsInsideNameof) 8826if (instanceReceiver == false && !IsInsideNameof)
Binder\Binder_Symbols.cs (2)
1015(IsInsideNameof && 1494!IsInsideNameof)
Binder\NameofBinder.cs (1)
48internal override bool IsInsideNameof => IsNameofOperator || base.IsInsideNameof;
Compilation\CSharpSemanticModel.cs (1)
1618if (parentExpr != null && !(parentExpr.Parent is XmlNameAttributeSyntax) && !SyntaxFacts.IsInTypeOnlyContext(parentExpr) && !binder.IsInsideNameof)