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