1010 references to GetSpecialType
Aspire.Hosting.Analyzers (1)
Infrastructure\WellKnownTypes.cs (1)
55return _compilation.GetSpecialType(type);
ConfigurationSchemaGenerator (9)
RuntimeSource\Configuration.Binder\Parser\KnownTypeSymbols.cs (9)
73String = compilation.GetSpecialType(SpecialType.System_String); 100IEnumerable = compilation.GetSpecialType(SpecialType.System_Collections_IEnumerable); 106GenericICollection = compilation.GetSpecialType(SpecialType.System_Collections_Generic_ICollection_T); 117GenericIEnumerable_Unbound = compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T).ConstructUnboundGenericType(); 118GenericIList_Unbound = compilation.GetSpecialType(SpecialType.System_Collections_Generic_IList_T).ConstructUnboundGenericType(); 126Enum = compilation.GetSpecialType(SpecialType.System_Enum); 132IntPtr = Compilation.GetSpecialType(SpecialType.System_IntPtr); 133UIntPtr = Compilation.GetSpecialType(SpecialType.System_UIntPtr); 134Delegate = Compilation.GetSpecialType(SpecialType.System_Delegate);
Microsoft.Analyzers.Extra (1)
CallAnalysis\StartsEndsWith.cs (1)
19var stringType = reg.Compilation.GetSpecialType(SpecialType.System_String);
Microsoft.Analyzers.Local (1)
CallAnalysis\ToInvariantString.cs (1)
30foreach (var method in reg.Compilation.GetSpecialType(type).GetMembers("ToString").OfType<IMethodSymbol>())
Microsoft.AspNetCore.App.Analyzers (3)
RouteEmbeddedLanguage\Infrastructure\RouteUsageDetector.cs (2)
277var delegateSymbol = semanticModel.Compilation.GetSpecialType(SpecialType.System_Delegate); 290var stringSymbol = semanticModel.Compilation.GetSpecialType(SpecialType.System_String);
src\Shared\RoslynUtils\WellKnownTypes.cs (1)
58return _compilation.GetSpecialType(type);
Microsoft.AspNetCore.Components.Analyzers (2)
ComponentSymbols.cs (2)
40var @string = compilation.GetSpecialType(SpecialType.System_String); 41var @object = compilation.GetSpecialType(SpecialType.System_Object);
Microsoft.AspNetCore.Components.SdkAnalyzers (2)
ComponentSymbols.cs (2)
40var @string = compilation.GetSpecialType(SpecialType.System_String); 41var @object = compilation.GetSpecialType(SpecialType.System_Object);
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
src\Shared\RoslynUtils\WellKnownTypes.cs (1)
58return _compilation.GetSpecialType(type);
Microsoft.AspNetCore.Mvc.Analyzers (1)
TopLevelParameterNameAnalyzer.cs (1)
277var disposable = compilation.GetSpecialType(SpecialType.System_IDisposable);
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
ApiControllerSymbolCache.cs (1)
97var disposable = compilation.GetSpecialType(SpecialType.System_IDisposable);
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)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
38var objectType = compilation.GetSpecialType(SpecialType.System_Object);
src\Analyzers\Core\Analyzers\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (1)
34var objectType = context.Compilation.GetSpecialType(SpecialType.System_Object);
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer.cs (1)
95var objectType = context.Compilation.GetSpecialType(SpecialType.System_Object);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
512.Select(p => (p.Type ?? compilation.GetSpecialType(SpecialType.System_Object)).WithNullableAnnotation(p.NullableAnnotation)); 517types = types.Concat((method.ReturnType ?? compilation.GetSpecialType(SpecialType.System_Object)).WithNullableAnnotation(method.ReturnNullableAnnotation));
Microsoft.CodeAnalysis.CodeStyle.Fixes (11)
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (1)
251var idisposable = compilation.GetSpecialType(SpecialType.System_IDisposable);
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (2)
181compilation.GetSpecialType(SpecialType.System_Boolean), 244var boolType = compilation.GetSpecialType(SpecialType.System_Boolean);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
92_ => compilation.GetSpecialType(SpecialType.System_Object),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (2)
55returnType: compilation.GetSpecialType(SpecialType.System_Boolean), 60parameters: [CodeGenerationSymbolFactory.CreateParameterSymbol(compilation.GetSpecialType(SpecialType.System_Object).WithNullableAnnotation(NullableAnnotation.Annotated), ObjName)],
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (3)
136? factory.SimpleLocalDeclarationStatement(generatorInternal, compilation.GetSpecialType(SpecialType.System_Int32), HashCodeName, CreateLiteralExpression(factory, initHash)) 137: factory.LocalDeclarationStatement(compilation.GetSpecialType(SpecialType.System_Int64), HashCodeName, CreateLiteralExpression(factory, initHash))); 166compilation.GetSpecialType(SpecialType.System_Int32),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
84=> CreateResult(Compilation.GetSpecialType(type).WithNullableAnnotation(nullableAnnotation));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.cs (1)
48? [semanticModel.Compilation.GetSpecialType(SpecialType.System_Boolean)]
Microsoft.CodeAnalysis.CSharp (251)
Binder\Binder_Expressions.cs (5)
1220TypeSymbol typedReferenceType = this.Compilation.GetSpecialType(SpecialType.System_TypedReference); 1268TypeSymbol typedReferenceType = this.Compilation.GetSpecialType(SpecialType.System_TypedReference); 10039var intPlaceholder = new BoundImplicitIndexerValuePlaceholder(syntax, Compilation.GetSpecialType(SpecialType.System_Int32)) { WasCompilerGenerated = true }; 10110var startArgumentPlaceholder = new BoundImplicitIndexerValuePlaceholder(syntax, Compilation.GetSpecialType(SpecialType.System_Int32)) { WasCompilerGenerated = true }; 10111var lengthArgumentPlaceholder = new BoundImplicitIndexerValuePlaceholder(syntax, Compilation.GetSpecialType(SpecialType.System_Int32)) { WasCompilerGenerated = true };
Binder\Binder_InterpolatedString.cs (2)
998var expected = builderPatternExpectsBool == true ? Compilation.GetSpecialType(SpecialType.System_Boolean) : Compilation.GetSpecialType(SpecialType.System_Void);
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\Binder_Operators.cs (1)
1066var booleanType = Compilation.GetSpecialType(SpecialType.System_Boolean);
Binder\Binder_Patterns.cs (3)
1114var objectType = Compilation.GetSpecialType(SpecialType.System_Object); 1141var objectType = Compilation.GetSpecialType(SpecialType.System_Object); 1260if (declType != (object)Compilation.GetSpecialType(SpecialType.System_Object) &&
Binder\Binder_QueryErrors.cs (2)
89var ienumerable_t = Compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T); 127var ienumerable = Compilation.GetSpecialType(SpecialType.System_Collections_IEnumerable);
Binder\Binder_Symbols.cs (2)
1656NamedTypeSymbol typeSymbol = compilation.GetSpecialType(typeId); 1664NamedTypeSymbol typeSymbol = compilation.GetSpecialType(typeId);
Binder\DecisionDagBuilder.cs (2)
326var objectType = this._compilation.GetSpecialType(SpecialType.System_Object); 342var lengthTemp = new BoundDagTemp(syntax, this._compilation.GetSpecialType(SpecialType.System_Int32), lengthEvaluation);
Binder\DecisionDagBuilder_ListPatterns.cs (1)
43var lengthTemp = new BoundDagTemp(syntax, _compilation.GetSpecialType(SpecialType.System_Int32), lengthEvaluation);
Binder\ForEachLoopBinder.cs (4)
1061this.Compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T)); 1259NamedTypeSymbol targetInterface = isAsync ? this.Compilation.GetWellKnownType(WellKnownType.System_IAsyncDisposable) : this.Compilation.GetSpecialType(SpecialType.System_IDisposable); 1305TypeSymbol.Equals(builder.GetEnumeratorInfo.Method.ReturnType, this.Compilation.GetSpecialType(SpecialType.System_Collections_IEnumerator), TypeCompareKind.ConsiderEverything2)); 1767var implementedNonGeneric = this.Compilation.GetSpecialType(SpecialType.System_Collections_IEnumerable);
Binder\InContainerBinder.cs (1)
94return TypeWithAnnotations.Create(this.Compilation.GetSpecialType(SpecialType.System_Object));
Binder\InMethodBinder.cs (1)
155var objectType = compilation.GetSpecialType(SpecialType.System_Object);
Binder\Semantics\Conversions\Conversions.cs (1)
418TypeWithAnnotations.Create(compilation.GetSpecialType(SpecialType.System_Object), customModifiers: parameter.TypeWithAnnotations.CustomModifiers), parameter.RefCustomModifiers,
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1703var specialType = compilation.GetSpecialType(specialInterface);
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)));
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (1)
20return Compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(type);
Binder\UsingStatementBinder.cs (1)
302: originalBinder.Compilation.GetSpecialType(SpecialType.System_IDisposable);
BoundTree\UnboundLambda.cs (3)
761returnType = TypeWithAnnotations.Create(Binder.Compilation.GetSpecialType(SpecialType.System_Void)); 964? TypeWithAnnotations.Create(this.Binder.Compilation.GetSpecialType(SpecialType.System_Void)) 1212? this.Binder.Compilation.GetSpecialType(SpecialType.System_Void)
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),
Compilation\CSharpCompilation.cs (4)
1708constructedNullableInstance = this.GetSpecialType(SpecialType.System_Nullable_T).Construct(typeArgument); 4011return this.GetSpecialType(specialType); 4133return GetSpecialType(signed ? SpecialType.System_IntPtr : SpecialType.System_UIntPtr).AsNativeInteger(); 4685var typeSymbol = GetSpecialType(type);
Compiler\MethodBodySynthesizer.cs (3)
94var intType = compilation.GetSpecialType(SpecialType.System_Int32); 95var objectType = compilation.GetSpecialType(SpecialType.System_Object); 352TypeSymbol boolType = compilation.GetSpecialType(SpecialType.System_Boolean);
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
365TypeSymbol objectType = AdaptedNamedTypeSymbol.DeclaringCompilation.GetSpecialType(CodeAnalysis.SpecialType.System_Object);
Emitter\Model\PEAssemblyBuilder.cs (1)
617var result = _sourceAssembly.DeclaringCompilation.GetSpecialType(type);
FlowAnalysis\NullableWalker.cs (1)
9605return compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(ImmutableArray.Create(underlying));
Lowering\AsyncRewriter\AsyncStateMachine.cs (1)
49interfaces.Add(compilation.GetWellKnownType(WellKnownType.System_Threading_Tasks_Sources_IValueTaskSource_T).Construct(compilation.GetSpecialType(SpecialType.System_Boolean)));
Lowering\IteratorRewriter\IteratorConstructor.cs (1)
26var intType = container.DeclaringCompilation.GetSpecialType(SpecialType.System_Int32);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (10)
646var boolean = _compilation.GetSpecialType(SpecialType.System_Boolean); 812TypeSymbol boolType = _compilation.GetSpecialType(SpecialType.System_Boolean); 908return MakeLiteral(syntax, ConstantValue.Create(value), _compilation.GetSpecialType(SpecialType.System_Boolean)); 997TypeSymbol boolType = _compilation.GetSpecialType(SpecialType.System_Boolean); 1224TypeSymbol boolType = _compilation.GetSpecialType(SpecialType.System_Boolean); 1457TypeSymbol boolType = _compilation.GetSpecialType(SpecialType.System_Boolean); 1642TypeSymbol boolType = _compilation.GetSpecialType(SpecialType.System_Boolean); 1834TypeSymbol boolType = _compilation.GetSpecialType(SpecialType.System_Boolean); 2083TypeSymbol boolType = _compilation.GetSpecialType(SpecialType.System_Boolean); 2097TypeSymbol objectType = _compilation.GetSpecialType(SpecialType.System_Object);
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
1412_compilation.GetSpecialType(SpecialType.System_Int32))),
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (3)
193Debug.Assert(targetEnumerableType.OriginalDefinition == (object)_compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T)); 203var iCollectionOfTType = _compilation.GetSpecialType(SpecialType.System_Collections_Generic_ICollection_T); 752_compilation.GetSpecialType(SpecialType.System_Int32))),
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
1723static TypeSymbol get64BitType(CSharpCompilation compilation, bool signed) => compilation.GetSpecialType(signed ? SpecialType.System_Int64 : SpecialType.System_UInt64);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (7)
459type: _compilation.GetSpecialType(SpecialType.System_Boolean)), 612TypeSymbol intType = _compilation.GetSpecialType(SpecialType.System_Int32); 613TypeSymbol boolType = _compilation.GetSpecialType(SpecialType.System_Boolean); 913TypeSymbol intType = _compilation.GetSpecialType(SpecialType.System_Int32); 914TypeSymbol boolType = _compilation.GetSpecialType(SpecialType.System_Boolean); 1063TypeSymbol intType = _compilation.GetSpecialType(SpecialType.System_Int32); 1064TypeSymbol boolType = _compilation.GetSpecialType(SpecialType.System_Boolean);
Lowering\LocalRewriter\LocalRewriter_Index.cs (1)
17NamedTypeSymbol booleanType = _compilation.GetSpecialType(SpecialType.System_Boolean);
Lowering\LocalRewriter\LocalRewriter_Literal.cs (10)
100arguments.Add(new BoundLiteral(syntax, ConstantValue.Create((int)value), _compilation.GetSpecialType(SpecialType.System_Int32))); 106arguments.Add(new BoundLiteral(syntax, ConstantValue.Create((uint)value), _compilation.GetSpecialType(SpecialType.System_UInt32))); 112arguments.Add(new BoundLiteral(syntax, ConstantValue.Create((long)value), _compilation.GetSpecialType(SpecialType.System_Int64))); 118arguments.Add(new BoundLiteral(syntax, ConstantValue.Create((ulong)value), _compilation.GetSpecialType(SpecialType.System_UInt64))); 124arguments.Add(new BoundLiteral(syntax, ConstantValue.Create(low), _compilation.GetSpecialType(SpecialType.System_Int32))); 125arguments.Add(new BoundLiteral(syntax, ConstantValue.Create(mid), _compilation.GetSpecialType(SpecialType.System_Int32))); 126arguments.Add(new BoundLiteral(syntax, ConstantValue.Create(high), _compilation.GetSpecialType(SpecialType.System_Int32))); 127arguments.Add(new BoundLiteral(syntax, ConstantValue.Create(isNegative), _compilation.GetSpecialType(SpecialType.System_Boolean))); 128arguments.Add(new BoundLiteral(syntax, ConstantValue.Create(scale), _compilation.GetSpecialType(SpecialType.System_Byte))); 148arguments.Add(new BoundLiteral(syntax, ConstantValue.Create(constantValue.DateTimeValue.Ticks), _compilation.GetSpecialType(SpecialType.System_Int64)));
Lowering\LocalRewriter\LocalRewriter_LockStatement.cs (3)
36argumentType = _compilation.GetSpecialType(SpecialType.System_Object); 88argumentType = _compilation.GetSpecialType(SpecialType.System_Object); 141TypeSymbol boolType = _compilation.GetSpecialType(SpecialType.System_Boolean);
Lowering\LocalRewriter\LocalRewriter_Range.cs (1)
143TypeSymbol boolType = _compilation.GetSpecialType(SpecialType.System_Boolean);
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (2)
447charType ?? _compilation.GetSpecialType(SpecialType.System_Char))); // We will pull 'charType' from BoundCall, if it is bad an error has been already reported elsewhere 750type: _compilation.GetSpecialType(SpecialType.System_String));
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (1)
102var boolType = _compilation.GetSpecialType(SpecialType.System_Boolean);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (5)
137_compilation.GetSpecialType(upconvertSpecialType); 643type = _compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(type); 963NamedTypeSymbol type = _compilation.GetSpecialType(specialType); 966type = _compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(type); 1122return (compilation.GetSpecialType(constantOne.SpecialType), constantOne);
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (2)
163_compilation.GetSpecialType(SpecialType.System_IDisposable) : 239_compilation.GetSpecialType(SpecialType.System_IDisposable) :
Lowering\SyntheticBoundNodeFactory.cs (2)
290NamedTypeSymbol specialType = Compilation.GetSpecialType(st); 1755TypeSymbol boolType = Compilation.GetSpecialType(CodeAnalysis.SpecialType.System_Boolean);
Operations\CSharpOperationFactory.cs (2)
1899: compilation.GetSpecialType(SpecialType.System_IDisposable); 2078TypeWithAnnotations.Create(((CSharpCompilation)_semanticModel.Compilation).GetSpecialType(SpecialType.System_Boolean)),
Symbols\AnonymousTypes\AnonymousTypeManager.SymbolCollection.cs (7)
111get { return Compilation.GetSpecialType(SpecialType.System_Object); } 116get { return Compilation.GetSpecialType(SpecialType.System_Void); } 121get { return Compilation.GetSpecialType(SpecialType.System_Boolean); } 126get { return Compilation.GetSpecialType(SpecialType.System_String); } 131get { return Compilation.GetSpecialType(SpecialType.System_Int32); } 136get { return Compilation.GetSpecialType(SpecialType.System_IntPtr); } 141get { return Compilation.GetSpecialType(SpecialType.System_MulticastDelegate); }
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (4)
178Compilation.GetSpecialType(SpecialType.System_IntPtr), 179returnsVoid ? Compilation.GetSpecialType(SpecialType.System_Void) : null, 474Compilation.GetSpecialType(SpecialType.System_IntPtr), 475returnsVoid ? Compilation.GetSpecialType(SpecialType.System_Void) : null,
Symbols\Compilation_WellKnownMembers.cs (6)
462var systemByte = GetSpecialType(SpecialType.System_Byte); 465var systemUnit32 = GetSpecialType(SpecialType.System_UInt32); 481var ticks = new TypedConstant(GetSpecialType(SpecialType.System_Int64), TypedConstantKind.Primitive, value.Ticks); 786NamedTypeSymbol booleanType = GetSpecialType(SpecialType.System_Boolean); 800var stringType = GetSpecialType(SpecialType.System_String); 814var boolType = GetSpecialType(SpecialType.System_Boolean);
Symbols\MethodSymbol.cs (3)
1281new TypedConstant(declaringCompilation.GetSpecialType(SpecialType.System_String), TypedConstantKind.Primitive, PEModule.RequiredMembersMarker), // message 1282new TypedConstant(declaringCompilation.GetSpecialType(SpecialType.System_Boolean), TypedConstantKind.Primitive, true)) // error 1287ImmutableArray.Create(new TypedConstant(declaringCompilation.GetSpecialType(SpecialType.System_String), TypedConstantKind.Primitive, nameof(CompilerFeatureRequiredFeatures.RequiredMembers)))
Symbols\Source\ImplicitNamedTypeSymbol.cs (2)
57=> IsScriptClass ? null : this.DeclaringCompilation.GetSpecialType(Microsoft.CodeAnalysis.SpecialType.System_Object); 63diagnostics.ReportUseSite(this.DeclaringCompilation.GetSpecialType(SpecialType.System_Object), GetFirstLocation());
Symbols\Source\SourceAssemblySymbol.cs (5)
1830var boolType = _compilation.GetSpecialType(SpecialType.System_Boolean); 1968var int32Type = _compilation.GetSpecialType(SpecialType.System_Int32); 1988var boolType = _compilation.GetSpecialType(SpecialType.System_Boolean); 2022var stringType = _compilation.GetSpecialType(SpecialType.System_String); 2032var stringType = _compilation.GetSpecialType(SpecialType.System_String);
Symbols\Source\SourceComplexParameterSymbol.cs (4)
1079TypeSymbol intType = compilation.GetSpecialType(SpecialType.System_Int32); 1107TypeSymbol stringType = compilation.GetSpecialType(SpecialType.System_String); 1140TypeSymbol stringType = compilation.GetSpecialType(SpecialType.System_String); 1181TypeSymbol stringType = compilation.GetSpecialType(SpecialType.System_String);
Symbols\Source\SourceDelegateMethodSymbol.cs (2)
79if (binder.Compilation.GetSpecialType(SpecialType.System_IAsyncResult).TypeKind != TypeKind.Error && 80binder.Compilation.GetSpecialType(SpecialType.System_AsyncCallback).TypeKind != TypeKind.Error &&
Symbols\Source\SourceEventAccessorSymbol.cs (2)
131TypeSymbol voidType = compilation.GetSpecialType(SpecialType.System_Void); 142TypeSymbol voidType = compilation.GetSpecialType(SpecialType.System_Void);
Symbols\Source\SourceFixedFieldSymbol.cs (1)
46var intType = compilation.GetSpecialType(SpecialType.System_Int32);
Symbols\Source\SourceMemberContainerSymbol.cs (6)
4313TypeWithAnnotations.Create(compilation.GetSpecialType(SpecialType.System_Void)), 4361TypeWithAnnotations.Create(compilation.GetSpecialType(SpecialType.System_Void)), 4409returnType: TypeWithAnnotations.Create(compilation.GetSpecialType(SpecialType.System_Boolean)), 4464returnType: TypeWithAnnotations.Create(compilation.GetSpecialType(SpecialType.System_String)), 4638TypeWithAnnotations.Create(compilation.GetSpecialType(SpecialType.System_Int32)), 4737TypeWithAnnotations.Create(compilation.GetSpecialType(SpecialType.System_Boolean)),
Symbols\Source\SourceModuleSymbol.cs (2)
641var version = ImmutableArray.Create(new TypedConstant(compilation.GetSpecialType(SpecialType.System_Int32), TypedConstantKind.Primitive, 11)); 648new TypedConstant(compilation.GetSpecialType(SpecialType.System_Boolean), TypedConstantKind.Primitive, _assemblySymbol.InternalsAreVisible));
Symbols\Source\SourceNamedTypeSymbol.cs (4)
1693new TypedConstant(compilation.GetSpecialType(SpecialType.System_String), TypedConstantKind.Primitive, PEModule.ByRefLikeMarker), // message 1694new TypedConstant(compilation.GetSpecialType(SpecialType.System_Boolean), TypedConstantKind.Primitive, true)), // error=true 1699ImmutableArray.Create(new TypedConstant(compilation.GetSpecialType(SpecialType.System_String), TypedConstantKind.Primitive, nameof(CompilerFeatureRequiredFeatures.RefStructs))), 1712var defaultMemberNameConstant = new TypedConstant(compilation.GetSpecialType(SpecialType.System_String), TypedConstantKind.Primitive, defaultMemberName);
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (4)
717declaredBase = compilation.GetSpecialType(SpecialType.System_Enum); 735declaredBase = compilation.GetSpecialType(SpecialType.System_Object); 739declaredBase = compilation.GetSpecialType(SpecialType.System_ValueType); 746declaredBase = compilation.GetSpecialType(SpecialType.System_MulticastDelegate);
Symbols\Source\SourceNamedTypeSymbol_Enum.cs (2)
69type = compilation.GetSpecialType(SpecialType.System_Int32); 76NamedTypeSymbol defaultUnderlyingType = compilation.GetSpecialType(SpecialType.System_Int32);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (4)
32_moveNextCalledField = new SynthesizedFieldSymbol(this, compilation.GetSpecialType(SpecialType.System_Boolean), "_moveNextCalled", isReadOnly: false); 34var iDisposable = compilation.GetSpecialType(SpecialType.System_IDisposable); 35var iEnumerator = compilation.GetSpecialType(SpecialType.System_Collections_IEnumerator); 36var iEnumeratorT = compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerator_T).Construct(typeArgs);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (13)
133compilation.GetSpecialType(SpecialType.System_Collections_Generic_IReadOnlyCollection_T) is not MissingMetadataTypeSymbol && 134compilation.GetSpecialType(SpecialType.System_Collections_Generic_IReadOnlyList_T) is not MissingMetadataTypeSymbol; 138diagnosticInfo = compilation.GetSpecialType(type).GetUseSiteInfo().DiagnosticInfo; 149diagnosticInfo = compilation.GetSpecialType(type).GetUseSiteInfo().DiagnosticInfo; 286var iEnumerable = compilation.GetSpecialType(SpecialType.System_Collections_IEnumerable); 289var iEnumerableT = compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T).Construct(typeArgs); 290var iReadOnlyCollectionT = compilation.GetSpecialType(SpecialType.System_Collections_Generic_IReadOnlyCollection_T).Construct(typeArgs); 291var iReadOnlyListT = compilation.GetSpecialType(SpecialType.System_Collections_Generic_IReadOnlyList_T).Construct(typeArgs); 292var iCollectionT = compilation.GetSpecialType(SpecialType.System_Collections_Generic_ICollection_T).Construct(typeArgs); 293var iListT = compilation.GetSpecialType(SpecialType.System_Collections_Generic_IList_T).Construct(typeArgs); 787&& compilation.GetSpecialType(SpecialType.System_IDisposable) is not MissingMetadataTypeSymbol 788&& compilation.GetSpecialType(SpecialType.System_Collections_IEnumerator) is not MissingMetadataTypeSymbol 789&& compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerator_T) is not MissingMetadataTypeSymbol
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
200arguments: ImmutableArray.Create(new TypedConstant(compilation.GetSpecialType(SpecialType.System_Int32), TypedConstantKind.Primitive, _arrayLength)),
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
274? compilation.GetSpecialType(SpecialType.System_Object)
Symbols\Synthesized\SynthesizedSubmissionConstructor.cs (1)
24var submissionArrayType = compilation.CreateArrayTypeSymbol(compilation.GetSpecialType(SpecialType.System_Object));
Symbols\TypeWithAnnotations.cs (2)
223=> Create(compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(ImmutableArray.Create(typeSymbol))); 1203_compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(ImmutableArray.Create(_underlying)) :
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.cs (1)
84var arrayType = compilation.GetSpecialType(SpecialType.System_Array);
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.InfoCache.cs (1)
74var stringType = compilation.GetSpecialType(SpecialType.System_String);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
1109var objectType = compilation.GetSpecialType(SpecialType.System_Object);
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateDeconstructMethodService.cs (1)
55type: semanticModel.GetTypeInfo(((ConstantPatternSyntax)positionalPattern.Subpatterns[i].Pattern).Expression, cancellationToken).Type ?? semanticModel.Compilation.GetSpecialType(SpecialType.System_Object),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
116targetType = semanticModel.Compilation.GetSpecialType(SpecialType.System_Object);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1150return compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(symbol);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (96)
CodeGen\CodeGenAsyncLocalsTests.cs (1)
968Assert.Equal(1, spillFieldsByType.Single(x => TypeSymbol.Equals(x.Key, comp.GetSpecialType(SpecialType.System_Int32), TypeCompareKind.ConsiderEverything2)).Count());
CodeGen\CodeGenFunctionPointersTests.cs (2)
7669var @string = comp1.GetSpecialType(SpecialType.System_String); 7754var @string = comp2.GetSpecialType(SpecialType.System_String);
CodeGen\CodeGenTupleTest.cs (92)
5789TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 5826TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 5827TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 5853TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 5870TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 5871TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 5905var intType = comp.GetSpecialType(SpecialType.System_Int32); 5906var stringType = comp.GetSpecialType(SpecialType.System_String); 5947TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 5948TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 5968TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 5969TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 5987TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 5988TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 6006TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6024TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6025TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 6050TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6051TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 6076TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6077TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 6101TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6102TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 6126TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6127TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 6152TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6153TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 6186TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6210ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6270NamedTypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6292NamedTypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6339TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6364TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6365TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 6383var intType = comp.GetSpecialType(SpecialType.System_Int32); 6384var stringType = comp.GetSpecialType(SpecialType.System_String); 6412TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6413TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 6428TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6429TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 6444TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6459TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6460TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 6479TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6480TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 6499TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6500TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 6520TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6521TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 6543TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6560TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 6584INamedTypeSymbol intType = comp.GetSpecialType(SpecialType.System_String).GetPublicSymbol(); 6602var intType = comp.GetSpecialType(SpecialType.System_Int32); 6603var stringType = comp.GetSpecialType(SpecialType.System_String); 6934NamedTypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 18843TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 18844TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 18861ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 18862ITypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 18881ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 18882ITypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 18904TypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 18905TypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 18906TypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 18921ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 18922ITypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 18923ITypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 18947ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 18948ITypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 18949ITypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 18972ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 18973ITypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 18974ITypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 18997ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 18998ITypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 18999ITypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 19023ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 19024ITypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 19025ITypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 19065ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 19066ITypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 19067ITypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 19104ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 19105ITypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 19106ITypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 19143ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 19144ITypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 19145ITypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 19182ITypeSymbol intType = comp.GetSpecialType(SpecialType.System_Int32); 19183ITypeSymbol stringType = comp.GetSpecialType(SpecialType.System_String); 19184ITypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 28988var @object = comp.GetSpecialType(SpecialType.System_Object);
Emit\CompilationEmitTests.cs (1)
5049comp.GetSpecialType(SpecialType.System_Int32);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (3)
Emit\NumericIntPtrTests.cs (2)
10356Assert.Same(nintType, comp.GetSpecialType(SpecialType.System_IntPtr)); 10369Assert.Same(nuintType, comp.GetSpecialType(SpecialType.System_UIntPtr));
PDB\PDBTests.cs (1)
709var stInt = c1.GetSpecialType(SpecialType.System_Int32);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (18)
Attributes\AttributeTests_Synthesized.cs (2)
648var c1OfInt = comp.GetTypeByMetadataName("C1`1").Construct(comp.GetSpecialType(SpecialType.System_Int32)); 1970new TypedConstant(comp.GetSpecialType(SpecialType.System_String), TypedConstantKind.Primitive, "unused"))));
Semantics\CollectionExpressionTests.cs (11)
4990var collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Generic_List_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 5045var collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Generic_List_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 5099var listType = comp.GetWellKnownType(WellKnownType.System_Collections_Generic_List_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 30133var collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 30193var collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 30404var collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 30428collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 30463var collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 30485collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 30517var collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 30539collectionType = comp.GetWellKnownType(WellKnownType.System_Collections_Immutable_ImmutableArray_T).Construct(comp.GetSpecialType(SpecialType.System_Int32));
Semantics\InlineArrayTests.cs (1)
114var t = comp.GetSpecialType(SpecialType.System_Runtime_CompilerServices_InlineArrayAttribute);
Semantics\RecordTests.cs (4)
12477verifyReturnType(property.GetMethod, CSharpCustomModifier.CreateOptional(comp.GetSpecialType(SpecialType.System_Int32))); 12482CSharpCustomModifier.CreateOptional(comp.GetSpecialType(SpecialType.System_UInt16))); 12485CSharpCustomModifier.CreateOptional(comp.GetSpecialType(SpecialType.System_Byte))); 12487CSharpCustomModifier.CreateOptional(comp.GetSpecialType(SpecialType.System_UInt16)));
Microsoft.CodeAnalysis.CSharp.Features (7)
ConvertForEachToFor\CSharpConvertForEachToForCodeRefactoringProvider.cs (2)
70model.Compilation.GetSpecialType(SpecialType.System_Object); 90model.Compilation.GetSpecialType(SpecialType.System_Int32).GenerateTypeSyntax(),
Snippets\AbstractCSharpForLoopSnippetProvider.cs (1)
74return (compilation.GetSpecialType(SpecialType.System_Int32).GenerateTypeSyntax(), inlineExpression);
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.cs (1)
84var arrayType = compilation.GetSpecialType(SpecialType.System_Array);
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.InfoCache.cs (1)
74var stringType = compilation.GetSpecialType(SpecialType.System_String);
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
1109var objectType = compilation.GetSpecialType(SpecialType.System_Object);
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateDeconstructMethodService.cs (1)
55type: semanticModel.GetTypeInfo(((ConstantPatternSyntax)positionalPattern.Subpatterns[i].Pattern).Expression, cancellationToken).Type ?? semanticModel.Compilation.GetSpecialType(SpecialType.System_Object),
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\DynamicTests.cs (4)
70var dynamicToObject = c.Conversions.ClassifyConversionFromType(DynamicTypeSymbol.Instance, c.GetSpecialType(SpecialType.System_Object), ref useSiteDiagnostics); 71var objectToDynamic = c.Conversions.ClassifyConversionFromType(c.GetSpecialType(SpecialType.System_Object), DynamicTypeSymbol.Instance, ref useSiteDiagnostics); 2157var eraser = new DynamicTypeEraser(compilation.GetSpecialType(SpecialType.System_Object)); 4157var typeObject = comp.GetSpecialType(SpecialType.System_Object);
Semantics\LockTests.cs (2)
667var symbol = compilation.GetSpecialType(SpecialType.System_String); 688var symbol = compilation.GetSpecialType(SpecialType.System_String);
Semantics\NullableConversionTests.cs (2)
812var nullableIntType = compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(compilation.GetSpecialType(SpecialType.System_Int32));
Semantics\NullableReferenceTypesTests.cs (1)
115877var modifiers = ImmutableArray.Create(CSharpCustomModifier.CreateOptional(comp.GetSpecialType(SpecialType.System_Object)));
Semantics\NullCoalesceAssignmentTests.cs (1)
160var int32 = comp.GetSpecialType(SpecialType.System_Int32);
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));
Semantics\UnsafeTests.cs (15)
5898Assert.False(compilation.GetSpecialType(SpecialType.System_ArgIterator).IsManagedTypeNoUseSiteDiagnostics); 5899Assert.False(compilation.GetSpecialType(SpecialType.System_RuntimeArgumentHandle).IsManagedTypeNoUseSiteDiagnostics); 5915Assert.True(libComp.GetSpecialType(SpecialType.System_TypedReference).IsManagedTypeNoUseSiteDiagnostics); 6037Assert.True(comp.GetSpecialType(SpecialType.System_TypedReference).IsManagedTypeNoUseSiteDiagnostics); 6058Assert.True(comp.GetSpecialType(SpecialType.System_TypedReference).IsManagedTypeNoUseSiteDiagnostics); 6079Assert.True(comp.GetSpecialType(SpecialType.System_TypedReference).IsManagedTypeNoUseSiteDiagnostics); 6120Assert.True(comp.GetSpecialType(SpecialType.System_TypedReference).IsManagedTypeNoUseSiteDiagnostics); 8165var intType = compilation.GetSpecialType(SpecialType.System_Int32); 8232var intType = compilation.GetSpecialType(SpecialType.System_Int32); 8290var intType = compilation.GetSpecialType(SpecialType.System_Int32); 10218var stringSymbol = compilation.GetSpecialType(SpecialType.System_String); 10219var charSymbol = compilation.GetSpecialType(SpecialType.System_Char); 10290var stringSymbol = compilation.GetSpecialType(SpecialType.System_String); 10291var charSymbol = compilation.GetSpecialType(SpecialType.System_Char); 10293var voidSymbol = compilation.GetSpecialType(SpecialType.System_Void);
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));
Compilation\GetSemanticInfoTests.cs (9)
381ConversionTestHelper(model, (v1 as CastExpressionSyntax).Expression, comp.GetSpecialType(SpecialType.System_UInt32), ConversionKind.ExplicitNumeric); 384ConversionTestHelper(model, (v2 as AssignmentExpressionSyntax).Right, comp.GetSpecialType(SpecialType.System_Object), ConversionKind.Boxing); 387ConversionTestHelper(model, (v3 as CastExpressionSyntax).Expression, comp.GetSpecialType(SpecialType.System_Int32), ConversionKind.Unboxing); 5399var objectType = compilation.GetSpecialType(SpecialType.System_Object); 5523var otherFuncType = comp.GetWellKnownType(WellKnownType.System_Func_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 5537var otherFuncType = comp.GetWellKnownType(WellKnownType.System_Func_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 5727var typeInt = comp.GetSpecialType(SpecialType.System_Int32); 5931comp.GetSpecialType(specialType); 5954comp.GetSpecialType(specialType);
Compilation\QueryClauseInfoTests.cs (2)
21var obj = c.GetSpecialType(SpecialType.System_Object); 22var int32 = c.GetSpecialType(SpecialType.System_Int32);
Compilation\SemanticModelAPITests.cs (6)
708Assert.Equal(compilation.GetSpecialType(SpecialType.System_String), (info.Symbol as IArrayTypeSymbol).ElementType); 3745var stringType = comp.GetSpecialType(SpecialType.System_String); 3923var type1 = comp.GetSpecialType(SpecialType.System_Nullable_T).Construct(comp.GetSpecialType(SpecialType.System_Int32)); 3930var type2 = comp.GetSpecialType(SpecialType.System_Nullable_T).Construct(comp.GetSpecialType(SpecialType.System_Int32));
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (5)
1767var baseType = compilation.GetSpecialType(SpecialType.System_Object); 1776var valueType = compilation.GetSpecialType(SpecialType.System_Int32); 1823var type = compilation.GetSpecialType(SpecialType.System_Collections_Generic_IList_T); 1824type = type.Construct(compilation.GetSpecialType(SpecialType.System_String)); 1833type = compilation.GetSpecialType(SpecialType.System_Double);
Compilation\SemanticModelGetSemanticInfoTests.cs (2)
1287type = compilation.GetSpecialType(SpecialType.System_String); 1314type = compilation.GetSpecialType(SpecialType.System_String);
Compilation\TypeInfoTests.cs (4)
20var obj = c.GetSpecialType(SpecialType.System_Object).GetPublicSymbol(); 21var int32 = c.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol(); 45var intEnum1 = c.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T).GetPublicSymbol().Construct(int32); 46var intEnum2 = c.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T).GetPublicSymbol().Construct(int32);
DocumentationComments\CrefTests.cs (9)
2218var expectedSymbol = compilation.GetSpecialType(SpecialType.System_Int32); 3006var typeInt = ((Compilation)compilation).GetSpecialType(SpecialType.System_Int32); 3078var expectedParameterType = compilation.GetSpecialType(SpecialType.System_Int32).ISymbol; 3136var expectedReturnType = compilation.GetSpecialType(SpecialType.System_Int32).ISymbol; 5403Assert.Equal(compilation.GetSpecialType(SpecialType.System_Int32), model.GetSymbolInfo(crefSyntaxes[0]).Symbol); 5404Assert.Equal(compilation.GetSpecialType(SpecialType.System_Int64), model.GetSymbolInfo(crefSyntaxes[1]).Symbol); 5921var expectedSymbol = compilation.GetSpecialType(SpecialType.System_String). 6218Assert.Equal(compilation.GetSpecialType(SpecialType.System_Int32), info.Symbol); 6251Assert.Equal(compilation.GetSpecialType(SpecialType.System_Int32), info.Symbol);
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (1)
1053var disposeMethod = (IMethodSymbol)compilation.GetSpecialType(SpecialType.System_IDisposable).GetMembers("Dispose").Single();
Symbols\AnonymousTypesSymbolTests.cs (2)
1925ImmutableArray.Create<ITypeSymbol>(compilation.GetSpecialType(SpecialType.System_Int32).GetPublicSymbol(), compilation.GetSpecialType(SpecialType.System_Boolean).GetPublicSymbol()),
Symbols\AssemblyAndNamespaceTests.cs (1)
381var objectType = comp.GetSpecialType(SpecialType.System_Object);
Symbols\CompilationCreationTests.cs (1)
80NamedTypeSymbol type = c1.GetSpecialType((SpecialType)i);
Symbols\ConversionTests.cs (2)
350Assert.Equal(ConversionKind.Identity, tuple.Item2.ClassifyConversion(tuple.Item1, comp.GetSpecialType(SpecialType.System_Boolean)).Kind); 2062var destinationType = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("C").Construct(comp.GetSpecialType(SpecialType.System_Int32));
Symbols\CorLibrary\Choosing.cs (3)
41var obj = corLib.GetSpecialType(SpecialType.System_Object); 52Assert.Same(obj, consumer.GetSpecialType(SpecialType.System_Object)); 73Assert.True(consumer.GetSpecialType(SpecialType.System_Object).IsErrorType());
Symbols\CorLibrary\CorTypes.cs (5)
198var t = c1.GetSpecialType((SpecialType)i); 226Assert.Same(system_object, c1.GetSpecialType(SpecialType.System_Object)); 228Assert.Throws<ArgumentOutOfRangeException>(() => c1.GetSpecialType(SpecialType.None)); 229Assert.Throws<ArgumentOutOfRangeException>(() => ((Compilation)c1).GetSpecialType(SpecialType.None)); 231Assert.Throws<ArgumentOutOfRangeException>(() => ((Compilation)c1).GetSpecialType(SpecialType.Count + 1));
Symbols\ExtensionMethodTests.cs (6)
2526var intType = compilation.GetSpecialType(SpecialType.System_Int32); 2527var stringType = compilation.GetSpecialType(SpecialType.System_String); 2805var int32Type = compilation.GetSpecialType(SpecialType.System_Int32); 2849var int32Type = compilation2.GetSpecialType(SpecialType.System_Int32); 2872int32Type = compilation2.GetSpecialType(SpecialType.System_Int32); 4094var systemVoidType = compilation.GetSpecialType(SpecialType.System_Void);
Symbols\FunctionPointerTypeSymbolTests.cs (14)
1529var @string = comp.GetSpecialType(SpecialType.System_String); 1552var @string = comp.GetSpecialType(SpecialType.System_String); 1580var @string = comp.GetSpecialType(SpecialType.System_String); 1596var @string = comp.GetSpecialType(SpecialType.System_String); 1597var @void = comp.GetSpecialType(SpecialType.System_Void); 1615var @string = comp.GetSpecialType(SpecialType.System_String); 1636var @string = comp.GetSpecialType(SpecialType.System_String); 1648var @string = comp.GetSpecialType(SpecialType.System_String); 1959var returnType = mainComp.GetSpecialType(SpecialType.System_String).GetPublicSymbol(); 1979var returnType = comp.GetSpecialType(SpecialType.System_String); 1981var objectMod = CSharpCustomModifier.CreateOptional(comp.GetSpecialType(SpecialType.System_Object)); 2084var returnType = comp.GetSpecialType(SpecialType.System_String); 2135var returnType = comp.GetSpecialType(SpecialType.System_String); 2137var objectMod = CSharpCustomModifier.CreateOptional(comp.GetSpecialType(SpecialType.System_Object));
Symbols\IndexerTests.cs (1)
2869var substitutedType = unsubstitutedType.Construct(comp.GetSpecialType(SpecialType.System_Int32));
Symbols\MissingSpecialMember.cs (3)
157var specialType = comp.GetSpecialType(SpecialType.System_String); 235var specialType = comp.GetSpecialType(SpecialType.System_Nullable_T); 530var symbol = comp.GetSpecialType(special);
Symbols\OverriddenOrHiddenMembersTests.cs (1)
2867var obj = compilation.GetSpecialType(SpecialType.System_Object);
Symbols\Source\ClsComplianceTests.cs (2)
3156var intType = helper.GetSpecialType(SpecialType.System_Int32); 3171var type = helper.GetSpecialType(st);
Symbols\Source\CustomModifierCopyTests.cs (12)
1781var int8Type = comp.GetSpecialType(SpecialType.System_SByte); 1782var int16Type = comp.GetSpecialType(SpecialType.System_Int16); 1783var int32Type = comp.GetSpecialType(SpecialType.System_Int32); 1784var int64Type = comp.GetSpecialType(SpecialType.System_Int64); 1898var int8Type = comp.GetSpecialType(SpecialType.System_SByte); 1899var int16Type = comp.GetSpecialType(SpecialType.System_Int16); 1995var int8Type = comp.GetSpecialType(SpecialType.System_SByte); 1996var int16Type = comp.GetSpecialType(SpecialType.System_Int16); 1997var int32Type = comp.GetSpecialType(SpecialType.System_Int32); 1998var int64Type = comp.GetSpecialType(SpecialType.System_Int64); 2097var int8Type = comp.GetSpecialType(SpecialType.System_SByte); 2098var int16Type = comp.GetSpecialType(SpecialType.System_Int16);
Symbols\Source\DelegateTests.cs (2)
115Assert.Equal(comp.GetSpecialType(SpecialType.System_Object), ctor.Parameters[0].Type); 116Assert.Equal(comp.GetSpecialType(SpecialType.System_IntPtr), ctor.Parameters[1].Type);
Symbols\Source\ModifierTests.cs (1)
152var intType = comp.GetSpecialType(SpecialType.System_Int32);
Symbols\Source\TypeMapTests.cs (6)
137var _int = compilation.GetSpecialType(SpecialType.System_Int32); 138var _byte = compilation.GetSpecialType(SpecialType.System_Byte); 139var _char = compilation.GetSpecialType(SpecialType.System_Char); 179var _int = compilation.GetSpecialType(SpecialType.System_Int32); 180var _byte = compilation.GetSpecialType(SpecialType.System_Byte); 181var _char = compilation.GetSpecialType(SpecialType.System_Char);
Symbols\SymbolDistinguisherTests.cs (2)
315var errorType = dummyComp.GetSpecialType(SpecialType.System_Int32); 316var validType = CreateEmptyCompilation("", new[] { MscorlibRef }).GetSpecialType(SpecialType.System_Int32);
Symbols\TypedConstantTests.cs (7)
34_arrayType = _compilation.CreateArrayTypeSymbol(_compilation.GetSpecialType(SpecialType.System_Object)); 35_intType = _compilation.GetSpecialType(SpecialType.System_Int32); 36_stringType = _compilation.GetSpecialType(SpecialType.System_String); 37_enumString1 = _compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T).Construct(_compilation.GetSpecialType(SpecialType.System_String)); 38_enumString2 = _compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T).Construct(_compilation.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)
Diagnostics\DiagnosticTest.cs (1)
113var type = TypeWithAnnotations.Create(comp.GetSpecialType(SpecialType.System_Object));
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
Metadata\WinMdEventTests.cs (2)
3576var voidType = compilation.GetSpecialType(SpecialType.System_Void); 3607var voidType = compilation.GetSpecialType(SpecialType.System_Void);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Recommendations\CSharpRecommendationServiceRunner_Conversions.cs (1)
148? compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(container)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
116targetType = semanticModel.Compilation.GetSpecialType(SpecialType.System_Object);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1150return compilation.GetSpecialType(SpecialType.System_Nullable_T).Construct(symbol);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (9)
CodeGeneration\SyntaxGeneratorTests.cs (9)
277var intType = _emptyCompilation.GetSpecialType(SpecialType.System_Int32); 315var genericType = _emptyCompilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T); 318var arrayType = _emptyCompilation.CreateArrayTypeSymbol(_emptyCompilation.GetSpecialType(SpecialType.System_Int32)); 405var intType = _emptyCompilation.GetSpecialType(SpecialType.System_Int32); 854_emptyCompilation.GetSpecialType(SpecialType.System_Int32), 855_emptyCompilation.GetSpecialType(SpecialType.System_String) 996var doubleType = _emptyCompilation.GetSpecialType(SpecialType.System_Decimal); 998m.Name == WellKnownMemberNames.ImplicitConversionName && m.Parameters[0].Type.Equals(_emptyCompilation.GetSpecialType(SpecialType.System_Byte))); 2571var field = _emptyCompilation.GetSpecialType(SpecialType.System_UInt32).GetMembers(nameof(UInt32.MaxValue)).Single();
Microsoft.CodeAnalysis.Features (19)
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
241var charType = model.Compilation.GetSpecialType(SpecialType.System_Char);
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
869model.Compilation.GetSpecialType(SpecialType.System_Void),
ExtractMethod\MethodExtractor.Analyzer.cs (4)
214returnType = model.Compilation.GetSpecialType(SpecialType.System_Void); 235if (taskType is object && returnType.Equals(model.Compilation.GetSpecialType(SpecialType.System_Void))) 272returnType ??= compilation.GetSpecialType(SpecialType.System_Object); 292return compilation.GetSpecialType(SpecialType.System_Void);
GenerateComparisonOperators\GenerateComparisonOperatorsCodeRefactoringProvider.cs (1)
183var boolType = compilation.GetSpecialType(SpecialType.System_Boolean);
GenerateEqualsAndGetHashCodeFromMembers\AbstractGenerateEqualsAndGetHashCodeService.cs (1)
138returnType: compilation.GetSpecialType(SpecialType.System_Int32),
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeAction.cs (2)
164compilation.GetSpecialType(SpecialType.System_Boolean), 181compilation.GetSpecialType(SpecialType.System_Boolean),
GenerateType\AbstractGenerateTypeService.GenerateNamedType.cs (1)
75return _state.Compilation.GetSpecialType(SpecialType.System_Void);
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (1)
394var stringType = compilation.GetSpecialType(SpecialType.System_String);
IntroduceVariable\AbstractIntroduceVariableService.cs (1)
427return semanticModel.Compilation.GetSpecialType(SpecialType.System_Object);
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
38var objectType = compilation.GetSpecialType(SpecialType.System_Object);
src\Analyzers\Core\Analyzers\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (1)
34var objectType = context.Compilation.GetSpecialType(SpecialType.System_Object);
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer.cs (1)
95var objectType = context.Compilation.GetSpecialType(SpecialType.System_Object);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateDeconstructMethodService.State.cs (1)
75returnType: semanticModel.Compilation.GetSpecialType(SpecialType.System_Void),
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (1)
251var idisposable = compilation.GetSpecialType(SpecialType.System_IDisposable);
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (1)
181compilation.GetSpecialType(SpecialType.System_Boolean),
Microsoft.CodeAnalysis.Features.UnitTests (9)
FindUsages\DefinitionItemFactoryTests.cs (9)
981var i = compilation.GetSpecialType(SpecialType.System_Int32); 1036var i = compilation.GetSpecialType(SpecialType.System_Int32); 1088var i = compilation.GetSpecialType(SpecialType.System_Int32); 1152var i = compilation.GetSpecialType(SpecialType.System_Int32); 1209var i = compilation.GetSpecialType(SpecialType.System_Int32); 1264var i = compilation.GetSpecialType(SpecialType.System_Int32); 1344var i = compilation.GetSpecialType(SpecialType.System_Int32); 1522var i = compilation.GetSpecialType(SpecialType.System_Int32); 1593var i = compilation.GetSpecialType(SpecialType.System_Int32);
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\IRuntimeEnvironment.cs (1)
201var corLibIdentity = compilation.GetSpecialType(SpecialType.System_Object).ContainingAssembly.Identity;
Platform\CoreClr\CoreCLRRuntimeEnvironment.cs (1)
55var corLibIdentity = mainCompilation.GetSpecialType(SpecialType.System_Object).ContainingAssembly.Identity;
Microsoft.CodeAnalysis.UnitTests (7)
CommonTypedConstantTests.cs (6)
30_intType = _compilation.GetSpecialType(SpecialType.System_Int32); 31_stringType = _compilation.GetSpecialType(SpecialType.System_String); 32_enumString1 = _compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T).Construct(_compilation.GetSpecialType(SpecialType.System_String)); 33_enumString2 = _compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T).Construct(_compilation.GetSpecialType(SpecialType.System_String));
CorLibTypesTests.cs (1)
79var symbol = comp.GetSpecialType(specialType);
Microsoft.CodeAnalysis.VisualBasic (3)
Emit\EditAndContinue\PEDeltaAssemblyBuilder.vb (2)
314Dim stringType = Compilation.GetSpecialType(SpecialType.System_String) 315Dim intType = Compilation.GetSpecialType(SpecialType.System_Int32)
Operations\VisualBasicOperationFactory.vb (1)
1417DirectCast(_semanticModel.Compilation.GetSpecialType(SpecialType.System_Boolean), TypeSymbol),
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ITypeSymbolExtensions.vb (1)
98Return compilation.GetSpecialType(specialType)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (3)
234Return CreateResult(Compilation.GetSpecialType(SpecialType.System_Int32)) 281Return CreateResult(Compilation.GetSpecialType(SpecialType.System_Int32)) 664Return CreateResult(type.Construct(Compilation.GetSpecialType(SpecialType.System_Object)))
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
NavigationBar\VisualBasicEditorNavigationBarItemService_CodeGeneration.vb (1)
233returnType:=compilation.GetSpecialType(SpecialType.System_Void),
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (48)
CodeGen\CodeGenTuples.vb (48)
6864Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 6887Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 6888Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 6916Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 6917Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 6939Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 6940Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 6959Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 6960Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 6979Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 6980Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7000Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7018Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7019Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7043Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7044Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7068Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7069Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7093Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7094Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7118Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7119Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7149Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7168Dim intType As NamedTypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7190Dim intType As NamedTypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7218Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7244Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7245Dim stringType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7267Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7268Dim stringType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7290Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7291Dim stringType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7308Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7309Dim stringType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7326Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7342Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7343Dim stringType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7363Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7364Dim stringType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7384Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7385Dim stringType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7405Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7406Dim stringType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7432Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7449Dim intType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7481Dim stringType As ITypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7529Dim intType As NamedTypeSymbol = comp.GetSpecialType(SpecialType.System_String) 8934Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (5)
CompilationContext.vb (3)
95_voidType = Me.Compilation.GetSpecialType(SpecialType.System_Void) 134Dim objectType = Me.Compilation.GetSpecialType(SpecialType.System_Object) 200Dim objectType = Me.Compilation.GetSpecialType(SpecialType.System_Object)
Rewriters\LocalDeclarationRewriter.vb (2)
61Dim stringType = compilation.GetSpecialType(SpecialType.System_String) 64compilation.GetSpecialType(SpecialType.System_Byte),
Microsoft.CodeAnalysis.VisualBasic.Features (3)
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.vb (3)
143returnType:=semanticModel.Compilation.GetSpecialType(SpecialType.System_Void), 285semanticModel.Compilation.GetSpecialType(SpecialType.System_Void)) 392returnType:=semanticModel.Compilation.GetSpecialType(SpecialType.System_Void),
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\BinaryOperators.vb (3)
1169Dim containerName As String = compilation.GetSpecialType(resultType).ToTestDisplayString() 1184returnName = compilation.GetSpecialType(SpecialType.System_Boolean).ToTestDisplayString() 1189rightName = compilation.GetSpecialType(SpecialType.System_Int32).ToTestDisplayString()
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\GetSemanticInfoTests.vb (1)
6393DirectCast(compilation, Compilation).GetSpecialType(type)
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)
Semantics\UnaryOperators.vb (1)
736Dim containerName As String = compilation.GetSpecialType(resultType).ToTestDisplayString()
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (11)
DocumentationComments\DocCommentTests.vb (4)
4898TestSymbolAndTypeInfoForType(model, names(0), compilation.GetSpecialType(SpecialType.System_UInt16)) 4899TestSymbolAndTypeInfoForType(model, names(1), compilation.GetSpecialType(SpecialType.System_UInt16)) 4926TestSymbolAndTypeInfoForType(model, names(0), compilation.GetSpecialType(SpecialType.System_String)) 4927TestSymbolAndTypeInfoForType(model, names(1), compilation.GetSpecialType(SpecialType.System_String))
SymbolsTests\CorLibrary\CorTypes.vb (3)
193Assert.Throws(Of ArgumentOutOfRangeException)(Function() c1.GetSpecialType(SpecialType.None)) 194Assert.Throws(Of ArgumentOutOfRangeException)(Function() DirectCast(c1, Compilation).GetSpecialType(SpecialType.None)) 196Assert.Throws(Of ArgumentOutOfRangeException)(Function() DirectCast(c1, Compilation).GetSpecialType(CType(SpecialType.Count + 1, SpecialType)))
SymbolsTests\Metadata\WinMdEventTest.vb (2)
1605Dim voidType = compilation.GetSpecialType(SpecialType.System_Void) 1632Dim voidType = compilation.GetSpecialType(SpecialType.System_Void)
SymbolsTests\TypedConstantTests.vb (2)
28_namedType = _compilation.GetSpecialType(SpecialType.System_Byte) 30_arrayType = _compilation.CreateArrayTypeSymbol(_compilation.GetSpecialType(SpecialType.System_Object))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (5)
CodeCleanup\AsyncOrIteratorFunctionReturnTypeFixer.vb (1)
137Dim iEnumerableOfT = semanticModel.Compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ITypeSymbolExtensions.vb (1)
98Return compilation.GetSpecialType(specialType)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (3)
234Return CreateResult(Compilation.GetSpecialType(SpecialType.System_Int32)) 281Return CreateResult(Compilation.GetSpecialType(SpecialType.System_Int32)) 664Return CreateResult(type.Construct(Compilation.GetSpecialType(SpecialType.System_Object)))
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (11)
CodeGeneration\SyntaxGeneratorTests.vb (11)
24Me._ienumerableInt = _emptyCompilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T).Construct(_emptyCompilation.GetSpecialType(SpecialType.System_Int32)) 254Dim intType = _emptyCompilation.GetSpecialType(SpecialType.System_Int32) 290Dim genericType = _emptyCompilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T) 293Dim arrayType = _emptyCompilation.CreateArrayTypeSymbol(_emptyCompilation.GetSpecialType(SpecialType.System_Int32)) 368Dim intType = _emptyCompilation.GetSpecialType(SpecialType.System_Int32) 938_emptyCompilation.GetSpecialType(SpecialType.System_Int32), 939_emptyCompilation.GetSpecialType(SpecialType.System_String) 1074Dim doubleType = _emptyCompilation.GetSpecialType(SpecialType.System_Decimal) 1076Function(m) m.Name = WellKnownMemberNames.ImplicitConversionName AndAlso m.Parameters(0).Type.Equals(_emptyCompilation.GetSpecialType(SpecialType.System_Byte))) 2472Dim field = _emptyCompilation.GetSpecialType(SpecialType.System_UInt32).GetMembers(NameOf(UInt32.MaxValue)).Single()
Microsoft.CodeAnalysis.Workspaces (13)
Recommendations\AbstractRecommendationServiceRunner.cs (1)
325specialTypeSymbol ??= _context.SemanticModel.Compilation.GetSpecialType(specialType);
Shared\Utilities\EditorBrowsableHelpers.cs (1)
100var shortType = compilation.GetSpecialType(SpecialType.System_Int16);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
512.Select(p => (p.Type ?? compilation.GetSpecialType(SpecialType.System_Object)).WithNullableAnnotation(p.NullableAnnotation)); 517types = types.Concat((method.ReturnType ?? compilation.GetSpecialType(SpecialType.System_Object)).WithNullableAnnotation(method.ReturnNullableAnnotation));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
92_ => compilation.GetSpecialType(SpecialType.System_Object),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (2)
55returnType: compilation.GetSpecialType(SpecialType.System_Boolean), 60parameters: [CodeGenerationSymbolFactory.CreateParameterSymbol(compilation.GetSpecialType(SpecialType.System_Object).WithNullableAnnotation(NullableAnnotation.Annotated), ObjName)],
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (3)
136? factory.SimpleLocalDeclarationStatement(generatorInternal, compilation.GetSpecialType(SpecialType.System_Int32), HashCodeName, CreateLiteralExpression(factory, initHash)) 137: factory.LocalDeclarationStatement(compilation.GetSpecialType(SpecialType.System_Int64), HashCodeName, CreateLiteralExpression(factory, initHash))); 166compilation.GetSpecialType(SpecialType.System_Int32),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
84=> CreateResult(Compilation.GetSpecialType(type).WithNullableAnnotation(nullableAnnotation));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\TypeInferenceService\AbstractTypeInferenceService.cs (1)
48? [semanticModel.Compilation.GetSpecialType(SpecialType.System_Boolean)]
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplificationHelpers.cs (1)
81var typeSymbol = semanticModel.Compilation.GetSpecialType(specialType);
Microsoft.CodeAnalysis.Workspaces.UnitTests (12)
SymbolKeyTests.cs (11)
723var constructed = method.Construct(compilation.GetSpecialType(SpecialType.System_Int32), method.TypeParameters[1]); 741var constructed = type.Construct(compilation.GetSpecialType(SpecialType.System_Int32), type.TypeParameters[1]); 761var constructed = outer.Construct(compilation.GetSpecialType(SpecialType.System_String)); 791var a_string = a.Construct(compilation.GetSpecialType(SpecialType.System_String)); 798var a_string_b_int = a_string_b.Construct(compilation.GetSpecialType(SpecialType.System_Int32)); 803var a_string_b_int_m_datetime = ((IMethodSymbol)a_string_b_int_m).Construct(compilation.GetSpecialType(SpecialType.System_DateTime)); 806var a_b_int = a_b.Construct(compilation.GetSpecialType(SpecialType.System_Int32)); 808var a_b_int_m_datetime = ((IMethodSymbol)a_b_int_m).Construct(compilation.GetSpecialType(SpecialType.System_DateTime)); 813var a_b_m_datetime = ((IMethodSymbol)a_b_m).Construct(compilation.GetSpecialType(SpecialType.System_DateTime)); 1313var symbolKey1 = SymbolKey.Create(compilation1.GetSpecialType(SpecialType.System_Int32)); 1314var symbolKey2 = SymbolKey.Create(compilation2.GetSpecialType(SpecialType.System_Int32));
UtilityTest\DocumentationCommentIdTests.cs (1)
340var intType = compilation.GetSpecialType(SpecialType.System_Int32);
Microsoft.Extensions.Logging.Generators (2)
LoggerMessageGenerator.Parser.cs (2)
67INamedTypeSymbol enumerableSymbol = _compilation.GetSpecialType(SpecialType.System_Collections_IEnumerable); 68INamedTypeSymbol stringSymbol = _compilation.GetSpecialType(SpecialType.System_String);
Microsoft.Extensions.Options.SourceGeneration (1)
Parser.cs (1)
257if (SymbolEqualityComparer.Default.Equals(implementingInterface.OriginalDefinition, _compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T)))
Microsoft.Gen.Logging (1)
Parsing\SymbolLoader.cs (1)
89var enumerableSymbol = compilation.GetSpecialType(SpecialType.System_Collections_IEnumerable);
Microsoft.Gen.Logging.Unit.Tests (4)
TypeSymbolExtensionsTests.cs (4)
286INamedTypeSymbol nullableType = compilation.GetSpecialType(SpecialType.System_Nullable_T); 287INamedTypeSymbol intType = compilation.GetSpecialType(SpecialType.System_Int32); 298INamedTypeSymbol intType = compilation.GetSpecialType(SpecialType.System_Int32); 308INamedTypeSymbol intType = compilation.GetSpecialType(SpecialType.System_Int32);
Microsoft.Gen.Metrics (1)
SymbolLoader.cs (1)
36var longType = compilation.GetSpecialType(SpecialType.System_Int64);
Microsoft.Gen.MetricsReports (1)
src\Generators\Microsoft.Gen.Metrics\SymbolLoader.cs (1)
36var longType = compilation.GetSpecialType(SpecialType.System_Int64);
Microsoft.Interop.LibraryImportGenerator (7)
Analyzers\ConvertToLibraryImportFixer.cs (1)
251editor.Generator.TypeExpression(editor.SemanticModel.Compilation.GetSpecialType(SpecialType.System_Int32)));
Analyzers\CustomMarshallerAttributeFixer.cs (6)
248gen.TypeExpression(editor.SemanticModel.Compilation.GetSpecialType(SpecialType.System_Int32)), 382return gen.TypeExpression(editor.SemanticModel.Compilation.GetSpecialType(SpecialType.System_IntPtr)); 396return editor.SemanticModel.Compilation.GetSpecialType(SpecialType.System_IntPtr); 460gen.TypeExpression(editor.SemanticModel.Compilation.GetSpecialType(SpecialType.System_Int32)), 549return gen.TypeExpression(editor.SemanticModel.Compilation.GetSpecialType(SpecialType.System_IntPtr)); 563return editor.SemanticModel.Compilation.GetSpecialType(SpecialType.System_IntPtr);
Microsoft.Interop.SourceGeneration (2)
IncrementalGeneratorInitializationContextExtensions.cs (1)
37(context, ct) => SymbolEqualityComparer.Default.Equals(context.Attributes[0].AttributeClass.ContainingAssembly, context.SemanticModel.Compilation.GetSpecialType(SpecialType.System_Object).ContainingAssembly))
TypeSymbolExtensions.cs (1)
83if (t.ContainingAssembly.Equals(compilation.GetSpecialType(SpecialType.System_Object).ContainingAssembly, SymbolEqualityComparer.Default))
Microsoft.VisualStudio.LanguageServices (1)
Venus\ContainedLanguageCodeSupport.cs (1)
194returnType: targetDocument.Project.GetCompilationAsync(cancellationToken).WaitAndGetResult_Venus(cancellationToken).GetSpecialType(SpecialType.System_Void),
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
CodeModel\MethodXML\MethodXmlBuilder.vb (1)
542GenerateNumber(upperBound, SemanticModel.Compilation.GetSpecialType(SpecialType.System_Int32))
Mvc.Analyzers.Test (7)
CodeAnalysisExtensionsTest.cs (7)
318Assert.Equal(attributeData.ConstructorArguments[0].Value, compilation.GetSpecialType(SpecialType.System_Object)); 323Assert.Equal(attributeData.ConstructorArguments[0].Value, compilation.GetSpecialType(SpecialType.System_String)); 361Assert.Equal(attributeData.ConstructorArguments[0].Value, compilation.GetSpecialType(SpecialType.System_Int32)); 366Assert.Equal(attributeData.ConstructorArguments[0].Value, compilation.GetSpecialType(SpecialType.System_Object)); 371Assert.Equal(attributeData.ConstructorArguments[0].Value, compilation.GetSpecialType(SpecialType.System_String)); 409Assert.Equal(attributeData.ConstructorArguments[0].Value, compilation.GetSpecialType(SpecialType.System_Int32)); 447Assert.Equal(attributeData.ConstructorArguments[0].Value, compilation.GetSpecialType(SpecialType.System_Int32));
Mvc.Api.Analyzers.Test (2)
MvcFactsTest.cs (1)
211var type = compilation.GetSpecialType(SpecialType.System_IDisposable);
SymbolApiConventionMatcherTest.cs (1)
338var type = compilation.GetSpecialType(SpecialType.System_String);
System.Text.Json.SourceGeneration (6)
Helpers\KnownTypeSymbols.cs (6)
124public INamedTypeSymbol ObjectType => _ObjectType ??= Compilation.GetSpecialType(SpecialType.System_Object); 127public INamedTypeSymbol StringType => _StringType ??= Compilation.GetSpecialType(SpecialType.System_String); 153: (_ByteArrayType = new(Compilation.CreateArrayTypeSymbol(Compilation.GetSpecialType(SpecialType.System_Byte), rank: 1))).Value; 159: (_MemoryByteType = new(MemoryType?.Construct(Compilation.GetSpecialType(SpecialType.System_Byte)))).Value; 165: (_ReadOnlyMemoryByteType = new(ReadOnlyMemoryType?.Construct(Compilation.GetSpecialType(SpecialType.System_Byte)))).Value; 244public INamedTypeSymbol? DelegateType => _DelegateType ??= Compilation.GetSpecialType(SpecialType.System_Delegate);