2 implementations of RefKind
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\LocalSymbol.cs (1)
52RefKind ILocalSymbol.RefKind => _underlying.RefKind;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Source\LocalSymbol.vb (1)
298Public ReadOnly Property RefKind As RefKind Implements ILocalSymbol.RefKind
17 references to RefKind
ILLink.RoslynAnalyzer (1)
IOperationExtensions.cs (1)
162 switch (variableDeclaratorOperation.Symbol.RefKind) {
Microsoft.CodeAnalysis (2)
Operations\ControlFlowGraphBuilder.cs (1)
4663return new SimpleAssignmentOperation(isRef: local.RefKind != RefKind.None,
Symbols\ILocalSymbol.cs (1)
34/// Use <see cref="RefKind"/> to get more detailed information.
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
216switch (variableDeclaratorOperation.Symbol.RefKind)
Microsoft.CodeAnalysis.CSharp (1)
SymbolDisplay\SymbolDisplayVisitor.cs (1)
254if (symbol.RefKind == RefKind.RefReadOnly)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (2)
IOperation\IOperationTests.cs (2)
312Assert.Equal(RefKind.RefReadOnly, op.Locals.Single().RefKind); 380Assert.Equal(RefKind.RefReadOnly, op.Locals.Single().RefKind);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\RefFieldTests.cs (1)
15723Assert.Equal(expectedRefKind, local.RefKind);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (7)
Compilation\SemanticModelAPITests.cs (2)
208Assert.Equal(RefKind.RefReadOnly, rxSymbol.RefKind); 240Assert.Equal(RefKind.RefReadOnly, rxSymbol.RefKind);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (2)
43Assert.Equal(RefKind.RefReadOnly, rx.RefKind); 66Assert.Equal(RefKind.RefReadOnly, rxLocal.RefKind);
SymbolDisplay\SymbolDisplayTests.cs (3)
6684Assert.Equal(RefKind.None, local.RefKind); 6729Assert.Equal(RefKind.Ref, local.RefKind); 6776Assert.Equal(RefKind.RefReadOnly, local.RefKind);
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Source\LocalSymbol.vb (1)
298Public ReadOnly Property RefKind As RefKind Implements ILocalSymbol.RefKind
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
216switch (variableDeclaratorOperation.Symbol.RefKind)