12 instantiations of NotNullWhen
Microsoft.Interop.SourceGeneration (12)
ISymbolExtensions.cs (1)
15
public static bool IsAccessibleFromFileScopedClass(this INamedTypeSymbol symbol, [
NotNullWhen
(false)] out string? details)
ManualTypeMarshallingHelper.cs (3)
241
public static bool TryResolveEntryPointType(INamedTypeSymbol managedType, ITypeSymbol typeInAttribute, bool isLinearCollectionMarshalling, Action<INamedTypeSymbol, INamedTypeSymbol> onArityMismatch, [
NotNullWhen
(true)] out ITypeSymbol? entryPoint)
283
public static bool TryResolveManagedType(INamedTypeSymbol entryPointType, ITypeSymbol typeInAttribute, bool isLinearCollectionMarshalling, Action<INamedTypeSymbol, INamedTypeSymbol> onArityMismatch, [
NotNullWhen
(true)] out ITypeSymbol? managed)
326
public static bool TryResolveMarshallerType(INamedTypeSymbol entryPointType, ITypeSymbol typeInAttribute, Action<INamedTypeSymbol, INamedTypeSymbol> onArityMismatch, [
NotNullWhen
(true)] out ITypeSymbol? marshallerType)
MarshalAsParser.cs (4)
27
private protected abstract bool TryCreateAttributeSyntax([
NotNullWhen
(true)] out AttributeSyntax? attribute);
29
bool IForwardedMarshallingInfo.TryCreateAttributeSyntax([
NotNullWhen
(true)] out AttributeSyntax? attribute) => TryCreateAttributeSyntax(out attribute);
36
private protected override bool TryCreateAttributeSyntax([
NotNullWhen
(true)] out AttributeSyntax? attribute)
65
private protected override bool TryCreateAttributeSyntax([
NotNullWhen
(true)] out AttributeSyntax? attribute)
Marshalling\IForwardedMarshallingInfo.cs (1)
11
bool TryCreateAttributeSyntax([
NotNullWhen
(true)] out AttributeSyntax? attribute);
MarshallingInfoParser.cs (2)
298
public bool TryGetInfoForElementName(AttributeData attrData, string elementName, GetMarshallingInfoCallback marshallingInfoCallback, IElementInfoProvider rootProvider, [
NotNullWhen
(true)] out TypePositionInfo? info)
325
public bool TryGetInfoForParamIndex(AttributeData attrData, int paramIndex, GetMarshallingInfoCallback marshallingInfoCallback, IElementInfoProvider rootProvider, [
NotNullWhen
(true)] out TypePositionInfo? info)
SyntaxExtensions.cs (1)
120
public static bool IsInPartialContext(this TypeDeclarationSyntax syntax, [
NotNullWhen
(false)] out SyntaxToken? nonPartialIdentifier)