2 implementations of IPreprocessingSymbol
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\PreprocessingSymbol.cs (1)
12internal sealed class PreprocessingSymbol : IPreprocessingSymbol
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\PreprocessingSymbol.vb (1)
13Implements IPreprocessingSymbol
59 references to IPreprocessingSymbol
Microsoft.CodeAnalysis (7)
Compilation\Compilation.cs (2)
385public IPreprocessingSymbol CreatePreprocessingSymbol(string name) 388protected abstract IPreprocessingSymbol CommonCreatePreprocessingSymbol(string name);
Compilation\PreprocessingSymbolInfo.cs (2)
17public IPreprocessingSymbol? Symbol { get; } 24internal PreprocessingSymbolInfo(IPreprocessingSymbol? symbol, bool isDefined)
Symbols\SymbolVisitor.cs (1)
113internal virtual void VisitPreprocessing(IPreprocessingSymbol symbol)
Symbols\SymbolVisitor`1.cs (1)
116internal virtual TResult? VisitPreprocessing(IPreprocessingSymbol symbol)
Symbols\SymbolVisitor`2.cs (1)
121internal virtual TResult VisitPreprocessing(IPreprocessingSymbol symbol, TArgument argument)
Microsoft.CodeAnalysis.CodeStyle (13)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFacts.cs (2)
114/// Gets the <see cref="IPreprocessingSymbol"/> that the given node involves. 122IPreprocessingSymbol? GetPreprocessingSymbol(SemanticModel semanticModel, SyntaxNode node);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
69/// <item>Two <see cref="IPreprocessingSymbol"/>s are the "same" if they have
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PreprocessingSymbolKey.cs (3)
9private sealed class PreprocessingSymbolKey : AbstractSymbolKey<IPreprocessingSymbol> 13public sealed override void Create(IPreprocessingSymbol symbol, SymbolKeyWriter visitor) 16protected sealed override SymbolKeyResolution Resolve(SymbolKeyReader reader, IPreprocessingSymbol? contextualSymbol, out string? failureReason)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
194else if (symbol is IPreprocessingSymbol preprocessingSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
133SymbolKind.Preprocessing => PreprocessingSymbolsAreEquivalent((IPreprocessingSymbol)x, (IPreprocessingSymbol)y), 658private static bool PreprocessingSymbolsAreEquivalent(IPreprocessingSymbol x, IPreprocessingSymbol y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
74SymbolKind.Preprocessing => CombineHashCodes((IPreprocessingSymbol)x, currentHash), 294private static int CombineHashCodes(IPreprocessingSymbol x, int currentHash)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SemanticsFactsService\AbstractSemanticFactsService.cs (1)
257public IPreprocessingSymbol GetPreprocessingSymbol(SemanticModel semanticModel, SyntaxNode node)
Microsoft.CodeAnalysis.CSharp (2)
Compilation\CSharpCompilation.cs (1)
337protected override IPreprocessingSymbol CommonCreatePreprocessingSymbol(string name)
SymbolDisplay\SymbolDisplayVisitor.cs (1)
344internal override void VisitPreprocessing(IPreprocessingSymbol symbol)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (2)
398public IPreprocessingSymbol? GetPreprocessingSymbol(SemanticModel semanticModel, SyntaxNode node) 407private static IPreprocessingSymbol? CreatePreprocessingSymbol(SemanticModel model, SyntaxToken identifier)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\SemanticModelAPITests.cs (1)
4760var preprocessingSymbol = model.GetPreprocessingSymbolInfo(identifier).Symbol;
SymbolDisplay\SymbolDisplayTests.cs (1)
9027var preprocessingSymbol = preprocessingSymbolInfo.Symbol;
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (2)
398public IPreprocessingSymbol? GetPreprocessingSymbol(SemanticModel semanticModel, SyntaxNode node) 407private static IPreprocessingSymbol? CreatePreprocessingSymbol(SemanticModel model, SyntaxToken identifier)
Microsoft.CodeAnalysis.Features (1)
FindUsages\DefinitionItemFactory.cs (1)
227if (definition is IAssemblySymbol or IModuleSymbol or INamespaceSymbol { IsGlobalNamespace: true } or IPreprocessingSymbol)
Microsoft.CodeAnalysis.VisualBasic (2)
Compilation\VisualBasicCompilation.vb (1)
2847Protected Overrides Function CommonCreatePreprocessingSymbol(name As String) As IPreprocessingSymbol
SymbolDisplay\SymbolDisplayVisitor.vb (1)
318Friend Overrides Sub VisitPreprocessing(symbol As IPreprocessingSymbol)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SemanticFacts\VisualBasicSemanticFacts.vb (2)
291Public Function GetPreprocessingSymbol(model As SemanticModel, node As SyntaxNode) As IPreprocessingSymbol Implements ISemanticFacts.GetPreprocessingSymbol 307Private Shared Function CreatePreprocessingSymbol(model As SemanticModel, token As SyntaxToken) As IPreprocessingSymbol
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SemanticFacts\VisualBasicSemanticFacts.vb (2)
291Public Function GetPreprocessingSymbol(model As SemanticModel, node As SyntaxNode) As IPreprocessingSymbol Implements ISemanticFacts.GetPreprocessingSymbol 307Private Shared Function CreatePreprocessingSymbol(model As SemanticModel, token As SyntaxToken) As IPreprocessingSymbol
Microsoft.CodeAnalysis.Workspaces (22)
FindSymbols\FindReferences\DependentProjectsFinder.cs (1)
46if (symbols.Any(static s => s is INamespaceSymbol or IPreprocessingSymbol or IDynamicTypeSymbol))
FindSymbols\FindReferences\Finders\PreprocessingSymbolReferenceFinder.cs (4)
15internal sealed class PreprocessingSymbolReferenceFinder : AbstractReferenceFinder<IPreprocessingSymbol> 17protected override bool CanFind(IPreprocessingSymbol symbol) 21IPreprocessingSymbol symbol, 40IPreprocessingSymbol symbol,
Shared\Extensions\SemanticModelExtensions.cs (1)
90IPreprocessingSymbol? preprocessingSymbol = null;
Shared\Extensions\TokenSemanticInfo.cs (2)
16IPreprocessingSymbol preprocessingSymbol, 27public readonly IPreprocessingSymbol PreprocessingSymbol = preprocessingSymbol;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFacts.cs (2)
114/// Gets the <see cref="IPreprocessingSymbol"/> that the given node involves. 122IPreprocessingSymbol? GetPreprocessingSymbol(SemanticModel semanticModel, SyntaxNode node);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
69/// <item>Two <see cref="IPreprocessingSymbol"/>s are the "same" if they have
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PreprocessingSymbolKey.cs (3)
9private sealed class PreprocessingSymbolKey : AbstractSymbolKey<IPreprocessingSymbol> 13public sealed override void Create(IPreprocessingSymbol symbol, SymbolKeyWriter visitor) 16protected sealed override SymbolKeyResolution Resolve(SymbolKeyReader reader, IPreprocessingSymbol? contextualSymbol, out string? failureReason)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
194else if (symbol is IPreprocessingSymbol preprocessingSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (4)
133SymbolKind.Preprocessing => PreprocessingSymbolsAreEquivalent((IPreprocessingSymbol)x, (IPreprocessingSymbol)y), 658private static bool PreprocessingSymbolsAreEquivalent(IPreprocessingSymbol x, IPreprocessingSymbol y)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
74SymbolKind.Preprocessing => CombineHashCodes((IPreprocessingSymbol)x, currentHash), 294private static int CombineHashCodes(IPreprocessingSymbol x, int currentHash)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SemanticsFactsService\AbstractSemanticFactsService.cs (1)
257public IPreprocessingSymbol GetPreprocessingSymbol(SemanticModel semanticModel, SyntaxNode node)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
LanguageService\CSharpHelpContextService.cs (1)
207if (symbol is IPreprocessingSymbol)