2 overrides of IsInsideNameof
Microsoft.CodeAnalysis.CSharp (2)
Binder\BuckStopsHereBinder.cs (1)
65internal override bool IsInsideNameof => false;
Binder\NameofBinder.cs (1)
56internal override bool IsInsideNameof => IsNameofOperator || base.IsInsideNameof;
22 references to IsInsideNameof
Microsoft.CodeAnalysis.CSharp (22)
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)) 1802if (!IsInMethodBody && !IsInsideNameof) 1944return (containingMethod.MethodKind == MethodKind.AnonymousFunction || containingMethod.MethodKind == MethodKind.LocalFunction) && !IsInsideNameof; // false in EE evaluation method 2070var constantValueOpt = localSymbol.IsConst && !IsInsideNameof && !type.IsErrorType() 2083!IsInsideNameof) 2093IsInsideNameof); 2120!IsInsideNameof) 2138!IsInsideNameof) 2265if (!IsInsideNameof || (EnclosingNameofArgument != node && !node.IsFeatureEnabled(MessageID.IDS_FeatureInstanceMemberInNameof))) 2297if (IsInsideNameof) 8537if (!hasError && fieldSymbol.IsFixedSizeBuffer && !IsInsideNameof) 8582if (fieldSymbol.IsConst && !IsInsideNameof) 8812if (!IsInsideNameof) 8829if (instanceReceiver == false && !IsInsideNameof)
Binder\Binder_Symbols.cs (3)
1015(IsInsideNameof && 1376if (this.IsInsideNameof) 1512!IsInsideNameof)
Binder\NameofBinder.cs (1)
56internal override bool IsInsideNameof => IsNameofOperator || base.IsInsideNameof;
Compilation\CSharpSemanticModel.cs (1)
1618if (parentExpr != null && !(parentExpr.Parent is XmlNameAttributeSyntax) && !SyntaxFacts.IsInTypeOnlyContext(parentExpr) && !binder.IsInsideNameof)