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