205 references to None
Microsoft.CodeAnalysis (11)
ConstantValue.cs (1)
505default: return SpecialType.None;
ConstantValueSpecialized.cs (2)
44get { return SpecialType.None; } 85get { return SpecialType.None; }
SpecialTypeExtensions.cs (1)
355return SpecialType.None;
SpecialTypes.cs (2)
121s_typeCodeToTypeIdMap[i] = SpecialType.None; 159return SpecialType.None;
Symbols\Attributes\MarshalAsAttributeDecoder.cs (2)
142typeSymbol = namedArg.Value.DecodeValue<ITypeSymbolInternal>(SpecialType.None); 310elementTypeSymbol = 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)
AbstractSpeculationAnalyzer.cs (1)
983if (newReceiverType.SpecialType != SpecialType.None)
J\s\src\Compilers\Core\Portable\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (1)
355return SpecialType.None;
PopulateSwitchStatementHelpers.cs (1)
139if (member is not IFieldSymbol fieldSymbol || fieldSymbol.Type.SpecialType != SpecialType.None)
PredefinedTypeExtensions.cs (1)
33_ => SpecialType.None,
Microsoft.CodeAnalysis.CodeStyle.Fixes (7)
CodeGenerationArrayTypeSymbol.cs (1)
13: base(null, null, default, Accessibility.NotApplicable, default, string.Empty, SpecialType.None, nullableAnnotation)
CodeGenerationPointerTypeSymbol.cs (1)
14: base(null, null, default, Accessibility.NotApplicable, default, string.Empty, SpecialType.None, NullableAnnotation.None)
CodeGenerationSymbolFactory.cs (3)
424SpecialType specialType = SpecialType.None, 443SpecialType specialType = SpecialType.None, 495specialType: SpecialType.None,
CodeGenerationTypeParameterSymbol.cs (1)
35: base(containingType?.ContainingAssembly, containingType, attributes, Accessibility.NotApplicable, default, name, SpecialType.None, nullableAnnotation)
SimplificationHelpers.cs (1)
79if (specialType != SpecialType.None)
Microsoft.CodeAnalysis.CSharp (50)
Binder\Binder_Conversions.cs (1)
1646Debug.Assert(underlyingType.SpecialType != SpecialType.None);
Binder\Binder_Expressions.cs (1)
6255specialType != SpecialType.None &&
Binder\Binder_Symbols.cs (2)
993node.IsNuint ? SpecialType.System_UIntPtr : SpecialType.None; 995if (specialType == SpecialType.None)
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (1)
476Debug.Assert(underlying.SpecialType != SpecialType.None);
CodeGen\EmitArrayInitializer.cs (1)
441SpecialType specialElementType = SpecialType.None;
CodeGen\EmitExpression.cs (1)
2095return containingType.SpecialType != SpecialType.None;
Compilation\CSharpCompilation.cs (7)
1548if (specialType <= SpecialType.None || specialType > SpecialType.Count) 1623SpecialType.None, 3951if (csharpReturnType.SpecialType != SpecialType.None && 3952csharpLeftType.SpecialType != SpecialType.None && 3953csharpRightType.SpecialType != SpecialType.None) 4176if (csharpReturnType.SpecialType != SpecialType.None && csharpOperandType.SpecialType != SpecialType.None)
Emitter\Model\ParameterSymbolAdapter.cs (1)
83if (constant.SpecialType != SpecialType.None)
Emitter\NoPia\EmbeddedTypesManager.cs (1)
243if (namedType.SpecialType != SpecialType.None || namedType.IsErrorType() || !namedType.ContainingAssembly.IsLinked)
FlowAnalysis\DefiniteAssignment.cs (1)
365if (methodThisParameter.Type.SpecialType != SpecialType.None)
FlowAnalysis\EmptyStructTypeCache.cs (1)
134return nts.IsStructType() && nts.SpecialType == SpecialType.None && !nts.KnownCircularStruct;
FlowAnalysis\NullableWalker.cs (1)
4030if (type.SpecialType != SpecialType.None)
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
92node.Indices[0].Type!.SpecialType == SpecialType.None)
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
432if (structToStringMethod != null && (expr.Type.SpecialType != SpecialType.None && !isFieldOfMarshalByRef(expr, _compilation)))
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (2)
725Debug.Assert(constantOne.SpecialType != SpecialType.None); 726Debug.Assert(binaryOperandType.SpecialType != SpecialType.None);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
442if (type.SpecialType != SpecialType.None) return false; // int, etc
Parser\Lexer.cs (1)
1063info.ValueKind = SpecialType.None;
Symbols\BaseTypeAnalysis.cs (1)
276case SpecialType.None:
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)
492if (keepLookingForDeclaredCorTypes && type.SpecialType != SpecialType.None)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (4)
347_corTypeId = SpecialType.None; 1895if (this.SpecialType == Microsoft.CodeAnalysis.SpecialType.None) 1949var isOrdinaryEmbeddableStruct = (this.TypeKind == TypeKind.Struct) && (this.SpecialType == Microsoft.CodeAnalysis.SpecialType.None) && this.ContainingAssembly.IsLinked; 2094if (@base?.SpecialType == SpecialType.None && @base.ContainingAssembly?.IsMissing == true)
Symbols\MetadataOrSourceAssemblySymbol.cs (1)
81Debug.Assert(typeId != SpecialType.None);
Symbols\MissingMetadataTypeSymbol.cs (5)
195RoslynDebug.Assert(typeId == -1 || typeId == (int)SpecialType.None || arity == 0 || mangleName); 289SpecialType typeId = SpecialType.None; 312return (typeId >= (int)WellKnownType.First) ? SpecialType.None : (SpecialType)_lazyTypeId; 322var errorInfo = this.TypeId != (int)SpecialType.None ? 440return SpecialType.None; // do not have nested types among CORE types yet.
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
212return result.SpecialType == SpecialType.None ? result : result.AsNativeInteger();
Symbols\Source\SourceMemberContainerSymbol.cs (2)
243: SpecialType.None; 270return SpecialType.None;
Symbols\Source\SourceNamespaceSymbol.cs (1)
466if ((object)type != null && type.SpecialType != SpecialType.None)
Symbols\TypeSymbol.cs (1)
497return SpecialType.None;
Symbols\TypeSymbolExtensions.cs (3)
208return (underlyingType is object) && (underlyingType.SpecialType != SpecialType.None); 606return type is object ? type.SpecialType : SpecialType.None; 2130case SpecialType.None:
Symbols\TypeWithAnnotations.cs (1)
961return specialType.IsValueType() ? SpecialType.None : specialType;
Microsoft.CodeAnalysis.CSharp.Features (1)
IntroduceVariable\CSharpIntroduceLocalForExpressionCodeRefactoringProvider.cs (1)
144var 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)
7791Assert.NotEqual(SpecialType.None, type.SpecialType); 7913Assert.Equal(SpecialType.None, type.SpecialType);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (11)
Compilation\CompilationAPITests.cs (1)
1520comp.GetSpecialType(SpecialType.None);
Symbols\CompilationCreationTests.cs (4)
76Assert.Equal(SpecialType.None, c107.SpecialType); 94Assert.Equal(SpecialType.None, c107.SpecialType); 98Assert.Equal(SpecialType.None, arrayOfc107.SpecialType); 102Assert.Equal(SpecialType.None, c2.GlobalNamespace.GetTypeMembers("C107").Single().SpecialType);
Symbols\CorLibrary\CorTypes.cs (2)
99else if (((NamedTypeSymbol)m).SpecialType != SpecialType.None) 184Assert.Throws<ArgumentOutOfRangeException>(() => c1.GetSpecialType(SpecialType.None));
Symbols\IndexerTests.cs (1)
59CheckIndexer(type.Indexers.Single(), false, true, SpecialType.System_Object, SpecialType.System_Int32, SpecialType.None);
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)
3163case SpecialType.None:
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeGeneration\CodeGenerationTests.cs (1)
522SpecialType specialType = SpecialType.None,
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
PDB\PdbHelpers.cs (1)
107(SpecialType.None, 0) when type.IsReferenceType => ConstantValue.Null,
Microsoft.CodeAnalysis.Features (3)
ExtractMethod\MethodExtractor.Analyzer.cs (1)
621return type.OriginalDefinition.SpecialType == SpecialType.None && !WellKnownFrameworkValueType(compilation, type);
PopulateSwitchStatementHelpers.cs (1)
139if (member is not IFieldSymbol fieldSymbol || fieldSymbol.Type.SpecialType != SpecialType.None)
PreferFrameworkType\PreferFrameworkTypeDiagnosticAnalyzerBase.cs (1)
90typeSymbol.SpecialType is 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 (2)
CorLibTypesTests.cs (2)
40if (id != SpecialType.None) 76for (var specialType = SpecialType.None + 1; specialType <= SpecialType.Count; specialType++)
Microsoft.CodeAnalysis.VisualBasic (69)
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
342Case SpecialType.None,
Binding\Binder_Expressions.vb (4)
2458MemberLookup.GetTypeForIntrinsicAlias(name) <> SpecialType.None Then 3847If specialType <> Microsoft.CodeAnalysis.SpecialType.None Then 3870If specialType <> specialType.None Then 4437Debug.Assert(specialType <> specialType.None AndAlso
Binding\Binder_Invocation.vb (1)
3234ElseIf defaultSpecialType <> SpecialType.None Then
Binding\Binder_Lookup.vb (2)
419If specialType <> specialType.None Then 467Return SpecialType.None
Binding\Binder_Operators.vb (8)
256Dim intrinsicOperatorType As SpecialType = SpecialType.None 303If intrinsicOperatorType = SpecialType.None Then 813Debug.Assert(specialType <> Microsoft.CodeAnalysis.SpecialType.None) 882If ofSpecialType <> SpecialType.None Then 1038Dim defaultLeftSpecialType As SpecialType = SpecialType.None 1061If defaultLeftSpecialType = SpecialType.None OrElse defaultLeftSpecialType = rightType.SpecialType Then 1124Dim intrinsicOperatorType As SpecialType = SpecialType.None 1158If intrinsicOperatorType = SpecialType.None Then
Binding\Binder_Query.vb (2)
3470Dim intrinsicOperatorType As SpecialType = SpecialType.None 3483intrinsicOperatorType <> SpecialType.None Then
Binding\Binder_Statements.vb (2)
3720Dim interfaceSpecialType As SpecialType = SpecialType.None 3843If interfaceSpecialType <> SpecialType.None Then
Binding\Binder_Utils.vb (2)
675If specialType <> Microsoft.CodeAnalysis.SpecialType.None Then 700Dim specialType As SpecialType = SpecialType.None
Compilation\VisualBasicCompilation.vb (7)
2967If returnType.SpecialType <> SpecialType.None AndAlso 2968leftType.SpecialType <> SpecialType.None AndAlso 2969rightType.SpecialType <> SpecialType.None Then 2972If resolved <> SpecialType.None Then 3034If returnType.SpecialType <> SpecialType.None AndAlso 3035operandType.SpecialType <> SpecialType.None Then 3042If resolved <> SpecialType.None AndAlso
Emit\NoPia\EmbeddedTypesManager.vb (1)
196If 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)
470If type <= SpecialType.None OrElse type > SpecialType.Count 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)
282If (keepLookingForDeclaredCorTypes AndAlso t.SpecialType <> SpecialType.None) Then
Symbols\Metadata\PE\PENamedTypeSymbol.vb (2)
1150If specialType = SpecialType.None OrElse specialType = SpecialType.System_Nullable_T Then 1297If base IsNot Nothing AndAlso base.SpecialType = SpecialType.None AndAlso base.ContainingAssembly?.IsMissing Then
Symbols\Metadata\PE\PENamedTypeSymbolWithEmittedNamespaceName.vb (1)
40_corTypeId = SpecialType.None
Symbols\MetadataOrSourceAssemblySymbol.vb (1)
71Debug.Assert(typeId <> SpecialType.None)
Symbols\MissingMetadataTypeSymbol.vb (4)
55Dim arg = If(Me.SpecialType <> SpecialType.None, DirectCast(CustomSymbolDisplayFormatter.DefaultErrorFormat(Me), Object), Me) 101Debug.Assert(typeId = CType(-1, SpecialType) OrElse typeId = SpecialType.None OrElse Arity = 0 OrElse MangleName) 180Dim typeId As SpecialType = SpecialType.None 289Return SpecialType.None ' do not have nested types among CORE types yet.
Symbols\Source\SourceNamedTypeSymbol.vb (1)
91_corTypeId = SpecialType.None
Symbols\Source\SourceNamespaceSymbol.vb (1)
63If type IsNot Nothing AndAlso type.SpecialType <> SpecialType.None Then
Symbols\TypeSymbol.vb (1)
278Return SpecialType.None
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.ExpressionEvaluator.ExpressionCompiler (1)
Binders\PlaceholderLocalBinder.vb (1)
73Dim type = Compilation.GetSpecialType(If(specialType = SpecialType.None, SpecialType.System_Object, specialType))
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)
6364Dim type = CType(SpecialType.None - 1, SpecialType) 6373Assert.StartsWith(expectedStartString:=$"Unexpected SpecialType: '{SpecialType.None - 1}'.", actualString:=ex.Message)
Semantics\UnaryOperators.vb (1)
726If resultType = SpecialType.None Then
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (10)
SymbolsTests\CompilationCreationTests.vb (4)
92Assert.Equal(SpecialType.None, c107.SpecialType) 107Assert.Equal(SpecialType.None, c107.SpecialType) 111Assert.Equal(SpecialType.None, arrayOfc107.SpecialType) 115Assert.Equal(SpecialType.None, c2.GlobalNamespace.GetTypeMembers("C107").Single().SpecialType)
SymbolsTests\CorLibrary\CorTypes.vb (3)
73ElseIf (DirectCast(m, NamedTypeSymbol).SpecialType <> SpecialType.None) Then 146Assert.Throws(Of ArgumentOutOfRangeException)(Function() c1.GetSpecialType(SpecialType.None)) 148Assert.Throws(Of ArgumentOutOfRangeException)(Function() msCorLibRef.GetSpecialType(SpecialType.None))
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)
CodeGeneration\ExpressionGenerator.vb (1)
390If SpecialType.None <> type Then
Simplification\Simplifiers\ExpressionSimplifier.vb (1)
246If isInCref AndAlso TypeOf rightSymbol Is IMethodSymbol AndAlso Not containingType.SpecialType = SpecialType.None Then
Microsoft.CodeAnalysis.Workspaces (10)
AbstractSpeculationAnalyzer.cs (1)
983if (newReceiverType.SpecialType != SpecialType.None)
CodeGenerationArrayTypeSymbol.cs (1)
13: base(null, null, default, Accessibility.NotApplicable, default, string.Empty, SpecialType.None, nullableAnnotation)
CodeGenerationPointerTypeSymbol.cs (1)
14: base(null, null, default, Accessibility.NotApplicable, default, string.Empty, SpecialType.None, NullableAnnotation.None)
CodeGenerationSymbolFactory.cs (3)
424SpecialType specialType = SpecialType.None, 443SpecialType specialType = SpecialType.None, 495specialType: SpecialType.None,
CodeGenerationTypeParameterSymbol.cs (1)
35: base(containingType?.ContainingAssembly, containingType, attributes, Accessibility.NotApplicable, default, name, SpecialType.None, nullableAnnotation)
J\s\src\Compilers\Core\Portable\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (1)
355return SpecialType.None;
PredefinedTypeExtensions.cs (1)
33_ => SpecialType.None,
SimplificationHelpers.cs (1)
79if (specialType != SpecialType.None)
Microsoft.VisualStudio.LanguageServices.Implementation (1)
CodeModel\AbstractCodeModelObject_CodeGen.cs (1)
261specialType: SpecialType.None,
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
Help\VisualBasicHelpContextService.vb (1)
107If type.SpecialType <> SpecialType.None Then
Help\VisualBasicHelpContextService.Visitor.vb (1)
450ElseIf TypeOf symbol Is ITypeSymbol AndAlso DirectCast(symbol, ITypeSymbol).SpecialType <> SpecialType.None Then