Base:
property
RefKind
Microsoft.CodeAnalysis.CSharp.Symbols.LocalSymbol.RefKind
12 references to RefKind
Microsoft.CodeAnalysis.CSharp (12)
Binder\Binder_Statements.cs (3)
998if (localSymbol.RefKind != RefKind.None) 1007if (!IsInitializerRefKindValid(equalsClauseSyntax, declarator, localSymbol.RefKind, diagnostics, out valueKind, out value)) 1064localSymbol.RefKind != RefKind.None ? ConversionForAssignmentFlags.RefAssignment : ConversionForAssignmentFlags.None);
Binder\ForEachLoopBinder.cs (4)
323if (local.RefKind != RefKind.None) 334switch (local.RefKind) 346throw ExceptionUtilities.UnexpectedValue(local.RefKind); 471if (elementConversionClassification.Kind != ConversionKind.Identity && IterationVariable.RefKind is RefKind.Ref or RefKind.RefReadOnly)
Binder\RefSafetyAnalysis.cs (2)
492Debug.Assert(localSymbol.RefKind == RefKind.None || 506if (localSymbol.RefKind != RefKind.None)
Symbols\Source\SourceLocalSymbol.cs (2)
563BoundExpression initializerOpt = this._initializerBinder.BindInferredVariableInitializer(diagnostics, RefKind, _initializer, _initializer); 585boundInitValue = this._initializerBinder.BindVariableOrAutoPropInitializerValue(_initializer, this.RefKind, type, diagnostics);
Symbols\UpdatedContainingSymbolLocal.cs (1)
79public override RefKind RefKind => _underlyingLocal.RefKind;