18 overrides of ReturnNotNullIfParameterNotNull
Microsoft.CodeAnalysis.CSharp (18)
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
152
public override ImmutableHashSet<string>
ReturnNotNullIfParameterNotNull
=> ImmutableHashSet<string>.Empty;
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.SynthesizedMethodBase.cs (1)
106
public sealed override ImmutableHashSet<string>
ReturnNotNullIfParameterNotNull
=> ImmutableHashSet<string>.Empty;
Symbols\ErrorMethodSymbol.cs (1)
175
public override ImmutableHashSet<string>
ReturnNotNullIfParameterNotNull
=> ImmutableHashSet<string>.Empty;
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
846
public override ImmutableHashSet<string>
ReturnNotNullIfParameterNotNull
=> ImmutableHashSet<string>.Empty;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
668
public override ImmutableHashSet<string>
ReturnNotNullIfParameterNotNull
=> Signature.ReturnParam.NotNullIfParameterNotNull;
Symbols\ReducedExtensionMethodSymbol.cs (1)
499
public override ImmutableHashSet<string>
ReturnNotNullIfParameterNotNull
=> _reducedFrom.ReturnNotNullIfParameterNotNull;
Symbols\SignatureOnlyMethodSymbol.cs (1)
81
public override ImmutableHashSet<string>
ReturnNotNullIfParameterNotNull
=> ImmutableHashSet<string>.Empty;
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
112
public override ImmutableHashSet<string>
ReturnNotNullIfParameterNotNull
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
169
public override ImmutableHashSet<string>
ReturnNotNullIfParameterNotNull
=> ImmutableHashSet<string>.Empty;
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
147
public sealed override ImmutableHashSet<string>
ReturnNotNullIfParameterNotNull
=> ImmutableHashSet<string>.Empty;
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
122
public sealed override ImmutableHashSet<string>
ReturnNotNullIfParameterNotNull
=> ImmutableHashSet<string>.Empty;
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
108
public sealed override ImmutableHashSet<string>
ReturnNotNullIfParameterNotNull
=> ImmutableHashSet<string>.Empty;
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
161
public sealed override ImmutableHashSet<string>
ReturnNotNullIfParameterNotNull
=> ImmutableHashSet<string>.Empty;
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
151
public override ImmutableHashSet<string>
ReturnNotNullIfParameterNotNull
=> ImmutableHashSet<string>.Empty;
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
234
public override ImmutableHashSet<string>
ReturnNotNullIfParameterNotNull
=> ImmutableHashSet<string>.Empty;
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
199
public override ImmutableHashSet<string>
ReturnNotNullIfParameterNotNull
=> ImmutableHashSet<string>.Empty;
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
145
public override ImmutableHashSet<string>
ReturnNotNullIfParameterNotNull
=> ImmutableHashSet<string>.Empty;
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
324
public sealed override ImmutableHashSet<string>
ReturnNotNullIfParameterNotNull
=> UnderlyingMethod.ReturnNotNullIfParameterNotNull;
9 references to ReturnNotNullIfParameterNotNull
Microsoft.CodeAnalysis.CSharp (9)
FlowAnalysis\NullableWalker.cs (5)
2943
EnforceNotNullIfNotNull(node.Syntax, this.State, method.Parameters, method.
ReturnNotNullIfParameterNotNull
, ResultType.State, outputParam: null);
4848
if ((leftType.IsNotNull && methodOpt.
ReturnNotNullIfParameterNotNull
.Contains(methodOpt.Parameters[0].Name)) ||
4849
(rightType.IsNotNull && methodOpt.
ReturnNotNullIfParameterNotNull
.Contains(methodOpt.Parameters[1].Name)))
6854
ImmutableHashSet<string>? returnNotNullIfParameterNotNull = IsAnalyzingAttribute ? null : method?.
ReturnNotNullIfParameterNotNull
;
9421
var returnNotNull = operandState.IsNotNull() && method.
ReturnNotNullIfParameterNotNull
.Contains(parameter.Name);
Lowering\SynthesizedMethodBaseSymbol.cs (1)
210
public sealed override ImmutableHashSet<string> ReturnNotNullIfParameterNotNull => BaseMethod.
ReturnNotNullIfParameterNotNull
;
Symbols\ReducedExtensionMethodSymbol.cs (1)
499
public override ImmutableHashSet<string> ReturnNotNullIfParameterNotNull => _reducedFrom.
ReturnNotNullIfParameterNotNull
;
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
1264
var overrideReturnType = getNotNullIfNotNullOutputType(overrideMethod.ReturnTypeWithAnnotations, overrideMethod.
ReturnNotNullIfParameterNotNull
);
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
324
public sealed override ImmutableHashSet<string> ReturnNotNullIfParameterNotNull => UnderlyingMethod.
ReturnNotNullIfParameterNotNull
;