8 overrides of RefKind
Microsoft.CodeAnalysis.CSharp (8)
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.cs (1)
41
public override RefKind
RefKind
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (1)
64
public override RefKind
RefKind
Symbols\ErrorPropertySymbol.cs (1)
44
public override RefKind
RefKind
{ get { return RefKind.None; } }
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
680
public override RefKind
RefKind
Symbols\SignatureOnlyPropertySymbol.cs (1)
50
public override RefKind
RefKind
{ get { return _refKind; } }
Symbols\Source\SourcePropertySymbolBase.cs (1)
357
public sealed override RefKind
RefKind
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (1)
33
public override RefKind
RefKind
=> RefKind.None;
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
47
public override RefKind
RefKind
39 references to RefKind
Microsoft.CodeAnalysis.CSharp (39)
Binder\Binder.ValueChecks.cs (10)
363
if (indexerAccess.Indexer.
RefKind
!= RefKind.None)
386
var useSetAccessor = coreValueKind == BindValueKind.Assignable && indexerAccess.Indexer.
RefKind
!= RefKind.Ref;
1691
propertySymbol.
RefKind
== RefKind.None)
1715
if (RequiresAssignableVariable(valueKind) && propertySymbol.
RefKind
== RefKind.RefReadOnly)
1721
var requiresSet = RequiresAssignableVariable(valueKind) && propertySymbol.
RefKind
== RefKind.None;
1790
var requiresGet = !RequiresAssignmentOnly(valueKind) || propertySymbol.
RefKind
!= RefKind.None;
3766
if (indexerSymbol.
RefKind
== RefKind.None)
3797
if (indexerSymbol.
RefKind
== RefKind.None)
3908
if (propertySymbol.
RefKind
== RefKind.None)
4680
var accessorKind = property.
RefKind
== RefKind.None ? AccessorKind.Set : AccessorKind.Get;
BoundTree\BoundExpressionExtensions.cs (3)
37
return ((BoundPropertyAccess)node).PropertySymbol.
RefKind
;
40
return ((BoundIndexerAccess)node).Indexer.
RefKind
;
71
PropertySymbol f => f.
RefKind
,
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
720
property.
RefKind
.Equals(other.
RefKind
) &&
Emitter\Model\PropertySymbolAdapter.cs (1)
202
return AdaptedPropertySymbol.
RefKind
.IsManagedReference();
FlowAnalysis\AbstractFlowPass.cs (5)
2139
if (property.
RefKind
== RefKind.None)
2194
if (property.
RefKind
== RefKind.None)
2213
if (property.
RefKind
== RefKind.None)
2809
if (property.
RefKind
== RefKind.None)
3713
property.
RefKind
== RefKind.None)
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
540
if (_inExpressionLambda && property.
RefKind
!= RefKind.None)
Lowering\LocalRewriter\LocalRewriter.cs (2)
1090
return ((BoundPropertyAccess)expr).PropertySymbol.
RefKind
!= RefKind.None;
1093
return ((BoundIndexerAccess)expr).Indexer.
RefKind
!= RefKind.None;
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
597
if (propertyAccess.PropertySymbol.
RefKind
== RefKind.None)
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (1)
116
if (isLeftOfAssignment && indexer.
RefKind
== RefKind.None)
Lowering\LocalRewriter\LocalRewriter_PropertyAccess.cs (1)
52
if (isLeftOfAssignment && propertySymbol.
RefKind
== RefKind.None)
Operations\CSharpOperationFactory.cs (1)
884
MethodSymbol? accessor = isObjectOrCollectionInitializer || property.
RefKind
!= RefKind.None
Symbols\Compilation_WellKnownMembers.cs (1)
1182
return property.
RefKind
!= RefKind.None;
Symbols\PropertySymbol.cs (2)
71
public bool ReturnsByRef { get { return this.
RefKind
== RefKind.Ref; } }
76
public bool ReturnsByRefReadonly { get { return this.
RefKind
== RefKind.RefReadOnly; } }
Symbols\PublicModel\PropertySymbol.cs (1)
110
RefKind IPropertySymbol.RefKind => _underlying.
RefKind
;
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
1089
property.
RefKind
,
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
1053
if (overridingProperty.
RefKind
!= overriddenProperty.
RefKind
)
Symbols\SymbolExtensions.cs (1)
506
refKind = property.
RefKind
;
Symbols\TypeSymbol.cs (2)
2013
interfaceMemberRefKind = property.
RefKind
;
2031
hasRefReturnMismatch = ((PropertySymbol)closestMismatch).
RefKind
!= interfaceMemberRefKind;
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
51
return _underlyingProperty.
RefKind
;