10 references to EnsureCSharpSymbolOrNull
Microsoft.CodeAnalysis.CSharp (10)
Compilation\CSharpCompilation.cs (2)
2401Symbol? symbol0 = symbol.EnsureCSharpSymbolOrNull(nameof(symbol)); 2402Symbol? within0 = within.EnsureCSharpSymbolOrNull(nameof(within));
Compilation\CSharpSemanticModel.cs (1)
5431return 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);