10 references to EnsureCSharpSymbolOrNull
Microsoft.CodeAnalysis.CSharp (10)
Compilation\CSharpCompilation.cs (2)
2396
Symbol? symbol0 = symbol.
EnsureCSharpSymbolOrNull
(nameof(symbol));
2397
Symbol? within0 = within.
EnsureCSharpSymbolOrNull
(nameof(within));
Compilation\CSharpSemanticModel.cs (1)
5424
return this.IsAccessible(position, symbol.
EnsureCSharpSymbolOrNull
(nameof(symbol)));
Symbols\SymbolExtensions.cs (7)
404
return (AssemblySymbol?)
EnsureCSharpSymbolOrNull
((ISymbol?)symbol, paramName);
410
return (NamespaceOrTypeSymbol?)
EnsureCSharpSymbolOrNull
((ISymbol?)symbol, paramName);
416
return (NamespaceSymbol?)
EnsureCSharpSymbolOrNull
((ISymbol?)symbol, paramName);
422
return (TypeSymbol?)
EnsureCSharpSymbolOrNull
((ISymbol?)symbol, paramName);
428
return (NamedTypeSymbol?)
EnsureCSharpSymbolOrNull
((ISymbol?)symbol, paramName);
434
return (TypeParameterSymbol?)
EnsureCSharpSymbolOrNull
((ISymbol?)symbol, paramName);
440
return (EventSymbol?)
EnsureCSharpSymbolOrNull
((ISymbol?)symbol, paramName);