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)
386
if (indexerAccess.Indexer.
RefKind
!= RefKind.None)
409
var useSetAccessor = coreValueKind == BindValueKind.Assignable && indexerAccess.Indexer.
RefKind
!= RefKind.Ref;
1714
propertySymbol.
RefKind
== RefKind.None)
1738
if (RequiresAssignableVariable(valueKind) && propertySymbol.
RefKind
== RefKind.RefReadOnly)
1744
var requiresSet = RequiresAssignableVariable(valueKind) && propertySymbol.
RefKind
== RefKind.None;
1813
var requiresGet = !RequiresAssignmentOnly(valueKind) || propertySymbol.
RefKind
!= RefKind.None;
3789
if (indexerSymbol.
RefKind
== RefKind.None)
3820
if (indexerSymbol.
RefKind
== RefKind.None)
3931
if (propertySymbol.
RefKind
== RefKind.None)
4698
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)
2805
if (property.
RefKind
== RefKind.None)
3709
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
;