2 implementations of Type
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.VisualBasic (1)
369 references to Type
ConfigurationSchemaGenerator (1)
ILLink.RoslynAnalyzer (3)
Microsoft.Analyzers.Extra (1)
Microsoft.Analyzers.Local (1)
Microsoft.AspNetCore.Components.Analyzers (1)
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
Microsoft.CodeAnalysis (2)
Microsoft.CodeAnalysis.CodeStyle (10)
Microsoft.CodeAnalysis.CodeStyle.Fixes (5)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (1)
605field.Type,
Microsoft.CodeAnalysis.CSharp (4)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (8)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (25)
CodeGen\CodeGenTupleTest.cs (14)
6405return tuple.TupleElements.Select(t => t.Type.ToTestDisplayString());
6635var tuple1 = (INamedTypeSymbol)((IFieldSymbol)comp.GetMember("Program.F")).Type;
6677var tuple1 = (INamedTypeSymbol)((IFieldSymbol)comp.GetMember("Program.F")).Type;
6716var tuple1 = (INamedTypeSymbol)((IFieldSymbol)comp.GetMember("Program.F")).Type;
6757var tuple1 = (INamedTypeSymbol)((IFieldSymbol)comp.GetMember("Program.F")).Type;
6835var tuple1 = (INamedTypeSymbol)((IFieldSymbol)comp.GetMember("Program.F")).Type;
6865var tuple1 = (INamedTypeSymbol)((IFieldSymbol)comp.GetMember("Program.F")).Type;
6904var tuple1 = (INamedTypeSymbol)((IFieldSymbol)comp.GetMember("Program.F")).Type;
14277f1Tuple = (INamedTypeSymbol)((IFieldSymbol)symbolInfo.Symbol).Type;
27419VerifyTypeFromVisualBasic((INamedTypeSymbol)((IFieldSymbol)containingType.GetMembers("F0").Single()).Type, TupleUnderlyingTypeValue.Null, "System.ValueTuple", "System.ValueTuple");
27420VerifyTypeFromVisualBasic((INamedTypeSymbol)((IFieldSymbol)containingType.GetMembers("F1").Single()).Type, TupleUnderlyingTypeValue.Distinct, "(System.Int32, System.Int32)", "(System.Int32, System.Int32)");
27421VerifyTypeFromVisualBasic((INamedTypeSymbol)((IFieldSymbol)containingType.GetMembers("F2").Single()).Type, TupleUnderlyingTypeValue.Distinct, "(System.Int32 A, System.Int32 B)", "(A As System.Int32, B As System.Int32)");
27422VerifyTypeFromVisualBasic((INamedTypeSymbol)((IFieldSymbol)containingType.GetMembers("F3").Single()).Type, TupleUnderlyingTypeValue.Distinct, "(System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object)", "(System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object, System.Object)");
27423VerifyTypeFromVisualBasic((INamedTypeSymbol)((IFieldSymbol)containingType.GetMembers("F4").Single()).Type, TupleUnderlyingTypeValue.Distinct, "(System.Object, System.Object B, System.Object, System.Object D, System.Object, System.Object F, System.Object, System.Object H)", "(System.Object, B As System.Object, System.Object, D As System.Object, System.Object, F As System.Object, System.Object, H As System.Object)");
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (27)
Semantics\OutVarTests.cs (23)
26431Assert.Equal("System.Int32", ((IFieldSymbol)compilation.GetSemanticModel(tree).GetDeclaredSymbol(x1Decl.VariableDesignation())).Type.ToTestDisplayString());
27028Assert.Equal("System.Int32", ((IFieldSymbol)compilation.GetSemanticModel(tree).GetDeclaredSymbol(x1Decl.VariableDesignation())).Type.ToTestDisplayString());
32203Assert.Equal("var", x1.Type.ToTestDisplayString());
32204Assert.True(x1.Type.IsErrorType());
32233Assert.True(b.Type.IsErrorType());
32244Assert.Equal("System.Int32", x1.Type.ToTestDisplayString());
32273Assert.True(b.Type.IsErrorType());
32284Assert.Equal("System.Int32", x1.Type.ToTestDisplayString());
32313Assert.True(a.Type.IsErrorType());
32324Assert.Equal("System.Int32", x1.Type.ToTestDisplayString());
32332Assert.Equal("var", x1.Type.ToTestDisplayString());
32333Assert.True(x1.Type.IsErrorType());
32370Assert.Equal("var", x1.Type.ToTestDisplayString());
32371Assert.True(x1.Type.IsErrorType());
32387Assert.True(b.Type.IsErrorType());
32390Assert.Equal("System.Int32", x1.Type.ToTestDisplayString());
32391Assert.False(x1.Type.IsErrorType());
32439Assert.Equal("var", x1.Type.ToTestDisplayString());
32440Assert.True(x1.Type.IsErrorType());
32489Assert.Equal("var", x1.Type.ToTestDisplayString());
32490Assert.True(x1.Type.IsErrorType());
32761AssertInfoForDeclarationExpressionSyntax(model, decl, expectedSymbol: local, expectedType: inFieldDeclaratorArgumentlist ? null : local.Type);
32779Assert.Equal(local.Type, model.GetTypeInfo(reference).Type);
Microsoft.CodeAnalysis.CSharp.Features (9)
EncapsulateField\CSharpEncapsulateFieldService.cs (1)
99field.Type,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (15)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (49)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (110)
Utilities\SymbolEquivalenceComparerTests.cs (110)
68Assert.True(SymbolEquivalenceComparer.Instance.Equals(intField1.Type, intField1.Type));
69Assert.True(SymbolEquivalenceComparer.Instance.Equals(intField1.Type, intField2.Type));
70Assert.Equal(SymbolEquivalenceComparer.Instance.GetHashCode(intField1.Type),
71SymbolEquivalenceComparer.Instance.GetHashCode(intField2.Type));
73Assert.True(SymbolEquivalenceComparer.Instance.Equals(intArrayField1.Type, intArrayField1.Type));
74Assert.True(SymbolEquivalenceComparer.Instance.Equals(intArrayField1.Type, intArrayField2.Type));
75Assert.Equal(SymbolEquivalenceComparer.Instance.GetHashCode(intArrayField1.Type),
76SymbolEquivalenceComparer.Instance.GetHashCode(intArrayField2.Type));
78Assert.True(SymbolEquivalenceComparer.Instance.Equals(stringArrayField1.Type, stringArrayField1.Type));
79Assert.True(SymbolEquivalenceComparer.Instance.Equals(stringArrayField1.Type, stringArrayField2.Type));
81Assert.True(SymbolEquivalenceComparer.Instance.Equals(intArrayArrayField1.Type, intArrayArrayField1.Type));
82Assert.True(SymbolEquivalenceComparer.Instance.Equals(intArrayArrayField1.Type, intArrayArrayField2.Type));
84Assert.True(SymbolEquivalenceComparer.Instance.Equals(intArrayRank2Field1.Type, intArrayRank2Field1.Type));
85Assert.True(SymbolEquivalenceComparer.Instance.Equals(intArrayRank2Field1.Type, intArrayRank2Field2.Type));
87Assert.True(SymbolEquivalenceComparer.Instance.Equals(int32Field1.Type, int32Field1.Type));
88Assert.True(SymbolEquivalenceComparer.Instance.Equals(int32Field1.Type, int32Field2.Type));
90Assert.False(SymbolEquivalenceComparer.Instance.Equals(intField1.Type, intArrayField1.Type));
91Assert.False(SymbolEquivalenceComparer.Instance.Equals(intArrayField1.Type, stringArrayField1.Type));
92Assert.False(SymbolEquivalenceComparer.Instance.Equals(stringArrayField1.Type, intArrayArrayField1.Type));
93Assert.False(SymbolEquivalenceComparer.Instance.Equals(intArrayArrayField1.Type, intArrayRank2Field1.Type));
94Assert.False(SymbolEquivalenceComparer.Instance.Equals(intArrayRank2Field1.Type, int32Field1.Type));
96Assert.True(SymbolEquivalenceComparer.Instance.Equals(int32Field1.Type, intField1.Type));
141Assert.True(SymbolEquivalenceComparer.Instance.Equals(csharpIntField1.Type, vbIntField1.Type));
142Assert.True(SymbolEquivalenceComparer.Instance.Equals(csharpIntArrayField1.Type, vbIntArrayField1.Type));
143Assert.True(SymbolEquivalenceComparer.Instance.Equals(csharpStringArrayField1.Type, vbStringArrayField1.Type));
144Assert.True(SymbolEquivalenceComparer.Instance.Equals(csharpIntArrayArrayField1.Type, vbIntArrayArrayField1.Type));
145Assert.True(SymbolEquivalenceComparer.Instance.Equals(csharpInt32Field1.Type, vbInt32Field1.Type));
147Assert.False(SymbolEquivalenceComparer.Instance.Equals(csharpIntField1.Type, vbIntArrayField1.Type));
148Assert.False(SymbolEquivalenceComparer.Instance.Equals(vbIntArrayField1.Type, csharpStringArrayField1.Type));
149Assert.False(SymbolEquivalenceComparer.Instance.Equals(csharpStringArrayField1.Type, vbIntArrayArrayField1.Type));
150Assert.False(SymbolEquivalenceComparer.Instance.Equals(vbIntArrayArrayField1.Type, csharpIntArrayRank2Field1.Type));
151Assert.False(SymbolEquivalenceComparer.Instance.Equals(csharpIntArrayRank2Field1.Type, vbInt32Field1.Type));
153Assert.True(SymbolEquivalenceComparer.Instance.Equals(csharpInt32Field1.Type, vbIntField1.Type));
155Assert.False(SymbolEquivalenceComparer.Instance.Equals(vbIntField1.Type, csharpIntArrayField1.Type));
156Assert.False(SymbolEquivalenceComparer.Instance.Equals(csharpIntArrayField1.Type, vbStringArrayField1.Type));
157Assert.False(SymbolEquivalenceComparer.Instance.Equals(vbStringArrayField1.Type, csharpIntArrayArrayField1.Type));
158Assert.False(SymbolEquivalenceComparer.Instance.Equals(csharpIntArrayArrayField1.Type, vbIntArrayRank2Field1.Type));
159Assert.False(SymbolEquivalenceComparer.Instance.Equals(vbIntArrayRank2Field1.Type, csharpInt32Field1.Type));
161Assert.True(SymbolEquivalenceComparer.Instance.Equals(vbInt32Field1.Type, csharpIntField1.Type));
293var goo_intInstantiation1 = intInstantiation1.Type.GetMembers("goo").Single();
294var goo_stringInstantiation = stringInstantiation.Type.GetMembers("goo").Single();
295var goo_instanceInstantiation = instanceInstantiation.Type.GetMembers("goo").Single();
296var goo_intInstantiation2 = intInstantiation2.Type.GetMembers("goo").Single();
1346var a1 = ((IFieldSymbol)t1.GetMembers("A").Single()).Type;
1347var b1 = ((IFieldSymbol)t1.GetMembers("B").Single()).Type;
1348var c1 = ((IFieldSymbol)t1.GetMembers("C").Single()).Type;
1349var d1 = ((IFieldSymbol)t1.GetMembers("D").Single()).Type;
1350var a2 = ((IFieldSymbol)t2.GetMembers("A").Single()).Type;
1351var b2 = ((IFieldSymbol)t2.GetMembers("B").Single()).Type;
1352var c2 = ((IFieldSymbol)t2.GetMembers("C").Single()).Type;
1353var d2 = ((IFieldSymbol)t2.GetMembers("D").Single()).Type;
1410var a1 = ((IFieldSymbol)t1.GetMembers("A").Single()).Type;
1411var b1 = ((IFieldSymbol)t1.GetMembers("B").Single()).Type;
1412var c1 = ((IFieldSymbol)t1.GetMembers("C").Single()).Type;
1413var d1 = ((IFieldSymbol)t1.GetMembers("D").Single()).Type;
1414var a2 = ((IFieldSymbol)t2.GetMembers("A").Single()).Type;
1415var b2 = ((IFieldSymbol)t2.GetMembers("B").Single()).Type;
1416var c2 = ((IFieldSymbol)t2.GetMembers("C").Single()).Type;
1417var d2 = ((IFieldSymbol)t2.GetMembers("D").Single()).Type;
1473var a1 = ((IFieldSymbol)t1.GetMembers("A").Single()).Type;
1474var b1 = ((IFieldSymbol)t1.GetMembers("B").Single()).Type;
1475var c1 = ((IFieldSymbol)t1.GetMembers("C").Single()).Type;
1476var d1 = ((IFieldSymbol)t1.GetMembers("D").Single()).Type;
1477var a2 = ((IFieldSymbol)t2.GetMembers("A").Single()).Type;
1478var b2 = ((IFieldSymbol)t2.GetMembers("B").Single()).Type;
1479var c2 = ((IFieldSymbol)t2.GetMembers("C").Single()).Type;
1480var d2 = ((IFieldSymbol)t2.GetMembers("D").Single()).Type;
1536var a1 = ((IFieldSymbol)t1.GetMembers("A").Single()).Type;
1537var b1 = ((IFieldSymbol)t1.GetMembers("B").Single()).Type;
1538var c1 = ((IFieldSymbol)t1.GetMembers("C").Single()).Type;
1539var d1 = ((IFieldSymbol)t1.GetMembers("D").Single()).Type;
1540var a2 = ((IFieldSymbol)t2.GetMembers("A").Single()).Type;
1541var b2 = ((IFieldSymbol)t2.GetMembers("B").Single()).Type;
1542var c2 = ((IFieldSymbol)t2.GetMembers("C").Single()).Type;
1543var d2 = ((IFieldSymbol)t2.GetMembers("D").Single()).Type;
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
Microsoft.CodeAnalysis.Features (19)
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.StructuralTypeCollectorVisitor.cs (1)
38=> symbol.Type.Accept(this);
Microsoft.CodeAnalysis.Test.Utilities (4)
Microsoft.CodeAnalysis.VisualBasic (4)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (5)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (8)
Microsoft.CodeAnalysis.Workspaces (9)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (1)
605field.Type,
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
Microsoft.Extensions.Logging.Generators (1)
Microsoft.Gen.ComplianceReports (1)
Microsoft.Gen.Logging (2)
Microsoft.Gen.Metrics (3)
Microsoft.Gen.MetricsReports (3)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.Interop.SourceGeneration (1)
Microsoft.VisualStudio.LanguageServices.CSharp (3)
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
System.Text.Json.SourceGeneration (6)