972 references to GetSpecialType
Aspire.Hosting.Analyzers (1)
ConfigurationSchemaGenerator (9)
Microsoft.Analyzers.Extra (1)
Microsoft.Analyzers.Local (1)
Microsoft.AspNetCore.App.Analyzers (3)
Microsoft.AspNetCore.Components.Analyzers (2)
Microsoft.AspNetCore.Components.SdkAnalyzers (2)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
Microsoft.AspNetCore.Http.ValidationsGenerator (1)
Microsoft.AspNetCore.Mvc.Analyzers (1)
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
Microsoft.CodeAnalysis (18)
Operations\ControlFlowGraphBuilder.cs (18)
2411INamedTypeSymbol booleanType = _compilation.GetSpecialType(SpecialType.System_Boolean);
2469INamedTypeSymbol booleanType = _compilation.GetSpecialType(SpecialType.System_Boolean);
2570INamedTypeSymbol booleanType = _compilation.GetSpecialType(SpecialType.System_Boolean);
3309return MakeIsNullOperation(operand, _compilation.GetSpecialType(SpecialType.System_Boolean));
3963: _compilation.GetSpecialType(SpecialType.System_IDisposable);
4195return new AwaitOperation(invocation, semanticModel: null, value.Syntax, _compilation.GetSpecialType(SpecialType.System_Void), isImplicit: true);
4273ITypeSymbol objectType = _compilation.GetSpecialType(SpecialType.System_Object);
4539: _compilation.GetSpecialType(SpecialType.System_IDisposable);
4622return new AwaitOperation(moveNext, semanticModel: null, operation.Syntax, _compilation.GetSpecialType(SpecialType.System_Boolean), isImplicit: true);
4629return MakeInvalidOperation(_compilation.GetSpecialType(SpecialType.System_Boolean), enumeratorRef);
4742ITypeSymbol booleanType = _compilation.GetSpecialType(SpecialType.System_Boolean);
5162_compilation.GetSpecialType(SpecialType.System_Boolean),
5243var shiftConst = new LiteralOperation(semanticModel: null, operand.Syntax, _compilation.GetSpecialType(SpecialType.System_Int32),
5345_compilation.GetSpecialType(SpecialType.System_Boolean),
5466INamedTypeSymbol booleanType = _compilation.GetSpecialType(SpecialType.System_Boolean);
5832ITypeSymbol booleanType = _compilation.GetSpecialType(SpecialType.System_Boolean);
7740INamedTypeSymbol booleanType = _compilation.GetSpecialType(SpecialType.System_Boolean);
7795? MakeInvalidOperation(operation.Syntax, type: _compilation.GetSpecialType(SpecialType.System_Object), ImmutableArray<IOperation>.Empty)
Microsoft.CodeAnalysis.CodeStyle (5)
Microsoft.CodeAnalysis.CodeStyle.Fixes (11)
Microsoft.CodeAnalysis.CSharp (206)
Binder\Binder_Invocation.cs (6)
1628defaultValue = new BoundLiteral(syntax, ConstantValue.Create(line), Compilation.GetSpecialType(SpecialType.System_Int32)) { WasCompilerGenerated = true };
1633defaultValue = new BoundLiteral(syntax, ConstantValue.Create(path), Compilation.GetSpecialType(SpecialType.System_String)) { WasCompilerGenerated = true };
1638defaultValue = new BoundLiteral(syntax, ConstantValue.Create(memberName), Compilation.GetSpecialType(SpecialType.System_String)) { WasCompilerGenerated = true };
1642&& Conversions.ClassifyBuiltInConversion(Compilation.GetSpecialType(SpecialType.System_String), parameterType, isChecked: false, ref discardedUseSiteInfo).Exists
1647defaultValue = new BoundLiteral(syntax, ConstantValue.Create(argument.Syntax.ToString()), Compilation.GetSpecialType(SpecialType.System_String)) { WasCompilerGenerated = true };
2247return new BoundNameOfOperator(node, boundArgument, ConstantValue.Create(name), Compilation.GetSpecialType(SpecialType.System_String));
Binder\Binder_Lookup.cs (2)
1161this.LookupMembersInClass(tmp, this.Compilation.GetSpecialType(SpecialType.System_Object), name, arity, basesBeingResolved, options, originalBinder, type, diagnose, ref useSiteInfo);
2029this.AddMemberLookupSymbolsInfoInClass(result, Compilation.GetSpecialType(SpecialType.System_Object), options, originalBinder, accessThroughType);
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (20)
312operators.Add(new BinaryOperatorSignature(kind | BinaryOperatorKind.Delegate, delegateType, delegateType, Compilation.GetSpecialType(SpecialType.System_Boolean)));
380TypeSymbol systemDelegateType = _binder.Compilation.GetSpecialType(SpecialType.System_Delegate);
527var boolean = Compilation.GetSpecialType(SpecialType.System_Boolean);
551operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerAndIntAddition, pointerType, Compilation.GetSpecialType(SpecialType.System_Int32), pointerType));
552operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerAndUIntAddition, pointerType, Compilation.GetSpecialType(SpecialType.System_UInt32), pointerType));
553operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerAndLongAddition, pointerType, Compilation.GetSpecialType(SpecialType.System_Int64), pointerType));
554operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerAndULongAddition, pointerType, Compilation.GetSpecialType(SpecialType.System_UInt64), pointerType));
555operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.IntAndPointerAddition, Compilation.GetSpecialType(SpecialType.System_Int32), pointerType, pointerType));
556operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.UIntAndPointerAddition, Compilation.GetSpecialType(SpecialType.System_UInt32), pointerType, pointerType));
557operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.LongAndPointerAddition, Compilation.GetSpecialType(SpecialType.System_Int64), pointerType, pointerType));
558operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.ULongAndPointerAddition, Compilation.GetSpecialType(SpecialType.System_UInt64), pointerType, pointerType));
561operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerAndIntSubtraction, pointerType, Compilation.GetSpecialType(SpecialType.System_Int32), pointerType));
562operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerAndUIntSubtraction, pointerType, Compilation.GetSpecialType(SpecialType.System_UInt32), pointerType));
563operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerAndLongSubtraction, pointerType, Compilation.GetSpecialType(SpecialType.System_Int64), pointerType));
564operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerAndULongSubtraction, pointerType, Compilation.GetSpecialType(SpecialType.System_UInt64), pointerType));
565operators.Add(new BinaryOperatorSignature(BinaryOperatorKind.PointerSubtraction, pointerType, pointerType, Compilation.GetSpecialType(SpecialType.System_Int64)));
582var voidPointerType = new PointerTypeSymbol(TypeWithAnnotations.Create(Compilation.GetSpecialType(SpecialType.System_Void)));
583operators.Add(new BinaryOperatorSignature(kind | BinaryOperatorKind.Pointer, voidPointerType, voidPointerType, Compilation.GetSpecialType(SpecialType.System_Boolean)));
785var @object = Compilation.GetSpecialType(SpecialType.System_Object);
786operators.Add(new BinaryOperatorSignature(kind | BinaryOperatorKind.Object, @object, @object, Compilation.GetSpecialType(SpecialType.System_Boolean)));
Compilation\BuiltInOperators.cs (53)
264case UnaryOperatorKind.SByte: opType = _compilation.GetSpecialType(SpecialType.System_SByte); break;
265case UnaryOperatorKind.Byte: opType = _compilation.GetSpecialType(SpecialType.System_Byte); break;
266case UnaryOperatorKind.Short: opType = _compilation.GetSpecialType(SpecialType.System_Int16); break;
267case UnaryOperatorKind.UShort: opType = _compilation.GetSpecialType(SpecialType.System_UInt16); break;
268case UnaryOperatorKind.Int: opType = _compilation.GetSpecialType(SpecialType.System_Int32); break;
269case UnaryOperatorKind.UInt: opType = _compilation.GetSpecialType(SpecialType.System_UInt32); break;
270case UnaryOperatorKind.Long: opType = _compilation.GetSpecialType(SpecialType.System_Int64); break;
271case UnaryOperatorKind.ULong: opType = _compilation.GetSpecialType(SpecialType.System_UInt64); break;
274case UnaryOperatorKind.Char: opType = _compilation.GetSpecialType(SpecialType.System_Char); break;
275case UnaryOperatorKind.Float: opType = _compilation.GetSpecialType(SpecialType.System_Single); break;
276case UnaryOperatorKind.Double: opType = _compilation.GetSpecialType(SpecialType.System_Double); break;
277case UnaryOperatorKind.Decimal: opType = _compilation.GetSpecialType(SpecialType.System_Decimal); break;
278case UnaryOperatorKind.Bool: opType = _compilation.GetSpecialType(SpecialType.System_Boolean); break;
720TypeSymbol rightType = _compilation.GetSpecialType(SpecialType.System_Int32);
733return new BinaryOperatorSignature(kind, left, left, _compilation.GetSpecialType(SpecialType.System_Boolean));
748case BinaryOperatorKind.Int: return _compilation.GetSpecialType(SpecialType.System_Int32);
749case BinaryOperatorKind.UInt: return _compilation.GetSpecialType(SpecialType.System_UInt32);
750case BinaryOperatorKind.Long: return _compilation.GetSpecialType(SpecialType.System_Int64);
751case BinaryOperatorKind.ULong: return _compilation.GetSpecialType(SpecialType.System_UInt64);
754case BinaryOperatorKind.Float: return _compilation.GetSpecialType(SpecialType.System_Single);
755case BinaryOperatorKind.Double: return _compilation.GetSpecialType(SpecialType.System_Double);
756case BinaryOperatorKind.Decimal: return _compilation.GetSpecialType(SpecialType.System_Decimal);
757case BinaryOperatorKind.Bool: return _compilation.GetSpecialType(SpecialType.System_Boolean);
760return _compilation.GetSpecialType(SpecialType.System_Object);
763return _compilation.GetSpecialType(SpecialType.System_String);
780case BinaryOperatorKind.Int: return _compilation.GetSpecialType(SpecialType.System_Int32);
781case BinaryOperatorKind.UInt: return _compilation.GetSpecialType(SpecialType.System_UInt32);
782case BinaryOperatorKind.Long: return _compilation.GetSpecialType(SpecialType.System_Int64);
783case BinaryOperatorKind.ULong: return _compilation.GetSpecialType(SpecialType.System_UInt64);
786case BinaryOperatorKind.Float: return _compilation.GetSpecialType(SpecialType.System_Single);
787case BinaryOperatorKind.Double: return _compilation.GetSpecialType(SpecialType.System_Double);
788case BinaryOperatorKind.Decimal: return _compilation.GetSpecialType(SpecialType.System_Decimal);
789case BinaryOperatorKind.Bool: return _compilation.GetSpecialType(SpecialType.System_Boolean);
792return _compilation.GetSpecialType(SpecialType.System_String);
795return _compilation.GetSpecialType(SpecialType.System_Object);
812case BinaryOperatorKind.Int: return _compilation.GetSpecialType(SpecialType.System_Int32);
813case BinaryOperatorKind.UInt: return _compilation.GetSpecialType(SpecialType.System_UInt32);
814case BinaryOperatorKind.Long: return _compilation.GetSpecialType(SpecialType.System_Int64);
815case BinaryOperatorKind.ULong: return _compilation.GetSpecialType(SpecialType.System_UInt64);
818case BinaryOperatorKind.Float: return _compilation.GetSpecialType(SpecialType.System_Single);
819case BinaryOperatorKind.Double: return _compilation.GetSpecialType(SpecialType.System_Double);
820case BinaryOperatorKind.Decimal: return _compilation.GetSpecialType(SpecialType.System_Decimal);
821case BinaryOperatorKind.Bool: return _compilation.GetSpecialType(SpecialType.System_Boolean);
822case BinaryOperatorKind.Object: return _compilation.GetSpecialType(SpecialType.System_Object);
826return _compilation.GetSpecialType(SpecialType.System_String);
839BinaryOperatorKind.Int => _compilation.GetSpecialType(SpecialType.System_Int32),
840BinaryOperatorKind.UInt => _compilation.GetSpecialType(SpecialType.System_UInt32),
841BinaryOperatorKind.Long => _compilation.GetSpecialType(SpecialType.System_Int64),
842BinaryOperatorKind.ULong => _compilation.GetSpecialType(SpecialType.System_UInt64),
845BinaryOperatorKind.Float => _compilation.GetSpecialType(SpecialType.System_Single),
846BinaryOperatorKind.Double => _compilation.GetSpecialType(SpecialType.System_Double),
847BinaryOperatorKind.Decimal => _compilation.GetSpecialType(SpecialType.System_Decimal),
848BinaryOperatorKind.Bool => _compilation.GetSpecialType(SpecialType.System_Boolean),
Symbols\Source\SourceNamedTypeSymbol.cs (4)
1709new TypedConstant(compilation.GetSpecialType(SpecialType.System_String), TypedConstantKind.Primitive, PEModule.ByRefLikeMarker), // message
1710new TypedConstant(compilation.GetSpecialType(SpecialType.System_Boolean), TypedConstantKind.Primitive, true)), // error=true
1715ImmutableArray.Create(new TypedConstant(compilation.GetSpecialType(SpecialType.System_String), TypedConstantKind.Primitive, nameof(CompilerFeatureRequiredFeatures.RefStructs))),
1728var defaultMemberNameConstant = new TypedConstant(compilation.GetSpecialType(SpecialType.System_String), TypedConstantKind.Primitive, defaultMemberName);
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (96)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (20)
Microsoft.CodeAnalysis.CSharp.Features (7)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (48)
Semantics\DelegateTypeTests.cs (6)
14381var expectedBaseType = ((CSharpCompilation)model.Compilation).GetSpecialType(SpecialType.System_MulticastDelegate);
14781verifyConversions(model, expr, comp.GetSpecialType(SpecialType.System_MulticastDelegate).GetPublicSymbol(), ConversionKind.FunctionType, ConversionKind.FunctionType);
14783verifyConversions(model, expr, getFunctionType(funcOfT.Construct(comp.GetSpecialType(SpecialType.System_Int32))), ConversionKind.FunctionType, ConversionKind.FunctionType);
14784verifyConversions(model, expr, getFunctionType(funcOfT.Construct(comp.GetSpecialType(SpecialType.System_Object))), ConversionKind.NoConversion, ConversionKind.NoConversion);
15591var objectType = comp.GetSpecialType(SpecialType.System_Object);
15592var stringType = comp.GetSpecialType(SpecialType.System_String);
Semantics\OperatorTests.cs (17)
7061Assert.Equal(comp.GetSpecialType(SpecialType.System_Boolean), info.ConvertedType.GetSymbol());
7216Assert.Equal(comp.GetSpecialType(SpecialType.System_Boolean).GetPublicSymbol(), info.ConvertedType);
7499type = compilation.CreatePointerTypeSymbol(compilation.GetSpecialType(SpecialType.System_Byte));
7868types[types.Length - 2] = compilation.CreatePointerTypeSymbol(compilation.GetSpecialType(SpecialType.System_Byte));
7871types[types.Length - 1] = compilation.CreatePointerTypeSymbol(compilation.GetSpecialType(SpecialType.System_SByte));
8028types[types.Length - 2] = compilation.CreatePointerTypeSymbol(compilation.GetSpecialType(SpecialType.System_Byte));
8031types[types.Length - 1] = compilation.CreatePointerTypeSymbol(compilation.GetSpecialType(SpecialType.System_SByte));
8178compilation.GetSpecialType(SpecialType.System_Boolean));
8183compilation.GetSpecialType(SpecialType.System_Delegate), compilation.GetSpecialType(SpecialType.System_Delegate),
8184compilation.GetSpecialType(SpecialType.System_Boolean));
8189compilation.GetSpecialType(SpecialType.System_Boolean));
8230signature = new BinaryOperatorSignature(op | BinaryOperatorKind.Pointer, leftType, rightType, compilation.GetSpecialType(SpecialType.System_Int64));
8259signature = new BinaryOperatorSignature(op | BinaryOperatorKind.Enum, leftType, rightType, compilation.GetSpecialType(SpecialType.System_Boolean));
8282compilation.CreatePointerTypeSymbol(compilation.GetSpecialType(SpecialType.System_Void)),
8283compilation.CreatePointerTypeSymbol(compilation.GetSpecialType(SpecialType.System_Void)),
8284compilation.GetSpecialType(SpecialType.System_Boolean));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (179)
Compilation\CompilationAPITests.cs (48)
1513comp.GetSpecialType((SpecialType)100);
1519comp.GetSpecialType(SpecialType.None);
1525comp.GetSpecialType((SpecialType)000);
1531comp.GetSpecialType(default(SpecialType));
2461var elementType = comp.GetSpecialType(SpecialType.System_Object);
2490var elementType = comp.GetSpecialType(SpecialType.System_Object);
2520ImmutableArray.Create((ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32),
2521(ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32)),
2532ImmutableArray.Create((ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32),
2533(ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32)),
2544ImmutableArray.Create((ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32),
2545(ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32)),
2556ImmutableArray.Create((ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32),
2557(ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32)),
2598ImmutableArray.Create((ITypeSymbol)compilation.GetSpecialType(SpecialType.System_Int32)),
2607ImmutableArray.Create<ITypeSymbol>(compilation.GetSpecialType(SpecialType.System_Int32)),
2626ImmutableArray.Create<ITypeSymbol>(compilation.GetSpecialType(SpecialType.System_Int32),
2627compilation.GetSpecialType(SpecialType.System_Int32)),
2643ImmutableArray.Create<ITypeSymbol>(compilation.GetSpecialType(SpecialType.System_Int32), compilation.GetSpecialType(SpecialType.System_Boolean)),
2658var memberTypes = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String));
2698var memberTypes = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String));
2742var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol();
2759var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol();
2760var boolType = compilation.GetSpecialType(SpecialType.System_Boolean).GetPublicSymbol();
2779var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol();
2789var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol();
2790var nullableIntType = compilation.GetSpecialType(SpecialType.System_Nullable_T).GetPublicSymbol().Construct(intType);
2817var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol();
2837var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol();
2872var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol();
2904var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol();
2938var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol();
2950var boolType = compilation.GetSpecialType(SpecialType.System_Boolean).GetPublicSymbol();
2969var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol();
2979var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol();
2980var nullableIntType = compilation.GetSpecialType(SpecialType.System_Nullable_T).GetPublicSymbol().Construct(intType);
3015var intType = compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol();
3032var typeArguments = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String));
3052typeArguments = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String));
3067var typeArguments = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String));
3087typeArguments = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String));
Symbols\TypeTests.cs (22)
1481Assert.Same(comp.GetSpecialType(SpecialType.System_Nullable_T), varX.Type.OriginalDefinition);
1508Assert.Same(comp.GetSpecialType(SpecialType.System_Nullable_T), memType.OriginalDefinition);
1513Assert.Same(comp.GetSpecialType(SpecialType.System_SByte), underType);
1521Assert.Same(comp.GetSpecialType(SpecialType.System_Byte), underType);
1526Assert.Same(comp.GetSpecialType(SpecialType.System_Nullable_T), memType.OriginalDefinition);
1530Assert.Same(comp.GetSpecialType(SpecialType.System_Char), underType);
1540Assert.Same(comp.GetSpecialType(SpecialType.System_Int16), underType);
1545Assert.Same(comp.GetSpecialType(SpecialType.System_UInt16), memType.GetNullableUnderlyingType());
1547Assert.Same(comp.GetSpecialType(SpecialType.System_UInt32), memType.GetNullableUnderlyingType());
1551Assert.Same(comp.GetSpecialType(SpecialType.System_Nullable_T), memType.OriginalDefinition);
1554Assert.Same(comp.GetSpecialType(SpecialType.System_Int32), underType);
1561Assert.Same(comp.GetSpecialType(SpecialType.System_Int64), memType.GetNullableUnderlyingType());
1563Assert.Same(comp.GetSpecialType(SpecialType.System_UInt64), memType.GetNullableUnderlyingType());
1570Assert.Same(comp.GetSpecialType(SpecialType.System_Decimal), underType);
1579Assert.Same(comp.GetSpecialType(SpecialType.System_Double), memType.GetNullableUnderlyingType());
1582Assert.Same(comp.GetSpecialType(SpecialType.System_Single), (memType as ArrayTypeSymbol).ElementType.GetNullableUnderlyingType());
1619Assert.Same(comp.GetSpecialType(SpecialType.System_Nullable_T), memType.OriginalDefinition);
1644Assert.Same(comp.GetSpecialType(SpecialType.System_Nullable_T), memType.OriginalDefinition);
1691Assert.Same(comp.GetSpecialType(SpecialType.System_Nullable_T), memType.OriginalDefinition);
1707Assert.Same(comp.GetSpecialType(SpecialType.System_Nullable_T), memType.OriginalDefinition);
1769Assert.Same(comp.GetSpecialType(SpecialType.System_Nullable_T), memType.OriginalDefinition);
1785Assert.Same(comp.GetSpecialType(SpecialType.System_Decimal), ((ITypeSymbol)tinfo.ConvertedType).GetNullableUnderlyingType());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (9)
Microsoft.CodeAnalysis.Features (22)
Microsoft.CodeAnalysis.Features.UnitTests (9)
Microsoft.CodeAnalysis.Test.Utilities (2)
Microsoft.CodeAnalysis.UnitTests (7)
Microsoft.CodeAnalysis.VisualBasic (3)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (4)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (48)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (5)
Microsoft.CodeAnalysis.VisualBasic.Features (3)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (142)
Compilation\CompilationAPITests.vb (51)
328ntSmb = comp.GetSpecialType(CType(31, SpecialType))
1344comp.GetSpecialType((SpecialType.None))
1350comp.GetSpecialType(CType(0, SpecialType))
1355comp.GetSpecialType(CType(100, SpecialType))
1478Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32)
1479Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String)
1494Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32)
1495Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String)
1511Dim elementType = comp.GetSpecialType(SpecialType.System_Object)
1536Dim elementType = comp.GetSpecialType(SpecialType.System_Object)
1562ImmutableArray.Create(DirectCast(compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol),
1563DirectCast(compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol)),
1575ImmutableArray.Create(DirectCast(Compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol),
1576DirectCast(Compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol)),
1586ImmutableArray.Create(DirectCast(compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol),
1587DirectCast(compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol)),
1607ImmutableArray.Create(DirectCast(compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol),
1608DirectCast(compilation.GetSpecialType(SpecialType.System_Int32), ITypeSymbol)),
1634ImmutableArray.Create(Of ITypeSymbol)(compilation.GetSpecialType(SpecialType.System_Int32)),
1648ImmutableArray.Create(Of ITypeSymbol)(compilation.GetSpecialType(SpecialType.System_Int32)),
1663ImmutableArray.Create(Of ITypeSymbol)(compilation.GetSpecialType(SpecialType.System_Int32), compilation.GetSpecialType(SpecialType.System_Boolean)),
1677Dim memberTypes = ImmutableArray.Create(Of ITypeSymbol)(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String))
1715Dim memberTypes = ImmutableArray.Create(Of ITypeSymbol)(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String))
1746Dim intType = compilation.GetSpecialType(SpecialType.System_Int32)
1761Dim intType = compilation.GetSpecialType(SpecialType.System_Int32)
1762Dim boolType = compilation.GetSpecialType(SpecialType.System_Boolean)
1771Dim stringType = compilation.GetSpecialType(SpecialType.System_String)
1780Dim stringType = compilation.GetSpecialType(SpecialType.System_String)
1781Dim boolType = compilation.GetSpecialType(SpecialType.System_Boolean)
1792Dim doubleType = compilation.GetSpecialType(SpecialType.System_Double)
1808Dim intType = compilation.GetSpecialType(SpecialType.System_Int32)
1817Dim intType = compilation.GetSpecialType(SpecialType.System_Int32)
1818Dim nullableIntType = compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(intType)
1839Dim intType = compilation.GetSpecialType(SpecialType.System_Int32)
1851Dim intType = compilation.GetSpecialType(SpecialType.System_Int32)
1860Dim intType = compilation.GetSpecialType(SpecialType.System_Int32)
1861Dim nullableIntType = compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(intType)
1895Dim intType = compilation.GetSpecialType(SpecialType.System_Int32)
1904Dim intType = compilation.GetSpecialType(SpecialType.System_Int32)
1917Dim intType = Compilation.GetSpecialType(SpecialType.System_Int32)
1942Dim typeArguments = ImmutableArray.Create(Of ITypeSymbol)(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String))
1960typeArguments = ImmutableArray.Create(Of ITypeSymbol)(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String))
1974Dim typeArguments = ImmutableArray.Create(Of ITypeSymbol)(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String))
1992typeArguments = ImmutableArray.Create(Of ITypeSymbol)(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String))
Semantics\Conversions.vb (72)
231Dim objectType = c1.GetSpecialType(System_Object)
232Dim booleanType = c1.GetSpecialType(System_Boolean)
233Dim byteType = c1.GetSpecialType(System_Byte)
234Dim sbyteType = c1.GetSpecialType(System_SByte)
235Dim int16Type = c1.GetSpecialType(System_Int16)
236Dim uint16Type = c1.GetSpecialType(System_UInt16)
237Dim int32Type = c1.GetSpecialType(System_Int32)
238Dim uint32Type = c1.GetSpecialType(System_UInt32)
239Dim int64Type = c1.GetSpecialType(System_Int64)
240Dim uint64Type = c1.GetSpecialType(System_UInt64)
241Dim doubleType = c1.GetSpecialType(System_Double)
242Dim singleType = c1.GetSpecialType(System_Single)
243Dim decimalType = c1.GetSpecialType(System_Decimal)
244Dim dateType = c1.GetSpecialType(System_DateTime)
245Dim stringType = c1.GetSpecialType(System_String)
246Dim charType = c1.GetSpecialType(System_Char)
247Dim intPtrType = c1.GetSpecialType(System_IntPtr)
361Dim nullableType = c1.GetSpecialType(System_Nullable_T)
1083Dim objectType = c1.GetSpecialType(System_Object)
1084Dim booleanType = c1.GetSpecialType(System_Boolean)
1085Dim byteType = c1.GetSpecialType(System_Byte)
1086Dim sbyteType = c1.GetSpecialType(System_SByte)
1087Dim int16Type = c1.GetSpecialType(System_Int16)
1088Dim uint16Type = c1.GetSpecialType(System_UInt16)
1089Dim int32Type = c1.GetSpecialType(System_Int32)
1090Dim uint32Type = c1.GetSpecialType(System_UInt32)
1091Dim int64Type = c1.GetSpecialType(System_Int64)
1092Dim uint64Type = c1.GetSpecialType(System_UInt64)
1093Dim doubleType = c1.GetSpecialType(System_Double)
1094Dim singleType = c1.GetSpecialType(System_Single)
1095Dim decimalType = c1.GetSpecialType(System_Decimal)
1096Dim dateType = c1.GetSpecialType(System_DateTime)
1097Dim stringType = c1.GetSpecialType(System_String)
1098Dim charType = c1.GetSpecialType(System_Char)
1099Dim intPtrType = c1.GetSpecialType(System_IntPtr)
1127Dim nullableType = c1.GetSpecialType(System_Nullable_T)
1490Dim arrayInt32 = c1.CreateArrayTypeSymbol(c1.GetSpecialType(System_Int32))
1499Dim enumerable = c1.GetSpecialType(System_Collections_Generic_IEnumerable_T)
1610Dim [object] = c1.GetSpecialType(System_Object)
1923Dim void = c1.GetSpecialType(System_Void)
1924Dim valueType = c1.GetSpecialType(System_ValueType)
2042Dim nullable = c1.GetSpecialType(System_Nullable_T)
2045c1.GetSpecialType(System_Byte),
2046c1.GetSpecialType(System_SByte),
2047c1.GetSpecialType(System_UInt16),
2048c1.GetSpecialType(System_Int16),
2049c1.GetSpecialType(System_UInt32),
2050c1.GetSpecialType(System_Int32),
2051c1.GetSpecialType(System_UInt64),
2052c1.GetSpecialType(System_Int64),
2053c1.GetSpecialType(System_Decimal),
2054c1.GetSpecialType(System_Single),
2055c1.GetSpecialType(System_Double),
2056c1.GetSpecialType(System_String),
2057c1.GetSpecialType(System_Char),
2058c1.GetSpecialType(System_Boolean),
2059c1.GetSpecialType(System_DateTime),
2060c1.GetSpecialType(System_Object),
2061nullable.Construct(c1.GetSpecialType(System_Byte)),
2062nullable.Construct(c1.GetSpecialType(System_SByte)),
2063nullable.Construct(c1.GetSpecialType(System_UInt16)),
2064nullable.Construct(c1.GetSpecialType(System_Int16)),
2065nullable.Construct(c1.GetSpecialType(System_UInt32)),
2066nullable.Construct(c1.GetSpecialType(System_Int32)),
2067nullable.Construct(c1.GetSpecialType(System_UInt64)),
2068nullable.Construct(c1.GetSpecialType(System_Int64)),
2069nullable.Construct(c1.GetSpecialType(System_Decimal)),
2070nullable.Construct(c1.GetSpecialType(System_Single)),
2071nullable.Construct(c1.GetSpecialType(System_Double)),
2072nullable.Construct(c1.GetSpecialType(System_Char)),
2073nullable.Construct(c1.GetSpecialType(System_Boolean)),
2074nullable.Construct(c1.GetSpecialType(System_DateTime))
Semantics\OverloadResolution.vb (14)
183Dim TestClass2OfInteger = TestClass2.Construct(c1.GetSpecialType(System_Int32))
194Dim intZero As BoundExpression = New BoundLiteral(_syntaxNode, ConstantValue.Create(0I), c1.GetSpecialType(System_Int32))
195Dim longZero As BoundExpression = New BoundLiteral(_syntaxNode, ConstantValue.Create(0L), c1.GetSpecialType(System_Int64))
196Dim unsignedOne As BoundExpression = New BoundLiteral(_syntaxNode, ConstantValue.Create(1UI), c1.GetSpecialType(System_UInt32))
197Dim longConst As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(-1L), c1.GetSpecialType(System_Int64), Nothing)
202Dim doubleConst As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(0.0R), c1.GetSpecialType(System_Double), Nothing)
204Dim shortVal As BoundExpression = New BoundRValuePlaceholder(_syntaxNode, c1.GetSpecialType(System_Int16))
205Dim ushortVal As BoundExpression = New BoundRValuePlaceholder(_syntaxNode, c1.GetSpecialType(System_UInt16))
206Dim objectVal As BoundExpression = New BoundRValuePlaceholder(_syntaxNode, c1.GetSpecialType(System_Object))
212Dim stringVal As BoundExpression = New BoundRValuePlaceholder(_syntaxNode, c1.GetSpecialType(System_String))
2883Dim DoubleMaxValue As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(Double.MaxValue), c1.GetSpecialType(System_Double), Nothing)
2884Dim IntegerMaxValue As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(Integer.MaxValue), c1.GetSpecialType(System_Int32), Nothing)
3074Dim DoubleMaxValue As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(Double.MaxValue), c1.GetSpecialType(System_Double), Nothing)
3075Dim IntegerMaxValue As BoundExpression = New BoundConversion(_syntaxNode, New BoundLiteral(_syntaxNode, ConstantValue.Null, Nothing), ConversionKind.Widening, True, True, ConstantValue.Create(Integer.MaxValue), c1.GetSpecialType(System_Int32), Nothing)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (11)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (5)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (11)
Microsoft.CodeAnalysis.Workspaces (12)
Microsoft.CodeAnalysis.Workspaces.UnitTests (12)
Microsoft.Extensions.Logging.Generators (2)
Microsoft.Extensions.Options.SourceGeneration (1)
Microsoft.Gen.Logging (1)
Microsoft.Gen.Logging.Unit.Tests (4)
Microsoft.Gen.MetadataExtractor (1)
Microsoft.Gen.Metrics (1)
Microsoft.Gen.MetricsReports (1)
Microsoft.Interop.LibraryImportGenerator (7)
Microsoft.Interop.SourceGeneration (2)
Microsoft.VisualStudio.LanguageServices (1)
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
Mvc.Analyzers.Test (7)
Mvc.Api.Analyzers.Test (2)
System.Text.Json.SourceGeneration (6)