37 overrides of ReturnTypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (37)
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
145
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Lowering\SynthesizedMethodBaseSymbol.cs (1)
191
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.ConstructorSymbol.cs (1)
58
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.EqualsMethodSymbol.cs (1)
43
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.GetHashCodeMethodSymbol.cs (1)
47
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertyAccessorSymbol.cs (1)
44
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.ToStringMethodSymbol.cs (1)
47
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\ErrorMethodSymbol.cs (1)
165
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Extensions\RewrittenMethodSymbol.cs (1)
40
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
768
public override TypeWithAnnotations
ReturnTypeWithAnnotations
{ get; }
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
668
public override TypeWithAnnotations
ReturnTypeWithAnnotations
=> Signature.ReturnParam.TypeWithAnnotations;
Symbols\NativeIntegerTypeSymbol.cs (1)
356
public override TypeWithAnnotations
ReturnTypeWithAnnotations
=> _container.SubstituteUnderlyingType(UnderlyingMethod.ReturnTypeWithAnnotations);
Symbols\ReducedExtensionMethodSymbol.cs (1)
494
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Retargeting\RetargetingMethodSymbol.cs (1)
129
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\SignatureOnlyMethodSymbol.cs (1)
77
public override TypeWithAnnotations
ReturnTypeWithAnnotations
{ get { return _returnType; } }
Symbols\Source\LambdaSymbol.cs (1)
159
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Source\LocalFunctionSymbol.cs (1)
235
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Source\SourceConstructorSymbolBase.cs (1)
151
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
159
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Source\SourceDestructorSymbol.cs (1)
121
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Source\SourceEventAccessorSymbol.cs (1)
160
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Source\SourceOrdinaryMethodOrUserDefinedOperatorSymbol.cs (1)
185
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
346
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\SubstitutedMethodSymbol.cs (1)
230
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
170
public override TypeWithAnnotations
ReturnTypeWithAnnotations
{ get; }
Symbols\Synthesized\SynthesizedEmbeddedExtensionMarkerNameAttributeSymbol.cs (1)
169
public override TypeWithAnnotations
ReturnTypeWithAnnotations
=> _nameProperty.TypeWithAnnotations;
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (3)
395
public override TypeWithAnnotations
ReturnTypeWithAnnotations
=> TypeWithAnnotations.Create(_getAwaiterGetResultCall.Type);
461
public override TypeWithAnnotations
ReturnTypeWithAnnotations
=> _returnType;
560
public override TypeWithAnnotations
ReturnTypeWithAnnotations
=> _returnType;
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (1)
211
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
101
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
154
public sealed override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
144
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
225
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
189
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (1)
160
public override TypeWithAnnotations
ReturnTypeWithAnnotations
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
135
public override TypeWithAnnotations
ReturnTypeWithAnnotations
214 references to ReturnTypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (65)
Binder\Binder_Expressions.cs (1)
11242
var returnType = returnTypeOverride ?? methodSymbol.
ReturnTypeWithAnnotations
;
Binder\ForEachLoopBinder.cs (2)
268
diagnostics.Add(ErrorCode.ERR_BadGetAsyncEnumerator, expr.Location, getEnumeratorMethod.
ReturnTypeWithAnnotations
, getEnumeratorMethod);
1181
builder.ElementTypeWithAnnotations = builder.CurrentPropertyGetter?.
ReturnTypeWithAnnotations
?? TypeWithAnnotations.Create(GetSpecialType(SpecialType.System_Object, diagnostics, errorLocationSyntax));
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (4)
110
return method.
ReturnTypeWithAnnotations
;
1420
var returnType = delegateType.DelegateInvokeMethod.
ReturnTypeWithAnnotations
;
1475
TypeWithAnnotations sourceReturnType = method.
ReturnTypeWithAnnotations
;
1630
ExactInference(anonymousFunctionReturnType, delegateInvokeMethod.
ReturnTypeWithAnnotations
, ref useSiteInfo);
BoundTree\UnboundLambda.cs (1)
687
return invokeMethod.
ReturnTypeWithAnnotations
;
CodeGen\CodeGenerator.cs (1)
176
var returnTypeWithAnnotations = _method.
ReturnTypeWithAnnotations
;
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
535
isCorrespondingType(invokeMethod.
ReturnTypeWithAnnotations
, otherInvokeMethod.
ReturnTypeWithAnnotations
);
Emitter\Model\MethodReference.cs (1)
89
return ImmutableArray<Cci.ICustomModifier>.CastUp(UnderlyingMethod.
ReturnTypeWithAnnotations
.CustomModifiers);
Emitter\Model\MethodSymbolAdapter.cs (1)
230
return ImmutableArray<Cci.ICustomModifier>.CastUp(AdaptedMethodSymbol.
ReturnTypeWithAnnotations
.CustomModifiers);
FlowAnalysis\NullableWalker.cs (14)
3166
var returnType = delegateOrMethod.
ReturnTypeWithAnnotations
;
4029
return ApplyUnconditionalAnnotations(createMethod.
ReturnTypeWithAnnotations
, annotations).ToTypeWithState().State;
5119
return GetLiftedReturnType(methodOpt.
ReturnTypeWithAnnotations
, leftType.State.Join(rightType.State));
6681
SetResult(node, returnState, method.
ReturnTypeWithAnnotations
);
7092
return TypeWithState.Create(method.
ReturnTypeWithAnnotations
, GetRValueAnnotations(method));
8524
return method.
ReturnTypeWithAnnotations
;
10059
var methodReturnType = method.
ReturnTypeWithAnnotations
;
11175
targetTypeOfOperandConversion = operandConversion.Method.
ReturnTypeWithAnnotations
;
11226
resultOfIncrementType = GetLiftedReturnTypeIfNecessary(isLifted, incrementOperator.
ReturnTypeWithAnnotations
, operandType.State);
11871
currentPropertyGetter.
ReturnTypeWithAnnotations
.ToTypeWithState(),
11879
var result = new VisitResult(GetReturnTypeWithState(moveNextAsyncMethod), moveNextAsyncMethod.
ReturnTypeWithAnnotations
);
11894
var result = new VisitResult(GetReturnTypeWithState(disposeAsyncMethod), disposeAsyncMethod.
ReturnTypeWithAnnotations
);
12130
resultType = GetLiftedReturnTypeIfNecessary(isLifted, method.
ReturnTypeWithAnnotations
, operandResult.State);
12404
SetResultType(node, reinferredGetResult.
ReturnTypeWithAnnotations
.ToTypeWithState());
Lowering\LocalRewriter\LocalRewriter.cs (1)
416
predicate(localFunction.
ReturnTypeWithAnnotations
) || localFunction.ParameterTypesWithAnnotations.Any(predicate);
Lowering\SynthesizedMethodBaseSymbol.cs (1)
193
get { return this.TypeMap.SubstituteType(this.BaseMethod.OriginalDefinition.
ReturnTypeWithAnnotations
); }
Symbols\Extensions\RewrittenMethodSymbol.cs (1)
42
get { return _typeMap.SubstituteType(_originalMethod.
ReturnTypeWithAnnotations
); }
Symbols\MemberSymbolExtensions.cs (1)
444
var methodReturnType = method.
ReturnTypeWithAnnotations
;
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (1)
284
TypeWithAnnotations candidateMethodType = candidateMethod.
ReturnTypeWithAnnotations
;
Symbols\MethodSymbol.cs (4)
249
public TypeSymbol ReturnType =>
ReturnTypeWithAnnotations
.Type;
966
if (DeriveUseSiteInfoFromType(ref result, this.
ReturnTypeWithAnnotations
,
983
if (this.
ReturnTypeWithAnnotations
.GetUnificationUseSiteDiagnosticRecursive(ref diagnosticInfo, this, ref unificationCheckedTypes) ||
1169
var type = this.
ReturnTypeWithAnnotations
;
Symbols\NativeIntegerTypeSymbol.cs (1)
356
public override TypeWithAnnotations ReturnTypeWithAnnotations => _container.SubstituteUnderlyingType(UnderlyingMethod.
ReturnTypeWithAnnotations
);
Symbols\OverriddenOrHiddenMembersHelpers.cs (1)
893
var methodReturnType = method.
ReturnTypeWithAnnotations
;
Symbols\PublicModel\MethodSymbol.cs (3)
86
Interlocked.CompareExchange(ref _lazyReturnType, _underlying.
ReturnTypeWithAnnotations
.GetPublicSymbol(), null);
97
return _underlying.
ReturnTypeWithAnnotations
.ToPublicAnnotation();
268
return _underlying.
ReturnTypeWithAnnotations
.CustomModifiers;
Symbols\ReducedExtensionMethodSymbol.cs (1)
496
get { return _typeMap.SubstituteType(_reducedFrom.
ReturnTypeWithAnnotations
); }
Symbols\Retargeting\RetargetingMethodSymbol.cs (1)
136
new TypeWithAnnotations.Boxed(this.RetargetingTranslator.Retarget(_underlyingMethod.
ReturnTypeWithAnnotations
, RetargetOptions.RetargetPrimitiveTypesByTypeCode, this.ContainingType)),
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
1025
translator.Retarget(method.
ReturnTypeWithAnnotations
, RetargetOptions.RetargetPrimitiveTypesByTypeCode),
Symbols\Source\CustomModifierUtils.cs (2)
47
returnType = destinationMethod.
ReturnTypeWithAnnotations
; // Default value - in case we don't copy the custom modifiers.
50
var sourceMethodReturnType = constructedSourceMethod.
ReturnTypeWithAnnotations
;
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (7)
996
else if (!IsValidOverrideReturnType(overridingMethod, overridingMethod.
ReturnTypeWithAnnotations
, overriddenMethod.
ReturnTypeWithAnnotations
, diagnostics))
1003
if (DeclaringCompilation.Conversions.HasIdentityOrImplicitReferenceConversion(overridingMethod.
ReturnTypeWithAnnotations
.Type, overriddenMethod.
ReturnTypeWithAnnotations
.Type, ref discardedUseSiteInfo))
1269
var overrideReturnType = getNotNullIfNotNullOutputType(overrideMethod.
ReturnTypeWithAnnotations
, overrideMethod.ReturnNotNullIfParameterNotNull);
1275
baseMethod.
ReturnTypeWithAnnotations
.Type))
1284
baseMethod.
ReturnTypeWithAnnotations
,
Symbols\Source\SourceMemberMethodSymbol.cs (2)
907
var unusedType = this.
ReturnTypeWithAnnotations
;
1018
builder.AddValue(method.
ReturnTypeWithAnnotations
);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
491
bool hasTypeDifferences = !constructedDefinition.
ReturnTypeWithAnnotations
.Equals(implementation.ReturnTypeWithAnnotations, TypeCompareKind.AllIgnoreOptions);
Symbols\SubstitutedMethodSymbol.cs (1)
236
var returnType = Map.SubstituteType(OriginalDefinition.
ReturnTypeWithAnnotations
);
Symbols\SymbolExtensions.cs (1)
488
returnType = method.
ReturnTypeWithAnnotations
;
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (1)
99
baseClone.
ReturnTypeWithAnnotations
:
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
103
get { return _interfaceMethod.
ReturnTypeWithAnnotations
; }
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
193
return _overriddenAccessor.
ReturnTypeWithAnnotations
;
Symbols\TypeSymbol.cs (1)
1615
interfaceMethod.
ReturnTypeWithAnnotations
,
Symbols\TypeSymbolExtensions.cs (3)
969
next = currentPointer.
ReturnTypeWithAnnotations
;
974
typeWithAnnotationsOpt: canDigThroughNullable ? default : currentPointer.
ReturnTypeWithAnnotations
,
975
type: canDigThroughNullable ? currentPointer.
ReturnTypeWithAnnotations
.NullableUnderlyingTypeOrSelf : null,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (63)
CodeGen\CodeGenLocalFunctionTests.cs (1)
5363
Assert.Equal(NullableAnnotation.Annotated, localFn1.
ReturnTypeWithAnnotations
.NullableAnnotation);
CodeGen\CodeGenTupleTest.cs (2)
22284
Assert.Equal("(System.Int32, System.Int32)[missing]", methodM.
ReturnTypeWithAnnotations
.ToTestDisplayString());
22324
Assert.Equal("(System.Int32 Item1, System.Int32 Bob)[missing]", methodM.
ReturnTypeWithAnnotations
.ToTestDisplayString());
Emit\EmitMetadataTests.cs (2)
618
Assert.Equal("Void", ctor.
ReturnTypeWithAnnotations
.Type.Name);
640
Assert.Equal("Void", cctor.
ReturnTypeWithAnnotations
.Type.Name);
Emit\InAttributeModifierTests.cs (58)
1699
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
1719
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
1740
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
1775
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
1819
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
1879
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
1887
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
1902
Assert.Empty(localFunc.
ReturnTypeWithAnnotations
.CustomModifiers);
1936
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
1944
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
1960
Assert.Empty(localFunc.
ReturnTypeWithAnnotations
.CustomModifiers);
1986
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
2002
Assert.Empty(localFunc.
ReturnTypeWithAnnotations
.CustomModifiers);
2031
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
2039
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
2054
Assert.Empty(localFunc.
ReturnTypeWithAnnotations
.CustomModifiers);
2082
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
2095
Assert.Empty(localFunc.
ReturnTypeWithAnnotations
.CustomModifiers);
2131
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
2145
Assert.Empty(localFunc.
ReturnTypeWithAnnotations
.CustomModifiers);
2173
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
2187
Assert.Empty(localFunc.
ReturnTypeWithAnnotations
.CustomModifiers);
2214
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
2222
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
2237
Assert.Empty(localFunc.
ReturnTypeWithAnnotations
.CustomModifiers);
2272
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
2280
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
2296
Assert.Empty(localFunc.
ReturnTypeWithAnnotations
.CustomModifiers);
2323
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
2338
Assert.Empty(localFunc.
ReturnTypeWithAnnotations
.CustomModifiers);
2370
Assert.Empty(localFunc.
ReturnTypeWithAnnotations
.CustomModifiers);
2405
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
2418
Assert.Empty(localFunc.
ReturnTypeWithAnnotations
.CustomModifiers);
2475
Assert.Empty(localFunc.
ReturnTypeWithAnnotations
.CustomModifiers);
2511
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
2525
Assert.Empty(localFunc.
ReturnTypeWithAnnotations
.CustomModifiers);
2555
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
2589
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
2623
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
2648
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
2876
Assert.Empty(invokeMethod.
ReturnTypeWithAnnotations
.CustomModifiers);
2880
Assert.Empty(endInvokeMethod.
ReturnTypeWithAnnotations
.CustomModifiers);
3636
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
3659
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
3681
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
3704
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
3726
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
3749
Assert.Empty(implicitMethod.
ReturnTypeWithAnnotations
.CustomModifiers);
3771
Assert.Empty(implicitMethod.
ReturnTypeWithAnnotations
.CustomModifiers);
3794
Assert.Empty(implicitMethod.
ReturnTypeWithAnnotations
.CustomModifiers);
3816
Assert.Empty(implicitMethod.
ReturnTypeWithAnnotations
.CustomModifiers);
3839
Assert.Empty(implicitMethod.
ReturnTypeWithAnnotations
.CustomModifiers);
4595
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
4676
Assert.Empty(method.
ReturnTypeWithAnnotations
.CustomModifiers);
4724
Assert.Empty(interfaceMethod.
ReturnTypeWithAnnotations
.CustomModifiers);
4729
Assert.Empty(classMethod.
ReturnTypeWithAnnotations
.CustomModifiers);
4753
Assert.Empty(parentMethod.
ReturnTypeWithAnnotations
.CustomModifiers);
4758
Assert.Empty(classMethod.
ReturnTypeWithAnnotations
.CustomModifiers);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Attributes\AttributeTests_Nullable.cs (1)
3762
VerifyBytes(globalNamespace.GetMember<MethodSymbol>("Program.F").
ReturnTypeWithAnnotations
, new byte[] { 0 }, new byte[] { }, "void");
Semantics\RecordTests.cs (2)
12551
var returnType = method.
ReturnTypeWithAnnotations
;
12552
Assert.True(method.OverriddenMethod.
ReturnTypeWithAnnotations
.Equals(returnType, TypeCompareKind.IgnoreNullableModifiersForReferenceTypes));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (48)
Semantics\BindingAsyncTasklikeMoreTests.cs (6)
436
Assert.Equal("C.MyTask", method.
ReturnTypeWithAnnotations
.ToDisplayString());
440
Assert.Equal("C.MyTask<int>", method.
ReturnTypeWithAnnotations
.ToDisplayString());
515
Assert.Equal("MyTask", method.
ReturnTypeWithAnnotations
.ToDisplayString());
519
Assert.Equal("MyTask<int>", method.
ReturnTypeWithAnnotations
.ToDisplayString());
592
Assert.Equal("MyTask", method.
ReturnTypeWithAnnotations
.ToDisplayString());
596
Assert.Equal("MyTask<T>", method.
ReturnTypeWithAnnotations
.ToDisplayString());
Semantics\InitOnlyMemberTests.cs (5)
1462
Assert.Empty(property.GetMethod.
ReturnTypeWithAnnotations
.CustomModifiers);
1479
var modifier = property.SetMethod.
ReturnTypeWithAnnotations
.CustomModifiers.Single();
4769
var modifier = ((SourcePropertySymbol)comp.GlobalNamespace.GetMember("C.Property")).SetMethod.
ReturnTypeWithAnnotations
.CustomModifiers.Single();
4822
var modifier = ((SourcePropertySymbol)comp.GlobalNamespace.GetMember("C.Property")).SetMethod.
ReturnTypeWithAnnotations
.CustomModifiers.Single();
4834
var modifier = ((SourcePropertySymbol)comp.GlobalNamespace.GetMember("C.Property")).SetMethod.
ReturnTypeWithAnnotations
.CustomModifiers.Single();
Semantics\NativeIntegerTests.cs (2)
568
verifyTypes(method.
ReturnTypeWithAnnotations
, underlyingMethod.
ReturnTypeWithAnnotations
);
Semantics\NullableReferenceTypesTests.cs (35)
8945
Assert.Equal(NullableAnnotation.Oblivious, method.
ReturnTypeWithAnnotations
.NullableAnnotation);
8995
verifyTuple(method.
ReturnTypeWithAnnotations
);
9054
Assert.Equal(NullableAnnotation.Oblivious, method.
ReturnTypeWithAnnotations
.NullableAnnotation);
11205
var type = method.
ReturnTypeWithAnnotations
;
11308
var type = method.
ReturnTypeWithAnnotations
;
12432
Assert.Equal(expectMatch, member.
ReturnTypeWithAnnotations
.Equals(member.OverriddenMethod.
ReturnTypeWithAnnotations
, TypeCompareKind.ConsiderEverything));
12903
Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.
ReturnTypeWithAnnotations
, TypeCompareKind.ConsiderEverything));
13055
Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.
ReturnTypeWithAnnotations
, TypeCompareKind.ConsiderEverything));
13146
Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.
ReturnTypeWithAnnotations
, TypeCompareKind.ConsiderEverything));
13212
Assert.False(member.
ReturnTypeWithAnnotations
.Equals(member.OverriddenMethod.ConstructIfGeneric(member.TypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t))).
ReturnTypeWithAnnotations
,
13331
Assert.False(implementing.
ReturnTypeWithAnnotations
.Equals(implemented.
ReturnTypeWithAnnotations
,
13339
Assert.True(implementing.
ReturnTypeWithAnnotations
.Equals(implemented.
ReturnTypeWithAnnotations
,
13418
Assert.False(implementing.
ReturnTypeWithAnnotations
.Equals(implemented.
ReturnTypeWithAnnotations
,
13858
Assert.Equal("C<System.String? modopt(System.Runtime.CompilerServices.IsConst), System.String>", m1.OverriddenMethod.
ReturnTypeWithAnnotations
.ToTestDisplayString());
13859
Assert.Equal("C<System.String modopt(System.Runtime.CompilerServices.IsConst), System.String?>", m1.
ReturnTypeWithAnnotations
.ToTestDisplayString());
13909
Assert.Equal(NullableAnnotation.Annotated, m2.
ReturnTypeWithAnnotations
.NullableAnnotation);
14032
Assert.False(member.
ReturnTypeWithAnnotations
.Equals(member.OverriddenMethod.ConstructIfGeneric(member.TypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t))).
ReturnTypeWithAnnotations
,
14037
Assert.True(m3.
ReturnTypeWithAnnotations
.Equals(m3.OverriddenMethod.ConstructIfGeneric(m3.TypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t))).
ReturnTypeWithAnnotations
,
16654
Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.
ReturnTypeWithAnnotations
, TypeCompareKind.ConsiderEverything));
16739
Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.
ReturnTypeWithAnnotations
, TypeCompareKind.ConsiderEverything));
16824
Assert.True(property.TypeWithAnnotations.Equals(property.GetMethod.
ReturnTypeWithAnnotations
, TypeCompareKind.ConsiderEverything));
17806
Assert.False(implementing.
ReturnTypeWithAnnotations
.Equals(implemented.
ReturnTypeWithAnnotations
,
17814
Assert.True(implementing.
ReturnTypeWithAnnotations
.Equals(implemented.
ReturnTypeWithAnnotations
,
139661
Assert.Equal(NullableAnnotation.Annotated, c2Goo.
ReturnTypeWithAnnotations
.NullableAnnotation);
139817
Assert.Equal(NullableAnnotation.Annotated, dGoo.
ReturnTypeWithAnnotations
.NullableAnnotation);
139892
Assert.Equal(NullableAnnotation.Annotated, dGoo.
ReturnTypeWithAnnotations
.NullableAnnotation);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (34)
DeclarationTests.cs (2)
308
var returnType = method.
ReturnTypeWithAnnotations
;
351
var returnType = method.
ReturnTypeWithAnnotations
;
SymbolDisplay\SymbolDisplayTests.cs (1)
6543
var type = method.GetSymbol<MethodSymbol>().
ReturnTypeWithAnnotations
;
Symbols\AnonymousTypesSymbolTests.cs (1)
1134
Assert.Equal(retType, method.
ReturnTypeWithAnnotations
.ToDisplayString());
Symbols\CustomModifiersTests.cs (1)
1235
Assert.True(test.GetMethod.
ReturnTypeWithAnnotations
.CustomModifiers.SequenceEqual(test.SetMethod.Parameters.First().TypeWithAnnotations.CustomModifiers));
Symbols\InterfaceImplementationTests.cs (1)
1863
var returnType = derived.GetMember<MethodSymbol>(WellKnownMemberNames.DestructorName).
ReturnTypeWithAnnotations
;
Symbols\Metadata\PE\LoadCustomModifiers.cs (5)
56
Assert.Equal(0, m1.
ReturnTypeWithAnnotations
.CustomModifiers.Length);
80
Assert.Equal(1, m5.
ReturnTypeWithAnnotations
.CustomModifiers.Length);
82
var m5Mod = m5.
ReturnTypeWithAnnotations
.CustomModifiers[0];
111
Assert.Equal(1, m7.
ReturnTypeWithAnnotations
.CustomModifiers.Length);
113
var m7Mod = m7.
ReturnTypeWithAnnotations
.CustomModifiers[0];
Symbols\Metadata\PE\LoadingIndexers.cs (1)
732
Assert.NotEqual(returnTypeModoptIndexer.TypeWithAnnotations.CustomModifiers.Length, returnTypeModoptIndexer.GetMethod.
ReturnTypeWithAnnotations
.CustomModifiers.Length);
Symbols\Metadata\PE\LoadingMethods.cs (1)
1352
Assert.False(method.
ReturnTypeWithAnnotations
.IsDefault);
Symbols\Metadata\PE\NoPia.cs (1)
1255
Assert.Equal("System.Collections.Generic.List<I1>", varI7_Bar.
ReturnTypeWithAnnotations
.ToTestDisplayString());
Symbols\Retargeting\RetargetCustomModifiers.cs (6)
68
Assert.Equal(0, m1.
ReturnTypeWithAnnotations
.CustomModifiers.Length);
88
Assert.Equal(1, m5.
ReturnTypeWithAnnotations
.CustomModifiers.Length);
90
var m5Mod = m5.
ReturnTypeWithAnnotations
.CustomModifiers[0];
122
Assert.Equal(1, m7.
ReturnTypeWithAnnotations
.CustomModifiers.Length);
124
var m7Mod = m7.
ReturnTypeWithAnnotations
.CustomModifiers[0];
194
Assert.Equal(0, m1.
ReturnTypeWithAnnotations
.CustomModifiers.Length);
Symbols\Retargeting\RetargetingTests.cs (2)
1233
CheckSymbols(a.
ReturnTypeWithAnnotations
, b.
ReturnTypeWithAnnotations
, false);
Symbols\Source\CustomModifierCopyTests.cs (9)
451
CheckCustomModifier(onReturnType, method.
ReturnTypeWithAnnotations
.CustomModifiers);
1792
Assert.Equal(int8Type, baseProperty.GetMethod.
ReturnTypeWithAnnotations
.CustomModifiers.Single().Modifier());
1793
Assert.Equal(int8Type, derivedProperty.GetMethod.
ReturnTypeWithAnnotations
.CustomModifiers.Single().Modifier());
1798
Assert.Equal(int8Type, baseIndexer.GetMethod.
ReturnTypeWithAnnotations
.CustomModifiers.Single().Modifier());
1799
Assert.Equal(int8Type, derivedIndexer.GetMethod.
ReturnTypeWithAnnotations
.CustomModifiers.Single().Modifier());
2006
Assert.Equal(int8Type, interfaceProperty.GetMethod.
ReturnTypeWithAnnotations
.CustomModifiers.Single().Modifier());
2007
Assert.Equal(int8Type, implementationProperty.GetMethod.
ReturnTypeWithAnnotations
.CustomModifiers.Single().Modifier());
2012
Assert.Equal(int8Type, interfaceIndexer.GetMethod.
ReturnTypeWithAnnotations
.CustomModifiers.Single().Modifier());
2013
Assert.Equal(int8Type, implementationIndexer.GetMethod.
ReturnTypeWithAnnotations
.CustomModifiers.Single().Modifier());
Symbols\StaticAbstractMembersInInterfacesTests.cs (3)
27798
Assert.Equal("System.Void", c3M02Remove.
ReturnTypeWithAnnotations
.ToTestDisplayString());
27867
Assert.Equal("System.Void", c4M02Add.
ReturnTypeWithAnnotations
.ToTestDisplayString());
27880
Assert.Equal("System.Void", c4M02Remove.
ReturnTypeWithAnnotations
.ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
UsesIsNullableVisitor.cs (1)
55
AddIfUsesIsNullable(symbol, symbol.
ReturnTypeWithAnnotations
, inProgress: null) ||