34 references to GetTypeInfoAndVerifyIOperation
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (13)
Semantics\NullableReferenceTypesTests.cs (13)
1800
var type = model.
GetTypeInfoAndVerifyIOperation
(expression);
1894
var s = model.
GetTypeInfoAndVerifyIOperation
(suppressions[0]);
1899
var s2 = model.
GetTypeInfoAndVerifyIOperation
(suppressions[1]);
1904
var c = model.
GetTypeInfoAndVerifyIOperation
(suppressions[2]);
1909
var c2 = model.
GetTypeInfoAndVerifyIOperation
(suppressions[3]);
3338
var typeInfo = sm.
GetTypeInfoAndVerifyIOperation
(reference);
59065
Assert.Equal("System.String?", model.
GetTypeInfoAndVerifyIOperation
(declaration.Type).Type.ToTestDisplayString());
71920
Assert.Equal("System.String?", model.
GetTypeInfoAndVerifyIOperation
(discard1).Type.ToTestDisplayString());
71925
Assert.Equal("System.Object?", model.
GetTypeInfoAndVerifyIOperation
(discard2).Type.ToTestDisplayString());
71930
Assert.Equal("System.String", model.
GetTypeInfoAndVerifyIOperation
(discard3).Type.ToTestDisplayString());
71935
Assert.Equal("System.Object", model.
GetTypeInfoAndVerifyIOperation
(discard4).Type.ToTestDisplayString());
71968
Assert.Equal(CodeAnalysis.NullableAnnotation.None, model.
GetTypeInfoAndVerifyIOperation
(discard1.Designation).Nullability.Annotation);
71978
Assert.Equal("System.Object", model.
GetTypeInfoAndVerifyIOperation
(discard2).Type.ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (20)
Symbols\Source\NullablePublicAPITests.cs (20)
56
var arrayTypes = arrayAccesses.Select(arr => model.
GetTypeInfoAndVerifyIOperation
(arr.Expression).Type).Cast<IArrayTypeSymbol>().ToList();
90
var expressionTypes = invocations.Select(inv => model.
GetTypeInfoAndVerifyIOperation
(inv).Type).Cast<INamedTypeSymbol>().ToList();
1097
var typeInfo = model.
GetTypeInfoAndVerifyIOperation
(((MemberAccessExpressionSyntax)invocation.Expression).Expression);
1123
_ = model.
GetTypeInfoAndVerifyIOperation
(root.DescendantNodes().OfType<EqualsValueClauseSyntax>().Single().Value);
1168
var info = syntaxContext.SemanticModel.
GetTypeInfoAndVerifyIOperation
(syntaxContext.Node);
1170
var specInfo = specModel.
GetTypeInfoAndVerifyIOperation
(oReference);
1220
var dInfo = model.
GetTypeInfoAndVerifyIOperation
(dCast);
1227
var cInfo = model.
GetTypeInfoAndVerifyIOperation
(cCast);
1234
var creationInfo = model.
GetTypeInfoAndVerifyIOperation
(objectCreation);
1268
var leftInfo = model.
GetTypeInfoAndVerifyIOperation
(conditional.WhenTrue);
1269
var rightInfo = model.
GetTypeInfoAndVerifyIOperation
(conditional.WhenFalse);
1397
var speculativeTypeInfo = speculativeModel.
GetTypeInfoAndVerifyIOperation
(inCondition);
1400
speculativeTypeInfo = speculativeModel.
GetTypeInfoAndVerifyIOperation
(whenTrue);
1408
speculativeTypeInfo = speculativeModel.
GetTypeInfoAndVerifyIOperation
(whenFalse);
1445
var speculativeTypeInfo = specModel.
GetTypeInfoAndVerifyIOperation
(yReference);
1952
var typeInfo = model.
GetTypeInfoAndVerifyIOperation
(((VariableDeclarationSyntax)variable.Parent).Type);
2293
var typeInfo = model.
GetTypeInfoAndVerifyIOperation
(((DeclarationExpressionSyntax)variable.Parent).Type);
2466
var typeInfo = model.
GetTypeInfoAndVerifyIOperation
(foreachStatement.Type);
2566
var typeInfo = model.
GetTypeInfoAndVerifyIOperation
(type);
4338
var info = model.
GetTypeInfoAndVerifyIOperation
(expr).Nullability;
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CompilationTestUtils.cs (1)
473
var typeInfo = model.
GetTypeInfoAndVerifyIOperation
(annotation.Expression);