1 implementation of Symbol
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
7772public ILocalSymbol Symbol { get; }
41 references to Symbol
ILLink.RoslynAnalyzer (1)
IOperationExtensions.cs (1)
162 switch (variableDeclaratorOperation.Symbol.RefKind) {
Microsoft.Analyzers.Extra (2)
AsyncCallInsideUsingBlockAnalyzer.cs (2)
102return IsTaskAwaited(block, (operation as IVariableDeclaratorOperation)!.Symbol); 150return declarationGroup.Declarations[0].Declarators[0].Symbol;
Microsoft.CodeAnalysis (7)
Operations\ControlFlowGraphBuilder.cs (6)
3793ILocalSymbol local = ((IVariableDeclaratorOperation)exceptionDeclarationOrExpression).Symbol; 4018ILocalSymbol localSymbol = declarator.Symbol; 4476ILocalSymbol local = declarator.Symbol; 4660ILocalSymbol local = declarator.Symbol; 5429ILocalSymbol local = declarator.Symbol; 5824ILocalSymbol localSymbol = declarator.Symbol;
Operations\OperationExtensions.cs (1)
164arrayBuilder.Add(decl.Symbol);
Microsoft.CodeAnalysis.CodeStyle (4)
src\Analyzers\Core\Analyzers\ForEachCast\AbstractForEachCastDiagnosticAnalyzer.cs (1)
68variableDeclarator.Symbol.Type is not ITypeSymbol iterationType)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
158var hashCodeVariable = declarator.Symbol;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
216switch (variableDeclaratorOperation.Symbol.RefKind)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (1)
275OnWriteReferenceFound(operation.Symbol, operation, ValueUsageInfo.Write);
Microsoft.CodeAnalysis.CodeStyle.Fixes (6)
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (3)
70Contract.ThrowIfNull(variableDeclarator.Symbol.Type); 74var conversion = semanticModel.Compilation.ClassifyCommonConversion(elementType, variableDeclarator.Symbol.Type); 76var rewritten = GetRewrittenCollection(editor.Generator, expression, variableDeclarator.Symbol.Type, conversion);
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
222var variable = declarator.Symbol;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NullableHelpers.cs (2)
149IForEachLoopOperation { LoopControlVariable: IVariableDeclaratorOperation variableDeclarator } => variableDeclarator.Symbol.Equals(symbol), 152IVariableDeclaratorOperation variableDeclarator when includeDeclaration => variableDeclarator.GetVariableInitializer() != null && variableDeclarator.Symbol.Equals(symbol),
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
579Symbol: ILocalSymbol castOther,
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
579Symbol: ILocalSymbol castOther,
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (1)
75localsToIsAssignedMap.GetOrAdd(declarator.Symbol, hasInitializer);
Microsoft.CodeAnalysis.Features (9)
InlineMethod\AbstractInlineMethodRefactoringProvider.InlineContext.cs (1)
411_allSymbols.Add(variableDeclarationOperation.Symbol);
IntroduceUsingStatement\AbstractIntroduceUsingStatementCodeRefactoringProvider.cs (2)
119var localType = declarator.Symbol.Type; 132return declarator.Symbol.Name;
src\Analyzers\Core\Analyzers\ForEachCast\AbstractForEachCastDiagnosticAnalyzer.cs (1)
68variableDeclarator.Symbol.Type is not ITypeSymbol iterationType)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
158var hashCodeVariable = declarator.Symbol;
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (3)
70Contract.ThrowIfNull(variableDeclarator.Symbol.Type); 74var conversion = semanticModel.Compilation.ClassifyCommonConversion(elementType, variableDeclarator.Symbol.Type); 76var rewritten = GetRewrittenCollection(editor.Generator, expression, variableDeclarator.Symbol.Type, conversion);
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
222var variable = declarator.Symbol;
Microsoft.CodeAnalysis.Test.Utilities (5)
Compilation\OperationTreeVerifier.cs (1)
491LogSymbol(operation.Symbol, "Symbol");
Compilation\TestOperationVisitor.cs (1)
134Assert.NotNull(operation.Symbol);
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (1)
107ILocalSymbol local = singleVariableDeclaration.Symbol;
Diagnostics\LocalCouldBeConstAnalyzer.cs (1)
85ILocalSymbol local = variable.Symbol;
Diagnostics\OperationTestAnalyzer.cs (1)
853Report(operationContext, decl.Symbol.DeclaringSyntaxReferences.Single().GetSyntax(), LocalVarInitializedDeclarationDescriptor);
Microsoft.CodeAnalysis.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
216switch (variableDeclaratorOperation.Symbol.RefKind)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (1)
275OnWriteReferenceFound(operation.Symbol, operation, ValueUsageInfo.Write);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NullableHelpers.cs (2)
149IForEachLoopOperation { LoopControlVariable: IVariableDeclaratorOperation variableDeclarator } => variableDeclarator.Symbol.Equals(symbol), 152IVariableDeclaratorOperation variableDeclarator when includeDeclaration => variableDeclarator.GetVariableInitializer() != null && variableDeclarator.Symbol.Equals(symbol),