1 implementation of ILocalReferenceOperation
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
5332internal sealed partial class LocalReferenceOperation : Operation, ILocalReferenceOperation
188 references to ILocalReferenceOperation
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Parser\ConfigurationBinder.cs (1)
108ILocalReferenceOperation l => l.Local.Type,
GenerateDocumentationAndConfigFiles (6)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
347ProcessLocalOrParameter(((ILocalReferenceOperation)child).Local, builder);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
59if (operation is ILocalReferenceOperation { IsDeclaration: true, IsImplicit: false })
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (3)
244public override void VisitLocalReference(ILocalReferenceOperation operation) 474var localReference = (ILocalReferenceOperation)currentOperation;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NullableHelpers.cs (1)
145ILocalReferenceOperation localReference => localReference.Local.Equals(symbol),
ILLink.RoslynAnalyzer (3)
DataFlow\LocalDataFlowVisitor.cs (2)
172public override TValue VisitLocalReference(ILocalReferenceOperation operation, LocalDataFlowState<TValue, TContext, TValueLattice, TContextLattice> state) 366case ILocalReferenceOperation localRef:
IOperationExtensions.cs (1)
38if (operation is ILocalReferenceOperation localReference &&
Microsoft.Analyzers.Extra (3)
AsyncCallInsideUsingBlockAnalyzer.cs (3)
107var assignmentTarget = ((IAssignmentOperation)operation).Target as ILocalReferenceOperation; 189if (operation is not ILocalReferenceOperation localReference)
Microsoft.AspNetCore.App.Analyzers (5)
Kestrel\ListenOnIPv6AnyAnalyzer.cs (1)
77if (addressArgument!.Value is ILocalReferenceOperation localReferenceOperation)
RouteHandlers\DetectAmbiguousRoutes.cs (4)
182if (builder is ILocalReferenceOperation local && other is ILocalReferenceOperation otherLocal) 242if (argument1 is ILocalReferenceOperation local && argument2 is ILocalReferenceOperation otherLocal)
Microsoft.AspNetCore.Components.Analyzers (9)
ForLoopIteratorInClosureAnalyzer.cs (9)
136&& operation.Target is ILocalReferenceOperation target) 141&& assignment.Target is ILocalReferenceOperation assignmentTarget) 212var usedVariables = suspectOperation.Descendants().OfType<ILocalReferenceOperation>(); 220if (incrementOrDecrement.Target is ILocalReferenceOperation localReference 229if (assignment.Target is ILocalReferenceOperation localReference 282public List<ILocalReferenceOperation> IteratorOccurrences { get; } = new(); 321public void AddRelatedOccurrences(IEnumerable<ILocalReferenceOperation> variableReferences) 323foreach (var variableReference in variableReferences) 335foreach (var reference in referencesToReport)
Microsoft.CodeAnalysis (7)
Generated\OperationKind.Generated.cs (1)
66/// <summary>Indicates an <see cref="ILocalReferenceOperation"/>.</summary>
Generated\Operations.Generated.cs (3)
10983public override IOperation VisitLocalReference(ILocalReferenceOperation operation, object? argument) 11516public virtual void VisitLocalReference(ILocalReferenceOperation operation) => DefaultVisit(operation); 11657public virtual TResult? VisitLocalReference(ILocalReferenceOperation operation, TArgument argument) => DefaultVisit(operation, argument);
Operations\ControlFlowGraphBuilder.cs (3)
870!((ILocalReferenceOperation)value).Local.IsFunctionValue) 4491if (op is ILocalReferenceOperation l && l.Local.Equals(local)) 7148public override IOperation VisitLocalReference(ILocalReferenceOperation operation, int? captureIdForResult)
Microsoft.CodeAnalysis.Analyzers (9)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (2)
345invocation.Arguments[0].Value.WalkDownConversion() is ILocalReferenceOperation localReference) 385if (simpleAssignment.Target is ILocalReferenceOperation localReferenceTarget)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\ComputationalComplexityMetrics.cs (1)
137countOperand(((ILocalReferenceOperation)operation).Local);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
347ProcessLocalOrParameter(((ILocalReferenceOperation)child).Local, builder);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
59if (operation is ILocalReferenceOperation { IsDeclaration: true, IsImplicit: false })
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (3)
244public override void VisitLocalReference(ILocalReferenceOperation operation) 474var localReference = (ILocalReferenceOperation)currentOperation;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NullableHelpers.cs (1)
145ILocalReferenceOperation localReference => localReference.Local.Equals(symbol),
Microsoft.CodeAnalysis.AnalyzerUtilities (9)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\ComputationalComplexityMetrics.cs (1)
137countOperand(((ILocalReferenceOperation)operation).Local);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
347ProcessLocalOrParameter(((ILocalReferenceOperation)child).Local, builder);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityFactory.cs (2)
139case ILocalReferenceOperation localReference: 238case ILocalReferenceOperation localReference:
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
2918public override TAbstractAnalysisValue VisitLocalReference(ILocalReferenceOperation operation, object? argument)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
59if (operation is ILocalReferenceOperation { IsDeclaration: true, IsImplicit: false })
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (3)
244public override void VisitLocalReference(ILocalReferenceOperation operation) 474var localReference = (ILocalReferenceOperation)currentOperation;
Microsoft.CodeAnalysis.CodeStyle (9)
src\9547feb31df4cc5d\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
319/// an <see cref="IParameterReferenceOperation"/> or an <see cref="ILocalReferenceOperation"/>
src\roslyn\src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
205=> Unwrap(value) is ILocalReferenceOperation localReference && accumulatorVariable.Equals(localReference.Local);
src\roslyn\src\Analyzers\Core\Analyzers\UseConditionalExpression\ForAssignment\UseConditionalExpressionForAssignmentHelpers.cs (2)
127if (operation is IDeclarationExpressionOperation { Expression: ILocalReferenceOperation localReference }) 147if (operation is ILocalReferenceOperation { Local: var local } &&
src\roslyn\src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
247else if (operation is ILocalReferenceOperation localReference)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
59if (operation is ILocalReferenceOperation { IsDeclaration: true, IsImplicit: false })
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (3)
244public override void VisitLocalReference(ILocalReferenceOperation operation) 474var localReference = (ILocalReferenceOperation)currentOperation;
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
src\939a5660f39ce290\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (3)
171if (trueAssignment.Target is not ILocalReferenceOperation trueLocal) 179if (falseAssignment.Target is not ILocalReferenceOperation falseLocal) 256if (operation is ILocalReferenceOperation localReference &&
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NullableHelpers.cs (1)
145ILocalReferenceOperation localReference => localReference.Local.Equals(symbol),
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
521if (operation is ILocalReferenceOperation { Local.DeclaringSyntaxReferences: [var syntaxRef, ..] } &&
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (2)
478if (operation is ILocalReferenceOperation) 614ILocalReferenceOperation localReference => localReference.Local,
Microsoft.CodeAnalysis.CSharp.Features (3)
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
521if (operation is ILocalReferenceOperation { Local.DeclaringSyntaxReferences: [var syntaxRef, ..] } &&
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (2)
478if (operation is ILocalReferenceOperation) 614ILocalReferenceOperation localReference => localReference.Local,
Microsoft.CodeAnalysis.Features (12)
InlineMethod\AbstractInlineMethodRefactoringProvider.InlineContext.cs (1)
413if (operation is ILocalReferenceOperation localReferenceOperation
src\939a5660f39ce290\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (3)
171if (trueAssignment.Target is not ILocalReferenceOperation trueLocal) 179if (falseAssignment.Target is not ILocalReferenceOperation falseLocal) 256if (operation is ILocalReferenceOperation localReference &&
src\9547feb31df4cc5d\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
319/// an <see cref="IParameterReferenceOperation"/> or an <see cref="ILocalReferenceOperation"/>
src\roslyn\src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
205=> Unwrap(value) is ILocalReferenceOperation localReference && accumulatorVariable.Equals(localReference.Local);
src\roslyn\src\Analyzers\Core\Analyzers\UseConditionalExpression\ForAssignment\UseConditionalExpressionForAssignmentHelpers.cs (2)
127if (operation is IDeclarationExpressionOperation { Expression: ILocalReferenceOperation localReference }) 147if (operation is ILocalReferenceOperation { Local: var local } &&
src\roslyn\src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
247else if (operation is ILocalReferenceOperation localReference)
ValueTracking\ValueTracker.OperationCollector.cs (3)
33ILocalReferenceOperation or 114ILocalReferenceOperation or 148ILocalReferenceOperation localReferenceOperation => AddOperationAsync(operation, localReferenceOperation.Local, cancellationToken),
Microsoft.CodeAnalysis.NetAnalyzers (80)
Microsoft.CodeQuality.Analyzers\Maintainability\AvoidLengthCalculationWhenSlicingToEnd.cs (3)
89ILocalReferenceOperation => false, 285(ILocalReferenceOperation localRef1, ILocalReferenceOperation localRef2) => localRef1.Local == localRef2.Local,
Microsoft.CodeQuality.Analyzers\QualityGuidelines\AssigningSymbolAndItsMemberInSameStatement.cs (1)
64ILocalReferenceOperation localInstance =>
Microsoft.CodeQuality.Analyzers\QualityGuidelines\AvoidMultipleEnumerations\AvoidMultipleEnumerations.DataFlowOperationVisitor.cs (4)
39public override GlobalFlowStateDictionaryAnalysisValue VisitLocalReference(ILocalReferenceOperation operation, object? argument) 47RoslynDebug.Assert(parameterOrLocalReferenceOperation is IParameterReferenceOperation or ILocalReferenceOperation); 132RoslynDebug.Assert(parameterOrLocalOperation is IParameterReferenceOperation or ILocalReferenceOperation); 175if (currentOperation is IParameterReferenceOperation or ILocalReferenceOperation)
Microsoft.CodeQuality.Analyzers\QualityGuidelines\AvoidMultipleEnumerations\AvoidMultipleEnumerationsHelpers.cs (1)
26RoslynDebug.Assert(operation is IParameterReferenceOperation or ILocalReferenceOperation);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\AvoidPropertySelfAssignment.cs (2)
107ILocalReferenceOperation targetLocalReference => 108Equals(targetLocalReference.Local, ((ILocalReferenceOperation)valueArg).Local),
Microsoft.CodeQuality.Analyzers\QualityGuidelines\DoNotPassDisposablesIntoUnawaitedTasks.cs (11)
74foreach (var referencedArg in referencedDisposableArgs) 81private static IEnumerable<ILocalReferenceOperation> GetReferencedDisposableArguments(IInvocationOperation invocation, 93var localReferences = descendants.OfType<ILocalReferenceOperation>(); 112var awaitedInvocationReference = localReferences.FirstOrDefault(r => r.IsAwaited() && 118foreach (var disposeCall in disposeCallsThatDisposeReferencedArgs) 130return new List<ILocalReferenceOperation>(0); 135var referencedDisposableArgs = new List<ILocalReferenceOperation>(); 161return new List<ILocalReferenceOperation>(0); 170private static IEnumerable<ILocalReferenceOperation> GetLocalReferencesFromArguments(IList<IArgumentOperation> args) 176&& conversion.Operand is ILocalReferenceOperation convertedLocalReference) 182return (disposableArg.Value as ILocalReferenceOperation)!;
Microsoft.CodeQuality.Analyzers\QualityGuidelines\RethrowToPreserveStackDetails.cs (2)
44if (throwOperation.GetThrownException() is not ILocalReferenceOperation localReference) 72private static bool IsReassignedInCatch(ICatchClauseOperation catchClause, ILocalReferenceOperation localReference)
Microsoft.NetCore.Analyzers\Performance\AvoidSingleUseOfLocalJsonSerializerOptions.cs (3)
107if (descendant is not ILocalReferenceOperation localRefOperation || 173private static bool IsLocalReferenceInsideChildLoop(ILocalReferenceOperation localRef, IBlockOperation symbolBlock) 316else if (assignment.Target is ILocalReferenceOperation localRef &&
Microsoft.NetCore.Analyzers\Performance\DoNotGuardCall.cs (4)
135(ILocalReferenceOperation localRef1, ILocalReferenceOperation localRef2) => localRef1.Local == localRef2.Local, 171ILocalReferenceOperation targetLocalReference => 172SymbolEqualityComparer.Default.Equals(targetLocalReference.Local, ((ILocalReferenceOperation)argumentValue2).Local),
Microsoft.NetCore.Analyzers\Performance\PreferDictionaryTryMethodsOverContainsKeyGuardAnalyzer.cs (3)
210if (arguments.Any(d => d is ILocalReferenceOperation local && declaredVariables.Any(v => SymbolEqualityComparer.Default.Equals(v, local.Local)))) 555case ILocalReferenceOperation source when targetReference is ILocalReferenceOperation target:
Microsoft.NetCore.Analyzers\Performance\PreferHashDataOverComputeHash.cs (11)
117var localReferenceOperation = (ILocalReferenceOperation)context.Operation; 135else if (invocationOperation.Instance is ILocalReferenceOperation && methodHelper.IsDisposeMethod(invocationOperation)) 168var localSymbol = ((ILocalReferenceOperation)computeHash.Instance!).Local; 216case ILocalReferenceOperation: 391public bool IsLocalReferenceInheritingHashAlgorithm(ILocalReferenceOperation localReferenceOperation) => localReferenceOperation.Local.Type.Inherits(_hashAlgorithmBaseType); 580private readonly PooledConcurrentDictionary<ILocalReferenceOperation, ILocalSymbol> _localReferenceMap = PooledConcurrentDictionary<ILocalReferenceOperation, ILocalSymbol>.GetInstance(); 583public void CollectLocalReferenceInheritingHashAlgorithm(ILocalReferenceOperation localReferenceOperation) => _localReferenceMap.TryAdd(localReferenceOperation, localReferenceOperation.Local); 621var local = ((ILocalReferenceOperation)dispose.Instance!).Local; 669var local = ((ILocalReferenceOperation)computeHash.Instance!).Local;
Microsoft.NetCore.Analyzers\Performance\UseConcreteTypeAnalyzer.Collector.cs (8)
135var localRef = (ILocalReferenceOperation)instance; 196var localRef = (ILocalReferenceOperation)instance; 380var localRef = (ILocalReferenceOperation)op.Expression; 586var localRef = (ILocalReferenceOperation)op;
Microsoft.NetCore.Analyzers\Performance\UseSearchValues.cs (1)
311operation is ILiteralOperation or IFieldReferenceOperation or ILocalReferenceOperation &&
Microsoft.NetCore.Analyzers\Performance\UseSearchValues.Fixer.cs (2)
234if (argument is ILocalReferenceOperation localReference) 343if (operation is ILocalReferenceOperation localReference)
Microsoft.NetCore.Analyzers\Runtime\AvoidRedundantRegexIsMatchBeforeMatch.cs (6)
550if (left is ILocalReferenceOperation leftLocal && 551right is ILocalReferenceOperation rightLocal) 629if (operation is ILocalReferenceOperation localRef) 675ILocalReferenceOperation localRef => localRef.Local, 735ILocalReferenceOperation localRef => localRef.Local, 750ILocalReferenceOperation localRef => localRef.Local,
Microsoft.NetCore.Analyzers\Runtime\AvoidUnreliableStreamRead.Fixer.cs (2)
124(ILocalReferenceOperation localRef1, ILocalReferenceOperation localRef2) => localRef1.Local == localRef2.Local,
Microsoft.NetCore.Analyzers\Runtime\BufferBlockCopyLengthAnalyzer.cs (1)
123if (countArgument.Value is not ILocalReferenceOperation localReferenceOperation)
Microsoft.NetCore.Analyzers\Runtime\PreferConstCharOverConstUnitString.Fixer.cs (2)
37var localReferenceOperation = argumentOperation.Value as ILocalReferenceOperation;
Microsoft.NetCore.Analyzers\Runtime\PreferStringContainsOverIndexOfAnalyzer.cs (3)
124ILocalReferenceOperation localReference = (ILocalReferenceOperation)context.Operation; 133var otherOperand = binaryOperation.LeftOperand is ILocalReferenceOperation ? binaryOperation.RightOperand : binaryOperation.LeftOperand;
Microsoft.NetCore.Analyzers\Runtime\PreventNumericIntPtrUIntPtrBehavioralChanges.cs (1)
159ILocalReferenceOperation local => local.Local,
Microsoft.NetCore.Analyzers\Tasks\UseValueTasksCorrectly.cs (2)
406case ILocalReferenceOperation local: 567OperationKind.LocalReference => ((ILocalReferenceOperation)op).Local.Equals(valueTaskSymbol),
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\CodeMetrics\ComputationalComplexityMetrics.cs (1)
139countOperand(((ILocalReferenceOperation)operation).Local);
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Extensions\IOperationExtensions.cs (3)
518ProcessLocalOrParameter(((ILocalReferenceOperation)child).Local); 663ILocalReferenceOperation localReference => localReference.Local, 933if (operation is ILocalReferenceOperation localReference &&
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityFactory.cs (2)
137case ILocalReferenceOperation localReference: 236case ILocalReferenceOperation localReference:
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
2915public override TAbstractAnalysisValue VisitLocalReference(ILocalReferenceOperation operation, object? argument)
Microsoft.CodeAnalysis.ResxSourceGenerator (6)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\ComputationalComplexityMetrics.cs (1)
137countOperand(((ILocalReferenceOperation)operation).Local);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
347ProcessLocalOrParameter(((ILocalReferenceOperation)child).Local, builder);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
59if (operation is ILocalReferenceOperation { IsDeclaration: true, IsImplicit: false })
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (3)
244public override void VisitLocalReference(ILocalReferenceOperation operation) 474var localReference = (ILocalReferenceOperation)currentOperation;
Microsoft.CodeAnalysis.VisualBasic.Features (1)
ConvertForEachToFor\VisualBasicConvertForEachToForCodeRefactoringProvider.vb (1)
180Dim nextVariable = TryCast(foreachOperation.NextVariables(0), ILocalReferenceOperation)
Microsoft.CodeAnalysis.Workspaces (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
59if (operation is ILocalReferenceOperation { IsDeclaration: true, IsImplicit: false })
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (3)
244public override void VisitLocalReference(ILocalReferenceOperation operation) 474var localReference = (ILocalReferenceOperation)currentOperation;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NullableHelpers.cs (1)
145ILocalReferenceOperation localReference => localReference.Local.Equals(symbol),
Microsoft.Extensions.Configuration.Binder.SourceGeneration (1)
Parser\ConfigurationBinder.cs (1)
108ILocalReferenceOperation l => l.Local.Type,
Roslyn.Diagnostics.Analyzers (12)
AbstractDoNotCopyValue.cs (3)
914public override void VisitLocalReference(ILocalReferenceOperation operation) 1099if (returnedValue is ILocalReferenceOperation { Local.IsRef: false }) 1416var local = ((ILocalReferenceOperation)operation).Local;
PooledArrayBuilderAsRefAnalyzer.cs (1)
65if (instance is not ILocalReferenceOperation localReference)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\ComputationalComplexityMetrics.cs (1)
137countOperand(((ILocalReferenceOperation)operation).Local);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (1)
347ProcessLocalOrParameter(((ILocalReferenceOperation)child).Local, builder);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
59if (operation is ILocalReferenceOperation { IsDeclaration: true, IsImplicit: false })
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (3)
244public override void VisitLocalReference(ILocalReferenceOperation operation) 474var localReference = (ILocalReferenceOperation)currentOperation;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NullableHelpers.cs (1)
145ILocalReferenceOperation localReference => localReference.Local.Equals(symbol),
TemporaryArrayAsRefAnalyzer.cs (1)
63if (instance is not ILocalReferenceOperation localReference)