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