207 references to None
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (1)
293case SpecialType.None:
Microsoft.CodeAnalysis (14)
Compilation\Compilation.cs (1)
958if (specialType <= SpecialType.None || specialType > SpecialType.Count)
ConstantValue.cs (1)
511default: return SpecialType.None;
ConstantValueSpecialized.cs (2)
44get { return SpecialType.None; } 85get { return SpecialType.None; }
ExtendedSpecialType.cs (2)
26public static explicit operator SpecialType(ExtendedSpecialType value) => value._value < (int)InternalSpecialType.First ? (SpecialType)value._value : SpecialType.None; 61if (_value > (int)SpecialType.None && _value <= (int)SpecialType.Count)
InternalSpecialType.cs (1)
17Unknown = SpecialType.None,
SpecialTypeExtensions.cs (1)
356return SpecialType.None;
SpecialTypes.cs (1)
127s_typeCodeToTypeIdMap[i] = SpecialType.None;
Symbols\Attributes\MarshalAsAttributeDecoder.cs (2)
142typeSymbol = namedArg.Value.DecodeValue<ITypeSymbolInternal>(SpecialType.None); 321elementTypeSymbol = namedArg.Value.DecodeValue<ITypeSymbolInternal>(SpecialType.None);
Symbols\ITypeSymbol.cs (1)
93/// Returns <see cref="Microsoft.CodeAnalysis.SpecialType.None"/> if the type is not special.
Symbols\ITypeSymbolInternal.cs (1)
18/// Returns <see cref="Microsoft.CodeAnalysis.SpecialType.None"/> if the type is not special.
WellKnownTypes.cs (1)
18Unknown = SpecialType.None,
Microsoft.CodeAnalysis.CodeStyle (4)
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (1)
158if (member is not IFieldSymbol fieldSymbol || fieldSymbol.Type.SpecialType != SpecialType.None)
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (1)
356return SpecialType.None;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\PredefinedTypeExtensions.cs (1)
33_ => SpecialType.None,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
1020if (newReceiverType.SpecialType != SpecialType.None)
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (3)
426SpecialType specialType = SpecialType.None, 445SpecialType specialType = SpecialType.None, 497specialType: SpecialType.None,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplificationHelpers.cs (1)
79if (specialType != SpecialType.None)
Microsoft.CodeAnalysis.CSharp (37)
Binder\Binder_Expressions.cs (1)
7223specialType != SpecialType.None &&
Binder\Binder_Symbols.cs (2)
995node.IsNuint ? SpecialType.System_UIntPtr : SpecialType.None; 997if (specialType == SpecialType.None)
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (1)
476Debug.Assert(underlying.SpecialType != SpecialType.None);
CodeGen\EmitArrayInitializer.cs (1)
443SpecialType specialElementType = SpecialType.None;
Compilation\CSharpCompilation.cs (7)
1665if ((int)specialType <= (int)SpecialType.None || (int)specialType >= (int)InternalSpecialType.NextAvailable) 1803SpecialType.None, 4244if (csharpReturnType.SpecialType != SpecialType.None && 4245csharpLeftType.SpecialType != SpecialType.None && 4246csharpRightType.SpecialType != SpecialType.None) 4469if (csharpReturnType.SpecialType != SpecialType.None && csharpOperandType.SpecialType != SpecialType.None)
Emitter\Model\ParameterSymbolAdapter.cs (1)
86if (constant.SpecialType != SpecialType.None)
Emitter\NoPia\EmbeddedTypesManager.cs (1)
259if (namedType.SpecialType != SpecialType.None || namedType.IsErrorType() || !namedType.ContainingAssembly.IsLinked)
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (2)
742Debug.Assert(constantOne.SpecialType != SpecialType.None); 743Debug.Assert(binaryOperandType.SpecialType != SpecialType.None);
Parser\Lexer.cs (1)
854info.ValueKind = SpecialType.None;
Symbols\BaseTypeAnalysis.cs (1)
276case SpecialType.None:
Symbols\ConstraintsHelper.cs (1)
111switch (typeParameter.HasReferenceTypeConstraint ? SpecialType.None : (bounds?.EffectiveBaseClass.SpecialType ?? SpecialType.System_Object))
Symbols\Metadata\PE\MetadataDecoder.cs (4)
177return new MissingMetadataTypeSymbol.TopLevel(new MissingModuleSymbolWithName(moduleSymbol.ContainingAssembly, moduleName), ref emittedName, SpecialType.None); 422SpecialType baseSpecialType = (candidate.BaseTypeNoUseSiteDiagnostics?.SpecialType ?? SpecialType.None); 423if (baseSpecialType == SpecialType.None || baseSpecialType != (baseType?.SpecialType ?? SpecialType.None))
Symbols\Metadata\PE\PEModuleSymbol.cs (1)
494if (keepLookingForDeclaredCorTypes && type.SpecialType != SpecialType.None)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (4)
350_corTypeId = SpecialType.None; 1907if (this.SpecialType == Microsoft.CodeAnalysis.SpecialType.None) 1988var isOrdinaryEmbeddableStruct = (this.TypeKind == TypeKind.Struct) && (this.SpecialType == Microsoft.CodeAnalysis.SpecialType.None) && this.ContainingAssembly.IsLinked; 2133if (@base?.SpecialType == SpecialType.None && @base.ContainingAssembly?.IsMissing == true)
Symbols\MetadataOrSourceAssemblySymbol.cs (1)
83Debug.Assert(typeId != SpecialType.None);
Symbols\MissingMetadataTypeSymbol.cs (3)
196RoslynDebug.Assert(typeId == -1 || typeId == (int)SpecialType.None || arity == 0 || mangleName); 313return (typeId >= (int)WellKnownType.First) ? SpecialType.None : (ExtendedSpecialType)typeId; 323var errorInfo = this.TypeId != (int)SpecialType.None ?
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
212return result.SpecialType == SpecialType.None ? result : result.AsNativeInteger();
Symbols\Source\SourceNamespaceSymbol.cs (1)
442if ((object)type != null && type.SpecialType != SpecialType.None)
Symbols\TypeSymbolExtensions.cs (2)
661return type is object ? type.SpecialType : SpecialType.None; 2181case SpecialType.None:
Symbols\TypeWithAnnotations.cs (1)
1095return specialType.IsValueType() ? SpecialType.None : specialType;
Microsoft.CodeAnalysis.CSharp.Features (1)
IntroduceVariable\CSharpIntroduceLocalForExpressionCodeRefactoringProvider.cs (1)
143var isIntrinsic = tupleType.TupleElements.All(f => f.Type?.SpecialType != SpecialType.None);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\NativeIntegerTests.cs (5)
744VerifyErrorType(underlyingType, SpecialType.None, isNativeInt: false); 758VerifyErrorType(underlyingType, SpecialType.None, isNativeInt: false); 3638Assert.Equal(SpecialType.None, underlyingType.SpecialType); 3643Assert.Equal(SpecialType.None, underlyingType0.SpecialType); 4124Assert.Equal(SpecialType.None, type.SpecialType);
Semantics\UnsafeTests.cs (2)
10636Assert.NotEqual(SpecialType.None, type.SpecialType); 10758Assert.Equal(SpecialType.None, type.SpecialType);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (16)
Compilation\CompilationAPITests.cs (1)
1519comp.GetSpecialType(SpecialType.None);
Symbols\CompilationCreationTests.cs (4)
76Assert.Equal(SpecialType.None, c107.SpecialType); 95Assert.Equal(SpecialType.None, c107.SpecialType); 99Assert.Equal(SpecialType.None, arrayOfc107.SpecialType); 103Assert.Equal(SpecialType.None, c2.GlobalNamespace.GetTypeMembers("C107").Single().SpecialType);
Symbols\CorLibrary\CorTypes.cs (6)
83Assert.Equal(SpecialType.None, t.SpecialType); 119else if (((NamedTypeSymbol)m).SpecialType != SpecialType.None) 165Assert.Equal(SpecialType.None, t.SpecialType); 211Assert.Equal(SpecialType.None, t.SpecialType); 228Assert.Throws<ArgumentOutOfRangeException>(() => c1.GetSpecialType(SpecialType.None)); 229Assert.Throws<ArgumentOutOfRangeException>(() => ((Compilation)c1).GetSpecialType(SpecialType.None));
Symbols\IndexerTests.cs (1)
60CheckIndexer(type.Indexers.Single(), false, true, SpecialType.System_Object, SpecialType.System_Int32, SpecialType.None);
Symbols\Metadata\PE\LoadingFields.cs (1)
152Assert.Equal(SpecialType.None, readOnlySpanType.SpecialType);
Symbols\MissingSpecialMember.cs (2)
164Assert.Equal(SpecialType.None, lookupType.SpecialType); 528for (var special = SpecialType.None + 1; special <= SpecialType.Count; special++)
Symbols\Source\ClsComplianceTests.cs (1)
3162case SpecialType.None:
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeGeneration\CodeGenerationTests.cs (1)
510SpecialType specialType = SpecialType.None,
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
PDB\PdbHelpers.cs (1)
107(SpecialType.None, 0) when type.IsReferenceType => ConstantValue.Null,
Microsoft.CodeAnalysis.Features (2)
PreferFrameworkType\PreferFrameworkTypeDiagnosticAnalyzerBase.cs (1)
89typeSymbol.SpecialType is SpecialType.None)
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (1)
158if (member is not IFieldSymbol fieldSymbol || fieldSymbol.Type.SpecialType != SpecialType.None)
Microsoft.CodeAnalysis.Scripting (2)
Hosting\ObjectFormatter\CommonPrimitiveFormatter.cs (1)
111case SpecialType.None:
Hosting\ObjectFormatter\ObjectFormatterHelpers.cs (1)
365return SpecialType.None;
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\LocalCouldBeConstAnalyzer.cs (1)
89if ((!localType.IsReferenceType || localType.SpecialType == SpecialType.System_String) && localType.SpecialType != SpecialType.None)
Microsoft.CodeAnalysis.UnitTests (3)
CorLibTypesTests.cs (2)
40if (id != SpecialType.None) 77for (var specialType = SpecialType.None + 1; specialType <= SpecialType.Count; specialType++)
Symbols\SpecialTypeTests.cs (1)
15AssertEx.Equal("0", ((ExtendedSpecialType)SpecialType.None).ToString());
Microsoft.CodeAnalysis.VisualBasic (58)
Binding\Binder_Expressions.vb (3)
2479MemberLookup.GetTypeForIntrinsicAlias(name) <> SpecialType.None Then 3893If specialType <> specialType.None Then 4460Debug.Assert(specialType <> specialType.None AndAlso
Binding\Binder_Invocation.vb (1)
3228ElseIf defaultSpecialType <> SpecialType.None Then
Binding\Binder_Lookup.vb (2)
419If specialType <> specialType.None Then 467Return SpecialType.None
Binding\Binder_Operators.vb (7)
286Dim intrinsicOperatorType As SpecialType = SpecialType.None 333If intrinsicOperatorType = SpecialType.None Then 912If ofSpecialType <> SpecialType.None Then 1068Dim defaultLeftSpecialType As SpecialType = SpecialType.None 1091If defaultLeftSpecialType = SpecialType.None OrElse defaultLeftSpecialType = rightType.SpecialType Then 1154Dim intrinsicOperatorType As SpecialType = SpecialType.None 1188If intrinsicOperatorType = SpecialType.None Then
Binding\Binder_Query.vb (2)
3470Dim intrinsicOperatorType As SpecialType = SpecialType.None 3483intrinsicOperatorType <> SpecialType.None Then
Binding\Binder_Statements.vb (2)
3749Dim interfaceSpecialType As SpecialType = SpecialType.None 3872If interfaceSpecialType <> SpecialType.None Then
Binding\Binder_Utils.vb (1)
700Dim specialType As SpecialType = SpecialType.None
Compilation\VisualBasicCompilation.vb (7)
2986If returnType.SpecialType <> SpecialType.None AndAlso 2987leftType.SpecialType <> SpecialType.None AndAlso 2988rightType.SpecialType <> SpecialType.None Then 2991If resolved <> SpecialType.None Then 3053If returnType.SpecialType <> SpecialType.None AndAlso 3054operandType.SpecialType <> SpecialType.None Then 3061If resolved <> SpecialType.None AndAlso
Emit\NoPia\EmbeddedTypesManager.vb (1)
210If type.SpecialType <> SpecialType.None OrElse
Preprocessor\CConst.vb (2)
142Return SpecialType = SpecialType.None 231Return SpecialType.None
Preprocessor\ExpressionEvaluator.vb (3)
852If specialType = SpecialType.None Then 956Dim OperandType As SpecialType = SpecialType.None 1060If ResultType = SpecialType.None Then
Preprocessor\OperatorResolution.vb (2)
30Case SpecialType.None 83Const t_bad As Byte = CType(SpecialType.None, Byte)
Semantics\Operators.vb (12)
508intrinsicOperatorType = SpecialType.None 559If intrinsicOperatorType <> SpecialType.None Then 610intrinsicOperatorType = SpecialType.None 642intrinsicOperatorType = SpecialType.None 681intrinsicOperatorType = SpecialType.None 866intrinsicOperatorType = SpecialType.None 957If leftSpecialType = SpecialType.None AndAlso leftEnumUnderlying.IsCharSZArray() Then 961If rightSpecialType = SpecialType.None AndAlso rightEnumUnderlying.IsCharSZArray() Then 967If intrinsicOperatorType <> SpecialType.None Then 975intrinsicOperatorType <> SpecialType.None AndAlso 1645Return SpecialType.None 1721Const tErr As SByte = SpecialType.None
Symbols\AssemblySymbol.vb (1)
485If CInt(type) <= SpecialType.None OrElse CInt(type) >= InternalSpecialType.NextAvailable Then
Symbols\Metadata\PE\MetadataDecoder.vb (4)
161Return New MissingMetadataTypeSymbol.TopLevel(New MissingModuleSymbolWithName(ModuleSymbol.ContainingAssembly, moduleName), emittedName, SpecialType.None) 369Dim baseSpecialType As SpecialType = If(candidate.BaseTypeNoUseSiteDiagnostics?.SpecialType, SpecialType.None) 370If baseSpecialType = SpecialType.None OrElse baseSpecialType <> If(baseType?.SpecialType, SpecialType.None) Then
Symbols\Metadata\PE\PEModuleSymbol.vb (1)
284If (keepLookingForDeclaredCorTypes AndAlso t.SpecialType <> SpecialType.None) Then
Symbols\Metadata\PE\PENamedTypeSymbol.vb (1)
1319If base IsNot Nothing AndAlso base.SpecialType = SpecialType.None AndAlso base.ContainingAssembly?.IsMissing Then
Symbols\MetadataOrSourceAssemblySymbol.vb (1)
71Debug.Assert(typeId <> SpecialType.None)
Symbols\MissingMetadataTypeSymbol.vb (1)
55Dim arg = If(Me.SpecialType <> SpecialType.None, DirectCast(CustomSymbolDisplayFormatter.DefaultErrorFormat(Me), Object), Me)
Symbols\Source\SourceNamespaceSymbol.vb (1)
63If type IsNot Nothing AndAlso type.SpecialType <> SpecialType.None Then
Symbols\TypeSymbolExtensions.vb (3)
190If type.SpecialType = SpecialType.None AndAlso 211If type.SpecialType = SpecialType.None AndAlso 286Return If(this IsNot Nothing, this.SpecialType, SpecialType.None)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (1)
390If SpecialType.None <> type Then
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (9)
Compilation\CompilationAPITests.vb (1)
1344comp.GetSpecialType((SpecialType.None))
Semantics\BinaryOperators.vb (5)
1095If resultType = SpecialType.None AndAlso 1096(leftSpecial = SpecialType.None OrElse rightSpecial = SpecialType.None OrElse 1114resultType = SpecialType.None 1128If resultType = SpecialType.None Then
Semantics\GetSemanticInfoTests.vb (2)
6363Dim type = CType(SpecialType.None - 1, SpecialType) 6372Assert.StartsWith(expectedStartString:=$"Unexpected SpecialType: '{SpecialType.None - 1}'.", actualString:=ex.Message)
Semantics\UnaryOperators.vb (1)
726If resultType = SpecialType.None Then
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (16)
SymbolsTests\CompilationCreationTests.vb (4)
92Assert.Equal(SpecialType.None, c107.SpecialType) 108Assert.Equal(SpecialType.None, c107.SpecialType) 112Assert.Equal(SpecialType.None, arrayOfc107.SpecialType) 116Assert.Equal(SpecialType.None, c2.GlobalNamespace.GetTypeMembers("C107").Single().SpecialType)
SymbolsTests\CorLibrary\CorTypes.vb (8)
33Assert.Equal(SpecialType.None, t.SpecialType) 70Assert.Equal(SpecialType.None, t.SpecialType) 99ElseIf (DirectCast(m, NamedTypeSymbol).SpecialType <> SpecialType.None) Then 136Assert.Equal(SpecialType.None, t.SpecialType) 177Assert.Equal(SpecialType.None, t.SpecialType) 193Assert.Throws(Of ArgumentOutOfRangeException)(Function() c1.GetSpecialType(SpecialType.None)) 194Assert.Throws(Of ArgumentOutOfRangeException)(Function() DirectCast(c1, Compilation).GetSpecialType(SpecialType.None)) 197Assert.Throws(Of ArgumentOutOfRangeException)(Function() msCorLibRef.GetSpecialType(SpecialType.None))
SymbolsTests\Metadata\PE\LoadingFields.vb (1)
281Assert.Equal(SpecialType.None, readOnlySpanType.SpecialType)
SymbolsTests\Source\ClsComplianceTests.vb (1)
2564Case SpecialType.None, SpecialType.System_Void, SpecialType.System_Runtime_CompilerServices_IsVolatile
SymbolsTests\WellKnownTypeValidationTests.vb (2)
44Assert.Equal(SpecialType.None, lookup.SpecialType) 453For special As SpecialType = CType(SpecialType.None + 1, SpecialType) To SpecialType.Count
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
Simplification\Simplifiers\ExpressionSimplifier.vb (1)
246If isInCref AndAlso TypeOf rightSymbol Is IMethodSymbol AndAlso Not containingType.SpecialType = SpecialType.None Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ExpressionGenerator.vb (1)
390If SpecialType.None <> type Then
Microsoft.CodeAnalysis.Workspaces (7)
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (1)
356return SpecialType.None;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\PredefinedTypeExtensions.cs (1)
33_ => SpecialType.None,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
1020if (newReceiverType.SpecialType != SpecialType.None)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (3)
426SpecialType specialType = SpecialType.None, 445SpecialType specialType = SpecialType.None, 497specialType: SpecialType.None,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplificationHelpers.cs (1)
79if (specialType != SpecialType.None)
Microsoft.Extensions.Options.SourceGeneration (1)
Parser.cs (1)
550if (transValidatorTypeName == null && speculate && memberType.SpecialType == SpecialType.None)
Microsoft.Gen.Logging (2)
Parsing\TypeSymbolExtensions.cs (2)
63=> typeSymbol.SpecialType != SpecialType.None || 64typeSymbol.OriginalDefinition.SpecialType != SpecialType.None ||
Microsoft.Gen.Logging.Unit.Tests (4)
LogParserUtilitiesTests.cs (4)
29anotherTypeSymbolMock.SetupGet(x => x.SpecialType).Returns(SpecialType.None); 39typeSymbolMock.SetupGet(x => x.SpecialType).Returns(SpecialType.None); 99.Returns(SpecialType.None); 156paramTypeMock.SetupGet(x => x.SpecialType).Returns(SpecialType.None);
Microsoft.Gen.Metrics (4)
Parser.cs (4)
573if (returnType.SpecialType != SpecialType.None || 719if (specialType == SpecialType.None) 787else if (specialType == SpecialType.None) 814if (kind == TypeKind.Struct && specialType == SpecialType.None)
Microsoft.Gen.MetricsReports (4)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (4)
573if (returnType.SpecialType != SpecialType.None || 719if (specialType == SpecialType.None) 787else if (specialType == SpecialType.None) 814if (kind == TypeKind.Struct && specialType == SpecialType.None)
Microsoft.Interop.SourceGeneration (2)
ManagedTypeInfo.cs (1)
44if (type.SpecialType != SpecialType.None)
TypeSymbolExtensions.cs (1)
64if (t.SpecialType is not SpecialType.None)
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
Help\VisualBasicHelpContextService.vb (1)
107If type.SpecialType <> SpecialType.None Then
Help\VisualBasicHelpContextService.Visitor.vb (1)
454ElseIf TypeOf symbol Is ITypeSymbol AndAlso DirectCast(symbol, ITypeSymbol).SpecialType <> SpecialType.None Then
System.Private.CoreLib.Generators (1)
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (1)
455if (symbol == null || symbol is ITypeSymbol type && type.SpecialType != SpecialType.None)