67 references to IsNil
Microsoft.CodeAnalysis (10)
MetadataReader\MetadataDecoder.cs (5)
142Debug.Assert(!token.IsNil); 437if (handle.IsNil) 555if (tokenResolutionScope.IsNil) 1926if (!implementedMethodHandle.IsNil) 2054if (!typeToken.IsNil)
MetadataReader\MetadataReaderExtensions.cs (1)
173return typeDef.BaseType.IsNil &&
MetadataReader\PEModule.cs (3)
443if (resource.Implementation.IsNil) 2822Debug.Assert(!resolutionScope.IsNil); 3081Debug.Assert(!ctorType.IsNil);
NativePdbWriter\PdbWriter.cs (1)
709Debug.Assert(!handle.IsNil);
Microsoft.CodeAnalysis.CSharp (5)
Symbols\Metadata\PE\MetadataDecoder.cs (1)
290if (!baseToken.IsNil)
Symbols\Metadata\PE\PEEventSymbol.cs (1)
84if (eventType.IsNil)
Symbols\Metadata\PE\PEModuleSymbol.cs (2)
259if (!assemblyMSCorLib.IsNil) 269if (!typerefAssemblyAttributesGoHere.IsNil)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
549if (!token.IsNil)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Attributes\AttributeTests_Assembly.cs (7)
1071Assert.False(token.IsNil); //could the type ref be located? If not then the attribute's not there. 1118Assert.True(token.IsNil); //could the type ref be located? If not then the attribute's not there. 1139Assert.True(token.IsNil); //could the type ref be located? If not then the attribute's not there. 1192Assert.False(token.IsNil); //could the type ref be located? If not then the attribute's not there. 1233Assert.True(token.IsNil); //could the type ref be located? If not then the attribute's not there. 1254Assert.True(token.IsNil); //could the type ref be located? If not then the attribute's not there. 1790Assert.False(token.IsNil); //could the type ref be located? If not then the attribute's not there.
Attributes\InternalsVisibleToAndStrongNameTests.cs (1)
1541Assert.False(token.IsNil); //could the type ref be located? If not then the attribute's not there.
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Symbols\Metadata\PE\TypeForwarders.cs (3)
1640Assert.True(token.IsNil); //could the type ref be located? If not then the attribute's not there. 1693Assert.False(token.IsNil); //could the type ref be located? If not then the attribute's not there. 1713Assert.True(token.IsNil); //could the type ref be located? If not then the attribute's not there.
Microsoft.CodeAnalysis.Test.Utilities (1)
Metadata\DynamicAnalysisDataReader.cs (1)
151if (resource.Implementation.IsNil &&
Microsoft.CodeAnalysis.VisualBasic (5)
Symbols\Metadata\PE\MetadataDecoder.vb (1)
253If Not baseToken.IsNil() Then
Symbols\Metadata\PE\PEEventSymbol.vb (1)
73If eventType.IsNil Then
Symbols\Metadata\PE\PEModuleSymbol.vb (2)
156If Not assemblyMSCorLib.IsNil Then 163If Not typerefAssemblyAttributesGoHere.IsNil Then
Symbols\Metadata\PE\PENamedTypeSymbol.vb (1)
258If Not token.IsNil Then
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (8)
Attributes\AssemblyAttributes.vb (7)
1303Assert.False(token.IsNil) 'could the type ref be located? If not then the attribute's not there. 1341Assert.True(token.IsNil) 'could the type ref be located? If not then the attribute's not there. 1357Assert.True(token.IsNil) 'could the type ref be located? If not then the attribute's not there. 1420Assert.False(token.IsNil) 'could the type ref be located? If not then the attribute's not there. 1452Assert.True(token.IsNil) 'could the type ref be located? If not then the attribute's not there. 1468Assert.True(token.IsNil) 'could the type ref be located? If not then the attribute's not there. 2016Assert.False(token.IsNil()) 'could the type ref be located? If not then the attribute's not there.
Attributes\InternalsVisibleToAndStrongNameTests.vb (1)
1421Assert.False(token.IsNil) ' could the magic type ref be located? If not then the attribute's not there.
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (4)
SymbolsTests\Metadata\PE\TypeForwarders.vb (4)
1068Assert.True(token.IsNil) 1122Assert.True(token.IsNil) 'could the type ref be located? If not then the attribute's not there. 1181Assert.False(token.IsNil) 'could the type ref be located? If not then the attribute's not there. 1201Assert.True(token.IsNil) 'could the type ref be located? If not then the attribute's not there.
Microsoft.CodeAnalysis.Workspaces (1)
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (1)
553if (baseTypeOrInterfaceHandle.IsNil)
System.Reflection.Emit (2)
System\Reflection\Emit\ILGeneratorImpl.cs (1)
465if (handle.IsNil)
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
1084if (handle.IsNil)
System.Reflection.Metadata (10)
System\Reflection\Metadata\Ecma335\Encoding\BlobEncoders.cs (1)
1227if (type.IsNil)
System\Reflection\Metadata\Ecma335\Encoding\ExceptionRegionEncoder.cs (1)
74return !catchType.IsNil &&
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (3)
473Extends = baseType.IsNil ? 0 : CodedIndex.TypeDefOrRefOrSpec(baseType), 573ResolutionScope = resolutionScope.IsNil ? 0 : CodedIndex.ResolutionScope(resolutionScope), 1107Implementation = implementation.IsNil ? 0 : CodedIndex.Implementation(implementation),
System\Reflection\Metadata\Ecma335\SignatureDecoder.cs (2)
301if (!handle.IsNil) 323Debug.Assert(handle.IsNil); // will fall through to throw in release.
System\Reflection\Metadata\MetadataReader.WinMD.cs (2)
748if (typeDefOrRef.IsNil) 758if (!resolutionScope.IsNil && resolutionScope.Kind == HandleKind.TypeReference)
System\Reflection\Metadata\TypeSystem\HandleCollections.TypeSystem.cs (1)
366Debug.Assert(!handle.IsNil);
System.Reflection.MetadataLoadContext (10)
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeData.cs (1)
51if (declaringTypeHandle.IsNil)
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (1)
50if (declaringTypeHandle.IsNil)
System\Reflection\TypeLoading\General\Ecma\EcmaDefaultValueProcessing.cs (1)
87if (declaringTypeHandle.IsNil)
System\Reflection\TypeLoading\General\Ecma\EcmaResolver.cs (2)
16Debug.Assert(!handle.IsNil); 58if (scope.IsNil)
System\Reflection\TypeLoading\General\Ecma\EcmaToStringHelpers.cs (1)
21Debug.Assert(!handle.IsNil);
System\Reflection\TypeLoading\General\Ecma\MetadataTable.cs (1)
31Debug.Assert(!handle.IsNil);
System\Reflection\TypeLoading\MethodBase\Ecma\EcmaMethodBody.cs (1)
68RoType? catchType = catchTypeHandle.IsNil ? null : catchTypeHandle.ResolveTypeDefRefOrSpec(GetEcmaModule(), TypeContext);
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.ManifestResources.cs (1)
26if (resource.Implementation.IsNil)
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.cs (1)
55if (baseTypeHandle.IsNil)