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