15 instantiations of NotNullWhen
Microsoft.Interop.SourceGeneration (15)
ISymbolExtensions.cs (1)
15
public static bool IsAccessibleFromFileScopedClass(this INamedTypeSymbol symbol, [
NotNullWhen
(false)] out string? details)
ManualTypeMarshallingHelper.cs (4)
133
[
NotNullWhen
(true)] out ITypeSymbol? managedType)
315
public static bool TryResolveEntryPointType(INamedTypeSymbol managedType, ITypeSymbol typeInAttribute, bool isLinearCollectionMarshalling, Action<INamedTypeSymbol, INamedTypeSymbol> onArityMismatch, [
NotNullWhen
(true)] out ITypeSymbol? entryPoint)
357
public static bool TryResolveManagedType(INamedTypeSymbol entryPointType, ITypeSymbol typeInAttribute, bool isLinearCollectionMarshalling, Action<INamedTypeSymbol, INamedTypeSymbol> onArityMismatch, [
NotNullWhen
(true)] out ITypeSymbol? managed)
400
public static bool TryResolveMarshallerType(INamedTypeSymbol entryPointType, ITypeSymbol typeInAttribute, Action<INamedTypeSymbol, INamedTypeSymbol> onArityMismatch, [
NotNullWhen
(true)] out ITypeSymbol? marshallerType)
MarshalAsParser.cs (5)
26
private protected abstract bool TryCreateAttribute([
NotNullWhen
(true)] out string? attribute);
28
bool IForwardedMarshallingInfo.TryCreateAttribute([
NotNullWhen
(true)] out string? attribute) => TryCreateAttribute(out attribute);
42
private protected override bool TryCreateAttribute([
NotNullWhen
(true)] out string? attribute)
65
private protected override bool TryCreateAttribute([
NotNullWhen
(true)] out string? attribute)
86
private protected override bool TryCreateAttribute([
NotNullWhen
(true)] out string? attribute)
Marshalling\IForwardedMarshallingInfo.cs (1)
11
bool TryCreateAttribute([
NotNullWhen
(true)] out string? attribute);
MarshallingInfoParser.cs (2)
300
public bool TryGetInfoForElementName(AttributeData attrData, string elementName, GetMarshallingInfoCallback marshallingInfoCallback, IElementInfoProvider rootProvider, [
NotNullWhen
(true)] out TypePositionInfo? info)
327
public bool TryGetInfoForParamIndex(AttributeData attrData, int paramIndex, GetMarshallingInfoCallback marshallingInfoCallback, IElementInfoProvider rootProvider, [
NotNullWhen
(true)] out TypePositionInfo? info)
src\runtime\src\libraries\Common\src\SourceGenerators\ContainingTypeUtilities.cs (1)
53
[
NotNullWhen
(true)] out List<string>? declarations)
SyntaxExtensions.cs (1)
41
public static bool IsInPartialContext(this TypeDeclarationSyntax syntax, [
NotNullWhen
(false)] out SyntaxToken? nonPartialIdentifier)