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