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