34 references to GetTypeInfoAndVerifyIOperation
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (13)
Semantics\NullableReferenceTypesTests.cs (13)
1788
var type = model.
GetTypeInfoAndVerifyIOperation
(expression);
1882
var s = model.
GetTypeInfoAndVerifyIOperation
(suppressions[0]);
1887
var s2 = model.
GetTypeInfoAndVerifyIOperation
(suppressions[1]);
1892
var c = model.
GetTypeInfoAndVerifyIOperation
(suppressions[2]);
1897
var c2 = model.
GetTypeInfoAndVerifyIOperation
(suppressions[3]);
3326
var typeInfo = sm.
GetTypeInfoAndVerifyIOperation
(reference);
56569
Assert.Equal("System.String?", model.
GetTypeInfoAndVerifyIOperation
(declaration.Type).Type.ToTestDisplayString());
68461
Assert.Equal("System.String?", model.
GetTypeInfoAndVerifyIOperation
(discard1).Type.ToTestDisplayString());
68466
Assert.Equal("System.Object?", model.
GetTypeInfoAndVerifyIOperation
(discard2).Type.ToTestDisplayString());
68471
Assert.Equal("System.String", model.
GetTypeInfoAndVerifyIOperation
(discard3).Type.ToTestDisplayString());
68476
Assert.Equal("System.Object", model.
GetTypeInfoAndVerifyIOperation
(discard4).Type.ToTestDisplayString());
68509
Assert.Equal(CodeAnalysis.NullableAnnotation.None, model.
GetTypeInfoAndVerifyIOperation
(discard1.Designation).Nullability.Annotation);
68519
Assert.Equal("System.Object", model.
GetTypeInfoAndVerifyIOperation
(discard2).Type.ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (20)
Symbols\Source\NullablePublicAPITests.cs (20)
54
var arrayTypes = arrayAccesses.Select(arr => model.
GetTypeInfoAndVerifyIOperation
(arr.Expression).Type).Cast<IArrayTypeSymbol>().ToList();
88
var expressionTypes = invocations.Select(inv => model.
GetTypeInfoAndVerifyIOperation
(inv).Type).Cast<INamedTypeSymbol>().ToList();
1095
var typeInfo = model.
GetTypeInfoAndVerifyIOperation
(((MemberAccessExpressionSyntax)invocation.Expression).Expression);
1121
_ = model.
GetTypeInfoAndVerifyIOperation
(root.DescendantNodes().OfType<EqualsValueClauseSyntax>().Single().Value);
1166
var info = syntaxContext.SemanticModel.
GetTypeInfoAndVerifyIOperation
(syntaxContext.Node);
1168
var specInfo = specModel.
GetTypeInfoAndVerifyIOperation
(oReference);
1218
var dInfo = model.
GetTypeInfoAndVerifyIOperation
(dCast);
1225
var cInfo = model.
GetTypeInfoAndVerifyIOperation
(cCast);
1232
var creationInfo = model.
GetTypeInfoAndVerifyIOperation
(objectCreation);
1266
var leftInfo = model.
GetTypeInfoAndVerifyIOperation
(conditional.WhenTrue);
1267
var rightInfo = model.
GetTypeInfoAndVerifyIOperation
(conditional.WhenFalse);
1395
var speculativeTypeInfo = speculativeModel.
GetTypeInfoAndVerifyIOperation
(inCondition);
1398
speculativeTypeInfo = speculativeModel.
GetTypeInfoAndVerifyIOperation
(whenTrue);
1406
speculativeTypeInfo = speculativeModel.
GetTypeInfoAndVerifyIOperation
(whenFalse);
1443
var speculativeTypeInfo = specModel.
GetTypeInfoAndVerifyIOperation
(yReference);
1953
var typeInfo = model.
GetTypeInfoAndVerifyIOperation
(((VariableDeclarationSyntax)variable.Parent).Type);
2294
var typeInfo = model.
GetTypeInfoAndVerifyIOperation
(((DeclarationExpressionSyntax)variable.Parent).Type);
2467
var typeInfo = model.
GetTypeInfoAndVerifyIOperation
(foreachStatement.Type);
2567
var typeInfo = model.
GetTypeInfoAndVerifyIOperation
(type);
4342
var info = model.
GetTypeInfoAndVerifyIOperation
(expr).Nullability;
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CompilationTestUtils.cs (1)
473
var typeInfo = model.
GetTypeInfoAndVerifyIOperation
(annotation.Expression);