172 references to Symbol
ILLink.RoslynAnalyzer (11)
Microsoft.Analyzers.Extra (1)
Microsoft.AspNetCore.Analyzers (6)
Microsoft.AspNetCore.App.Analyzers (1)
Microsoft.AspNetCore.Components.Analyzers (2)
Microsoft.AspNetCore.Components.SdkAnalyzers (2)
Microsoft.AspNetCore.Mvc.Analyzers (3)
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.CodeStyle (7)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (26)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (20)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (15)
Microsoft.CodeAnalysis.Features (7)
Microsoft.CodeAnalysis.Test.Utilities (42)
Diagnostics\CommonDiagnosticAnalyzers.cs (35)
765CallbackSymbols.Add(context.Symbol);
766context.ReportDiagnostic(Diagnostic.Create(Rule, context.Symbol.Locations[0]));
795var ns = (INamespaceSymbol)context.Symbol;
1003symbolContext.ReportDiagnostic(Diagnostic.Create(Rule, symbolContext.Symbol.Locations[0]));
1043symbolContext.ReportDiagnostic(Diagnostic.Create(Rule, symbolContext.Symbol.Locations[0], symbolContext.Symbol.Name));
1160if (!pendingSymbols.Remove((INamedTypeSymbol)symbolContext.Symbol))
1177var diagnostic = Diagnostic.Create(Descriptor, symbolContext.Symbol.Locations[0], symbolContext.Symbol.Name);
1219var diagnostic = Diagnostic.Create(Descriptor, symbolContext.Symbol.Locations[0]);
1536sortedCallbackSymbolNames.Add($"{symbolContext.Symbol.Name}(IsGeneratedCode:{symbolContext.IsGeneratedCode})");
1537ReportSymbolDiagnostics(symbolContext.Symbol, symbolContext.ReportDiagnostic);
1601sortedCallbackSymbolEndNames.Add($"{context.Symbol.Name}(IsGeneratedCode:{context.IsGeneratedCode})"));
1700compilationStartContext.RegisterSymbolAction(symbolContext => namedTypes.Add(symbolContext.Symbol), SymbolKind.NamedType);
1804foreach (var location in symbolContext.Symbol.Locations)
1814var diagnostic = Diagnostic.Create(descriptor, symbolContext.Symbol.Locations[0], symbolContext.Symbol.Name);
1864context.ReportDiagnostic(Diagnostic.Create(ParameterDescriptor, context.Symbol.Locations[0]));
2055Assert.Equal(symbolStartContext.Symbol, symbolEndContext.Symbol);
2057if (!symbolsEnded.Add(symbolEndContext.Symbol))
2059diagnostics.Add(Diagnostic.Create(DuplicateEndActionRule, Location.None, symbolEndContext.Symbol.Name, _analyzerId));
2062Assert.False(symbolEndContext.Symbol.IsImplicitlyDeclared);
2117ISymbol symbolEnded = symbolEndContext.Symbol;
2428_symbolCallbacks.Add(c.Symbol);
2429ReportDiagnostic(c.Symbol, c.ReportDiagnostic);
2438_symbolCallbacks.Add(symbolEndContext.Symbol);
2439ReportDiagnostic(symbolEndContext.Symbol, symbolEndContext.ReportDiagnostic);
2450_symbolCallbacks.Add(c.Symbol);
2542var diagnostic = Diagnostic.Create(Descriptor, context.Symbol.Locations[0], _reportedSeverity, additionalLocations: null, properties: null, messageArgs: null);
2610context => context.ReportDiagnostic(Diagnostic.Create(Descriptor, context.Symbol.Locations[0])),
2750ReportSymbolDiagnostics("RegisterSymbolAction", symbolContext.Symbol, symbolContext.Compilation, symbolContext.ReportDiagnostic),
2766ReportSymbolDiagnostics("RegisterSymbolEndAction", symbolEndContext.Symbol, symbolEndContext.Compilation, symbolEndContext.ReportDiagnostic));
2940context.RegisterSymbolAction(context => HandleCallback(context.Symbol.Locations[0], context.Compilation, context.ReportDiagnostic, context.CancellationToken), SymbolKind.NamedType);
3016context.RegisterSymbolAction(symbolContext => AnalyzedSymbols.Add(symbolContext.Symbol), SymbolKind.NamedType, SymbolKind.Method);
3035symbolStartContext.RegisterSymbolEndAction(symbolEndContext => AnalyzedSymbolEndSymbols.Add(symbolEndContext.Symbol));
Microsoft.CodeAnalysis.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (3)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Microsoft.DotNet.CodeAnalysis (2)
Microsoft.Interop.ComInterfaceGenerator (3)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.ML.CodeAnalyzer.Tests (1)
Microsoft.ML.InternalCodeAnalyzer (6)
System.Windows.Forms.Analyzers.CSharp (1)
System.Windows.Forms.Analyzers.VisualBasic (1)