6 implementations of ISymbol_CanBeReferencedByName
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
138public bool CanBeReferencedByName => true;
Microsoft.CodeAnalysis.CSharp (2)
Symbols\PublicModel\PreprocessingSymbol.cs (1)
130bool ISymbol.CanBeReferencedByName => SyntaxFacts.IsValidIdentifier(_name) && !SyntaxFacts.ContainsDroppedIdentifierCharacters(_name);
Symbols\PublicModel\Symbol.cs (1)
248bool ISymbol.CanBeReferencedByName => UnderlyingSymbol.CanBeReferencedByName;
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedSymbol.cs (1)
29public bool CanBeReferencedByName => _symbol.CanBeReferencedByName;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Symbol.vb (1)
1283Private ReadOnly Property ISymbol_CanBeReferencedByName As Boolean Implements ISymbol.CanBeReferencedByName
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
138public bool CanBeReferencedByName => true;
37 references to ISymbol_CanBeReferencedByName
Microsoft.CodeAnalysis.CodeStyle (7)
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
137CanBeReferencedByName: true,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (5)
416if (property.IsIndexer || property.CanBeReferencedByName) 422if (ev.CanBeReferencedByName) 429method is { MethodKind: MethodKind.Ordinary, CanBeReferencedByName: true }) 478if (!symbol.CanBeReferencedByName || 639IMethodSymbol { MethodKind: MethodKind.Ordinary, CanBeReferencedByName: true } => true,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
562return ((INamedTypeSymbol)symbol).GetMembers().OfType<IPropertySymbol>().Where(p => p.CanBeReferencedByName);
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
453if (inferredType.IsDelegateType() && !inferredType.CanBeReferencedByName)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\NamingStyle\CSharpNamingStyleDiagnosticAnalyzer.cs (1)
44if (!symbol.CanBeReferencedByName)
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (1)
219if (!member.CanBeReferencedByName)
src\Analyzers\CSharp\Analyzers\NamingStyle\CSharpNamingStyleDiagnosticAnalyzer.cs (1)
44if (!symbol.CanBeReferencedByName)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\OperatorTests.cs (2)
7653Assert.False(symbol1.CanBeReferencedByName); 8427Assert.False(symbol1.CanBeReferencedByName);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\SemanticModelAPITests.cs (1)
4763Assert.True(preprocessingSymbol.CanBeReferencedByName);
Symbols\AnonymousTypesSemanticsTests.cs (1)
1989Assert.False(type.CanBeReferencedByName);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
CompilationTestUtils.cs (2)
125Assert.Equal(reducedMethod.CanBeReferencedByName, reducedFrom.CanBeReferencedByName);
Microsoft.CodeAnalysis.Features (4)
Completion\Providers\AbstractObjectInitializerCompletionProvider.cs (1)
95fieldOrProperty.CanBeReferencedByName &&
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionService.cs (1)
262if (type.CanBeReferencedByName && !type.IsFileLocal)
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedSymbol.cs (1)
29public bool CanBeReferencedByName => _symbol.CanBeReferencedByName;
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (1)
137CanBeReferencedByName: true,
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Symbol.vb (1)
1283Private ReadOnly Property ISymbol_CanBeReferencedByName As Boolean Implements ISymbol.CanBeReferencedByName
Microsoft.CodeAnalysis.Workspaces (10)
Editing\SyntaxGenerator.cs (3)
827return symbol.CanBeReferencedByName; 837return method.CanBeReferencedByName; 851return type.CanBeReferencedByName;
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (1)
297if (symbol.CanBeReferencedByName)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (5)
416if (property.IsIndexer || property.CanBeReferencedByName) 422if (ev.CanBeReferencedByName) 429method is { MethodKind: MethodKind.Ordinary, CanBeReferencedByName: true }) 478if (!symbol.CanBeReferencedByName || 639IMethodSymbol { MethodKind: MethodKind.Ordinary, CanBeReferencedByName: true } => true,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
562return ((INamedTypeSymbol)symbol).GetMembers().OfType<IPropertySymbol>().Where(p => p.CanBeReferencedByName);
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Parser.cs (1)
655if (!fs.CanBeReferencedByName)
Microsoft.Gen.Logging (1)
Parsing\Parser.cs (1)
667if (!ms.CanBeReferencedByName)
Microsoft.ML.InternalCodeAnalyzer (1)
ContractsCheckNameofFixProvider.cs (1)
141if (!s.CanBeReferencedByName)
Microsoft.VisualStudio.LanguageServices (2)
Progression\GraphQueries\CallsGraphQuery.cs (1)
55(newSymbol.CanBeReferencedByName || ((IMethodSymbol)newSymbol).MethodKind == MethodKind.Constructor))
Venus\ContainedLanguageCodeSupport.cs (1)
363if (!member.CanBeReferencedByName)