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