41 references to CanBeReferencedByName
Microsoft.CodeAnalysis.CSharp (11)
Binder\Binder_Conversions.cs (1)
2657
memberSymbol.
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)
932
if (!symbol.
CanBeReferencedByName
|| symbol.IsOverride) return;
FlowAnalysis\CSharpDataFlowAnalysis.cs (2)
392
return ImmutableArray.CreateRange(data.Where(s => s.
CanBeReferencedByName
).OrderBy(s => s, LexicalOrderSymbolComparer.Instance).GetPublicSymbols());
397
return ImmutableArray.CreateRange(data.Where(s => s.
CanBeReferencedByName
).OrderBy(s => s, LexicalOrderSymbolComparer.Instance).Select(p => p.GetPublicSymbol()));
Symbols\PublicModel\Symbol.cs (1)
248
bool ISymbol.CanBeReferencedByName => UnderlyingSymbol.
CanBeReferencedByName
;
Symbols\Source\SourceAssemblySymbol.cs (2)
2701
if (!field.
CanBeReferencedByName
)
2762
if (!field.
CanBeReferencedByName
)
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
744
else 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)
13061
Assert.True(type.
CanBeReferencedByName
);
13082
Assert.False(field.
CanBeReferencedByName
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\TopLevelStatementsTests.cs (8)
51
Assert.False(entryPoint.
CanBeReferencedByName
);
52
Assert.True(entryPoint.ContainingType.
CanBeReferencedByName
);
9108
Assert.False(entryPoint.
CanBeReferencedByName
);
9109
Assert.True(entryPoint.ContainingType.
CanBeReferencedByName
);
9163
Assert.False(entryPoint.
CanBeReferencedByName
);
9164
Assert.True(entryPoint.ContainingType.
CanBeReferencedByName
);
9205
Assert.False(entryPoint.
CanBeReferencedByName
);
9206
Assert.True(entryPoint.ContainingType.
CanBeReferencedByName
);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (19)
CrossLanguageTests.cs (2)
38
Assert.Empty(t.GetMembersUnordered().Where(x => x.Kind == SymbolKind.Method && !x.
CanBeReferencedByName
));
39
Assert.False(t.GetMembersUnordered().Where(x => x.Kind == SymbolKind.Property).First().
CanBeReferencedByName
); //there's only one.
Symbols\IndexedPropertyTests.cs (8)
991
Assert.True(property.GetMethod.
CanBeReferencedByName
);
993
Assert.True(property.SetMethod.
CanBeReferencedByName
);
999
Assert.True(property.GetMethod.
CanBeReferencedByName
);
1001
Assert.True(property.SetMethod.
CanBeReferencedByName
);
1007
Assert.False(property.GetMethod.
CanBeReferencedByName
);
1009
Assert.False(property.SetMethod.
CanBeReferencedByName
);
1093
Assert.True(property.GetMethod.
CanBeReferencedByName
);
1099
Assert.False(property.GetMethod.
CanBeReferencedByName
);
Symbols\IndexerTests.cs (9)
1159
Assert.True(interfaceEvent.
CanBeReferencedByName
);
1160
Assert.True(interfaceProperty.
CanBeReferencedByName
);
1161
Assert.False(interfaceIndexer.
CanBeReferencedByName
);
1175
Assert.False(classEventImpl.
CanBeReferencedByName
);
1176
Assert.False(classPropertyImpl.
CanBeReferencedByName
);
1177
Assert.False(classIndexerImpl.
CanBeReferencedByName
);
1183
Assert.True(classEvent.
CanBeReferencedByName
);
1184
Assert.True(classProperty.
CanBeReferencedByName
);
1185
Assert.False(classIndexer.
CanBeReferencedByName
);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
FunctionPointerUtilities.cs (1)
37
Assert.False(symbol.
CanBeReferencedByName
);