Base:
property
RefKind
Microsoft.CodeAnalysis.CSharp.Symbols.LocalSymbol.RefKind
12 references to RefKind
Microsoft.CodeAnalysis.CSharp (12)
Binder\Binder_Statements.cs (3)
1001if (localSymbol.RefKind != RefKind.None) 1010if (!IsInitializerRefKindValid(equalsClauseSyntax, declarator, localSymbol.RefKind, diagnostics, out valueKind, out value)) 1067localSymbol.RefKind != RefKind.None ? ConversionForAssignmentFlags.RefAssignment : ConversionForAssignmentFlags.None);
Binder\ForEachLoopBinder.cs (4)
308if (local.RefKind != RefKind.None) 319switch (local.RefKind) 331throw ExceptionUtilities.UnexpectedValue(local.RefKind); 449if (elementConversionClassification.Kind != ConversionKind.Identity && IterationVariable.RefKind is RefKind.Ref or RefKind.RefReadOnly)
Binder\RefSafetyAnalysis.cs (2)
436Debug.Assert(localSymbol.RefKind == RefKind.None || 450if (localSymbol.RefKind != RefKind.None)
Symbols\Source\SourceLocalSymbol.cs (2)
545BoundExpression initializerOpt = this._initializerBinder.BindInferredVariableInitializer(diagnostics, RefKind, _initializer, _initializer); 569boundInitValue = inProgressBinder.BindVariableOrAutoPropInitializerValue(_initializer, this.RefKind, type, diagnostics);
Symbols\UpdatedContainingSymbolLocal.cs (1)
79public override RefKind RefKind => _underlyingLocal.RefKind;