41 references to CanBeReferencedByName
Microsoft.CodeAnalysis.CSharp (11)
Binder\Binder_Conversions.cs (1)
2657memberSymbol.CanBeReferencedByName);
Binder\Binder_Lookup.cs (1)
1647/// Does not consider <see cref="Symbol.CanBeReferencedByName"/> - that is left to the caller.
Compilation\CSharpCompilation.cs (1)
5030(member.CanBeReferencedByName || member.IsExplicitInterfaceImplementation() || member.IsIndexer()) &&
Compiler\ClsComplianceChecker.cs (1)
932if (!symbol.CanBeReferencedByName || symbol.IsOverride) return;
FlowAnalysis\CSharpDataFlowAnalysis.cs (2)
392return ImmutableArray.CreateRange(data.Where(s => s.CanBeReferencedByName).OrderBy(s => s, LexicalOrderSymbolComparer.Instance).GetPublicSymbols()); 397return ImmutableArray.CreateRange(data.Where(s => s.CanBeReferencedByName).OrderBy(s => s, LexicalOrderSymbolComparer.Instance).Select(p => p.GetPublicSymbol()));
Symbols\PublicModel\Symbol.cs (1)
248bool ISymbol.CanBeReferencedByName => UnderlyingSymbol.CanBeReferencedByName;
Symbols\Source\SourceAssemblySymbol.cs (2)
2701if (!field.CanBeReferencedByName) 2762if (!field.CanBeReferencedByName)
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
744else if (!this.CanBeReferencedByName || this.MethodKind == MethodKind.Destructor)
Symbols\Symbol.cs (1)
717/// of <see cref="CanBeReferencedByName"/>. The full name check will then be performed in the <see cref="CSharpSemanticModel"/>.
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenTests.cs (2)
13061Assert.True(type.CanBeReferencedByName); 13082Assert.False(field.CanBeReferencedByName);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\TopLevelStatementsTests.cs (8)
51Assert.False(entryPoint.CanBeReferencedByName); 52Assert.True(entryPoint.ContainingType.CanBeReferencedByName); 9108Assert.False(entryPoint.CanBeReferencedByName); 9109Assert.True(entryPoint.ContainingType.CanBeReferencedByName); 9163Assert.False(entryPoint.CanBeReferencedByName); 9164Assert.True(entryPoint.ContainingType.CanBeReferencedByName); 9205Assert.False(entryPoint.CanBeReferencedByName); 9206Assert.True(entryPoint.ContainingType.CanBeReferencedByName);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (19)
CrossLanguageTests.cs (2)
38Assert.Empty(t.GetMembersUnordered().Where(x => x.Kind == SymbolKind.Method && !x.CanBeReferencedByName)); 39Assert.False(t.GetMembersUnordered().Where(x => x.Kind == SymbolKind.Property).First().CanBeReferencedByName); //there's only one.
Symbols\IndexedPropertyTests.cs (8)
991Assert.True(property.GetMethod.CanBeReferencedByName); 993Assert.True(property.SetMethod.CanBeReferencedByName); 999Assert.True(property.GetMethod.CanBeReferencedByName); 1001Assert.True(property.SetMethod.CanBeReferencedByName); 1007Assert.False(property.GetMethod.CanBeReferencedByName); 1009Assert.False(property.SetMethod.CanBeReferencedByName); 1093Assert.True(property.GetMethod.CanBeReferencedByName); 1099Assert.False(property.GetMethod.CanBeReferencedByName);
Symbols\IndexerTests.cs (9)
1159Assert.True(interfaceEvent.CanBeReferencedByName); 1160Assert.True(interfaceProperty.CanBeReferencedByName); 1161Assert.False(interfaceIndexer.CanBeReferencedByName); 1175Assert.False(classEventImpl.CanBeReferencedByName); 1176Assert.False(classPropertyImpl.CanBeReferencedByName); 1177Assert.False(classIndexerImpl.CanBeReferencedByName); 1183Assert.True(classEvent.CanBeReferencedByName); 1184Assert.True(classProperty.CanBeReferencedByName); 1185Assert.False(classIndexer.CanBeReferencedByName);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
FunctionPointerUtilities.cs (1)
37Assert.False(symbol.CanBeReferencedByName);