1999 references to IsDefault
BuildValidator (1)
Program.cs (1)
378if (sourceLinks.IsDefault)
GenerateDocumentationAndConfigFiles (15)
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
79if (!values.IsDefault)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (11)
551Debug.Assert(!array.IsDefault); 757if (array1.IsDefault) 759return array2.IsDefault; 761else if (array2.IsDefault) 798return array.IsDefault ? ImmutableArray<T>.Empty : array; 807null or { IsDefault: true } => ImmutableArray<T>.Empty, 817Debug.Assert(!array.IsDefault); 844if (!array.IsDefault && array.Length >= 2) 1222if (!membersAsNamedTypes.IsDefault) 1251if (array1.IsDefault) 1256if (array2.IsDefault)
src\Dependencies\Collections\OneOrMany.cs (3)
41if (many.IsDefault) 63=> _many.IsDefault; 66=> _one == null && _many.IsDefault;
Metrics (16)
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
79if (!values.IsDefault)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (11)
551Debug.Assert(!array.IsDefault); 757if (array1.IsDefault) 759return array2.IsDefault; 761else if (array2.IsDefault) 798return array.IsDefault ? ImmutableArray<T>.Empty : array; 807null or { IsDefault: true } => ImmutableArray<T>.Empty, 817Debug.Assert(!array.IsDefault); 844if (!array.IsDefault && array.Length >= 2) 1222if (!membersAsNamedTypes.IsDefault) 1251if (array1.IsDefault) 1256if (array2.IsDefault)
src\Dependencies\Collections\OneOrMany.cs (3)
41if (many.IsDefault) 63=> _many.IsDefault; 66=> _one == null && _many.IsDefault;
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
238if (words.IsDefault)
Metrics.Legacy (16)
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
79if (!values.IsDefault)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (11)
551Debug.Assert(!array.IsDefault); 757if (array1.IsDefault) 759return array2.IsDefault; 761else if (array2.IsDefault) 798return array.IsDefault ? ImmutableArray<T>.Empty : array; 807null or { IsDefault: true } => ImmutableArray<T>.Empty, 817Debug.Assert(!array.IsDefault); 844if (!array.IsDefault && array.Length >= 2) 1222if (!membersAsNamedTypes.IsDefault) 1251if (array1.IsDefault) 1256if (array2.IsDefault)
src\Dependencies\Collections\OneOrMany.cs (3)
41if (many.IsDefault) 63=> _many.IsDefault; 66=> _one == null && _many.IsDefault;
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
238if (words.IsDefault)
Microsoft.Arcade.Test.Common (4)
AssertEx.cs (4)
154if (actual == null || expected.IsDefault) 156Assert.True((actual == null) == expected.IsDefault, message); 166if (expected == null || actual.IsDefault) 168Assert.True((expected == null) == actual.IsDefault, message);
Microsoft.AspNetCore.App.Analyzers (5)
Infrastructure\EmbeddedSyntax\EmbeddedSeparatedSyntaxNodeList.cs (1)
26Debug.Assert(!nodesAndTokens.IsDefault);
Infrastructure\EmbeddedSyntax\EmbeddedSyntaxToken.cs (1)
30Debug.Assert(!diagnostics.IsDefault);
Mvc\DetectAmbiguousActionRoutes.cs (1)
110Debug.Assert(!httpMethods.IsDefault);
RouteHandlers\DetectAmbiguousRoutes.cs (2)
31.Where(u => u.ResolvedOperation != null && !u.MapOperation.RouteUsageModel.UsageContext.HttpMethods.IsDefault) 153Debug.Assert(!httpMethods.IsDefault);
Microsoft.CodeAnalysis (208)
CodeGen\ILBuilder.cs (3)
205if (this.RealizedIL.IsDefault) 1246Debug.Assert(this.RealizedIL.IsDefault, "Too late to allocate a new IL marker"); 1271Debug.Assert(!RealizedIL.IsDefault, "Builder must be realized to perform this operation");
CodeGen\MethodBody.cs (3)
77Debug.Assert(!locals.IsDefault); 78Debug.Assert(!exceptionHandlers.IsDefault); 79Debug.Assert(!localScopes.IsDefault);
CodeGen\PrivateImplementationDetails.cs (1)
973Debug.Assert(!block.IsDefault);
Collections\ByteSequenceComparer.cs (3)
31if (x.IsDefault || y.IsDefault || x.Length != y.Length) 103Debug.Assert(!x.IsDefault);
Collections\ImmutableMemoryStream.cs (1)
19Debug.Assert(!array.IsDefault);
Collections\UnionCollection.cs (1)
68Debug.Assert(!collections.IsDefault);
CommandLine\CommonCompiler.cs (1)
1038if (!additionalFiles.IsDefault)
Compilation\Compilation.cs (12)
85RoslynDebug.Assert(!references.IsDefault); 1303if (elementTypes.IsDefault) 1325if (!elementLocations.IsDefault && elementLocations[i] == null) 1350if (!elementNullableAnnotations.IsDefault) 1365if (!elementNames.IsDefault) 1393if (!elementLocations.IsDefault) 1461if (memberTypes.IsDefault) 1466if (memberNames.IsDefault) 1477if (!memberLocations.IsDefault && memberLocations.Length != memberTypes.Length) 1483if (!memberIsReadOnly.IsDefault && memberIsReadOnly.Length != memberTypes.Length) 1489if (!memberNullableAnnotations.IsDefault && memberNullableAnnotations.Length != memberTypes.Length) 1507if (!memberLocations.IsDefault && memberLocations[i] == null)
Compilation\DeterministicKeyBuilder.cs (1)
400if (!options.InstrumentationKinds.IsDefault)
Compilation\IImportScope.cs (8)
49/// <remarks>May be <see cref="ImmutableArray{T}.Empty"/>, will never be <see cref="ImmutableArray{T}.IsDefault"/>.</remarks> 56/// <remarks>May be <see cref="ImmutableArray{T}.Empty"/>, will never be <see cref="ImmutableArray{T}.IsDefault"/>.</remarks> 64/// <remarks>May be <see cref="ImmutableArray{T}.Empty"/>, will never be <see cref="ImmutableArray{T}.IsDefault"/>.</remarks> 71/// <remarks>May be <see cref="ImmutableArray{T}.Empty"/>, will never be <see cref="ImmutableArray{T}.IsDefault"/>.</remarks> 132Debug.Assert(!aliases.IsDefault); 133Debug.Assert(!externAliases.IsDefault); 134Debug.Assert(!imports.IsDefault); 135Debug.Assert(!xmlNamespaces.IsDefault);
Compilation\LoadDirective.cs (1)
21RoslynDebug.Assert(!diagnostics.IsDefault);
Compilation\SyntaxTreeOptionsProvider.cs (1)
67new Options(results.IsDefault ? null : (AnalyzerConfigOptionsResult?)results[i]));
CryptographicHashProvider.cs (1)
158if (lazyHash.IsDefault)
Diagnostic\DiagnosticDescriptor.cs (1)
162Debug.Assert(!customTags.IsDefault);
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
1778Debug.Assert(!subsetProcessedAnalyzers.IsDefault);
DiagnosticAnalyzer\AnalyzerDriver.GroupedAnalyzerActionsForAnalyzer.cs (2)
120if (_lazyCodeBlockStartActions.IsDefault) 157if (lazyCodeBlockActions.IsDefault)
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
394if (_lazyAllExtensions.IsDefault)
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (2)
263if (!lazyDescriptors.IsDefault) 275if (lazyDescriptors.IsDefault)
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
1169if (diagnostics.IsDefault)
DiagnosticAnalyzer\DiagnosticAnalysisContextHelpers.cs (3)
119if (symbolKinds.IsDefault) 133if (syntaxKinds.IsDefault) 146if (operationKinds.IsDefault)
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (1)
768public readonly bool IsDefault => _compilationStartActions.IsDefault;
EmbeddedText.cs (3)
56Debug.Assert(!blob.IsDefault && blob.Length >= sizeof(int)); 111if (!text.PrecomputedEmbeddedTextBlob.IsDefault) 298RoslynDebug.Assert(text.PrecomputedEmbeddedTextBlob.IsDefault);
Emit\AsyncMoveNextBodyDebugInfo.cs (2)
40Debug.Assert(!yieldOffsets.IsDefault); 41Debug.Assert(!resumeOffsets.IsDefault);
Emit\CommonPEModuleBuilder.cs (2)
515if (_lazyAssemblyReferenceAliases.IsDefault) 577if (_lazyManagedResources.IsDefault)
Emit\EditAndContinue\AddedOrChangedMethodInfo.cs (4)
44Debug.Assert(stateMachineAwaiterSlotsOpt.IsDefault == stateMachineTypeName is null); 47Debug.Assert(stateMachineHoistedLocalSlotsOpt.IsDefault || stateMachineTypeName is not null); 63var mappedHoistedLocalSlots = StateMachineHoistedLocalSlotsOpt.IsDefault ? default : 66var mappedAwaiterSlots = StateMachineAwaiterSlotsOpt.IsDefault ? default :
Emit\EditAndContinue\DefinitionMap.cs (1)
487=> debugInfos.IsDefault
Emit\EditAndContinue\EncClosureMapValue.cs (4)
17=> !StructCaptures.IsDefault; 32StructCaptures.IsDefault == structCaptures.IsDefault && 33(structCaptures.IsDefault || structCaptures.IsSubsetOf(StructCaptures));
Emit\EditAndContinue\EncVariableSlotAllocator.cs (1)
64Debug.Assert(!previousLocals.IsDefault);
Emit\MethodInstrumentation.cs (1)
25=> Kinds.IsDefault;
Emit\NoPia\CommonEmbeddedMember.cs (1)
93if (_lazyAttributes.IsDefault)
Emit\NoPia\CommonEmbeddedParameter.cs (1)
195if (_lazyAttributes.IsDefault)
Emit\NoPia\CommonEmbeddedType.cs (5)
246if (_lazyEvents.IsDefault) 275if (_lazyFields.IsDefault) 444if (_lazyMethods.IsDefault) 494if (_lazyProperties.IsDefault) 535if (_lazyAttributes.IsDefault)
Emit\NoPia\EmbeddedTypesManager.cs (2)
86return !_frozen.IsDefault; 92if (_frozen.IsDefault)
InternalUtilities\InterlockedOperations.cs (4)
156Debug.Assert(!initializedValue.IsDefault); 158return oldValue.IsDefault ? initializedValue : oldValue; 185if (!target.IsDefault) 200if (!current.IsDefault)
InternalUtilities\StringExtensions.cs (1)
26if (numerals.IsDefault)
MetadataReader\MetadataTypeName.cs (2)
332if (_namespaceSegmentsMemory.IsDefault) 348if (_namespaceSegments.IsDefault)
MetadataReader\PEAssembly.cs (1)
61Debug.Assert(!modules.IsDefault);
MetadataReader\PEModule.cs (1)
1481Debug.Assert(!paramNames.IsDefault);
MetadataReference\AssemblyIdentity.cs (7)
326if (_lazyPublicKeyToken.IsDefault) 343Debug.Assert(HasPublicKey || !_lazyPublicKeyToken.IsDefault); 490if (!xToken.IsDefault && !yToken.IsDefault) 496if (xToken.IsDefault && yToken.IsDefault) 502if (xToken.IsDefault)
MetadataReference\AssemblyIdentity.DisplayName.cs (2)
432bool hasPublicKey = !publicKey.IsDefault; 433bool hasPublicKeyToken = !publicKeyToken.IsDefault;
MetadataReference\AssemblyMetadata.cs (1)
281if (_lazyPublishedModules.IsDefault)
MetadataReference\ModuleMetadata.cs (1)
167if (peImage.IsDefault)
NativePdbWriter\PdbWriter.cs (2)
607if (!info.Checksum.IsDefault) 618if (!info.EmbeddedTextBlob.IsDefault)
Operations\BasicBlock.cs (2)
154Debug.Assert(_lazyPredecessors.IsDefault); 155Debug.Assert(!predecessors.IsDefault);
Operations\ControlFlowBranch.cs (3)
62if (_lazyLeavingRegions.IsDefault) 105if (_lazyEnteringRegions.IsDefault) 135if (_lazyFinallyRegions.IsDefault)
Operations\ControlFlowGraph.cs (2)
42Debug.Assert(!blocks.IsDefault); 49Debug.Assert(!localFunctions.IsDefault);
Operations\ControlFlowGraphBuilder.Context.cs (1)
26Debug.Assert(!anonymousTypePropertyValues.IsDefault);
Operations\ControlFlowGraphBuilder.cs (1)
4168Debug.Assert((disposeMethod is object && !disposeArguments.IsDefault) ||
Operations\Operation.cs (1)
185Debug.Assert(!children.IsDefault);
Operations\OperationExtensions.cs (1)
313if (argumentRefKinds.IsDefault)
PEWriter\MetadataWriter.cs (3)
776if (!fieldDef.MappedData.IsDefault) 2344if (fieldDef.MappedData.IsDefault) 4170if (encSlotInfo.IsDefault)
PEWriter\MetadataWriter.DynamicAnalysis.cs (2)
217HashAlgorithm = (sourceInfo.Checksum.IsDefault ? default(GuidHandle) : GetOrAddGuid(sourceInfo.ChecksumAlgorithmId)), 218Hash = (sourceInfo.Checksum.IsDefault) ? default(BlobHandle) : GetOrAddBlob(sourceInfo.Checksum)
PEWriter\MetadataWriter.PortablePdb.cs (2)
768hashAlgorithm: info.Checksum.IsDefault ? default(GuidHandle) : _debugMetadataOpt.GetOrAddGuid(info.ChecksumAlgorithmId), 769hash: info.Checksum.IsDefault ? default(BlobHandle) : _debugMetadataOpt.GetOrAddBlob(info.Checksum),
PEWriter\ModifiedTypeReference.cs (1)
24Debug.Assert(!customModifiers.IsDefault);
PEWriter\PeWriter.cs (1)
247if (!portablePdbContentHash.IsDefault)
ReferenceManager\AssemblyDataForAssemblyBeingBuilt.cs (1)
32Debug.Assert(!referencedAssemblyData.IsDefault);
ReferenceManager\CommonReferenceManager.Binding.cs (1)
613if (resolutionAssemblies.IsDefault)
ReferenceManager\CommonReferenceManager.Resolution.cs (7)
82Debug.Assert(!aliasesOpt.IsDefault || !recursiveAliasesOpt.IsDefault); 83Debug.Assert(!mergedReferences.IsDefault); 90private bool IsUninitialized => (_aliasesOpt.IsDefault && _recursiveAliasesOpt.IsDefault) || _mergedReferencesOpt.IsDefault; 168return aliasesOpt.IsDefault ? "" : $" {name} = '{string.Join("','", aliasesOpt)}'";
ReferenceManager\CommonReferenceManager.State.cs (18)
356Debug.Assert(_lazyDirectiveReferences.IsDefault); 358Debug.Assert(_lazyExplicitReferences.IsDefault); 359Debug.Assert(_lazyReferencedModules.IsDefault); 360Debug.Assert(_lazyReferencedModulesReferences.IsDefault); 361Debug.Assert(_lazyReferencedAssemblies.IsDefault); 362Debug.Assert(_lazyAliasesOfReferencedAssemblies.IsDefault); 364Debug.Assert(_lazyUnifiedAssemblies.IsDefault); 377Debug.Assert(!_lazyDirectiveReferences.IsDefault); 379Debug.Assert(!_lazyExplicitReferences.IsDefault); 380Debug.Assert(!_lazyReferencedModules.IsDefault); 381Debug.Assert(!_lazyReferencedModulesReferences.IsDefault); 382Debug.Assert(!_lazyReferencedAssemblies.IsDefault); 383Debug.Assert(!_lazyAliasesOfReferencedAssemblies.IsDefault); 385Debug.Assert(!_lazyUnifiedAssemblies.IsDefault); 507hasRecursiveAliases |= !referenceMap[i].RecursiveAliasesOpt.IsDefault; 516Debug.Assert(!aliasesOfReferencedAssembliesBuilder.Any(a => a.IsDefault)); 626if (!reference.IsSkipped && !reference.RecursiveAliasesOpt.IsDefault) 666if (aliasesOfReferencedAssembliesBuilder[i].IsDefault)
ReferenceManager\MergedAliases.cs (1)
79if (aliasesOpt.IsDefault)
ReferenceManager\ModuleReferences.cs (3)
46Debug.Assert(!identities.IsDefault); 47Debug.Assert(!symbols.IsDefault); 49Debug.Assert(!unifiedAssemblies.IsDefault);
SourceFileResolver.cs (1)
42if (searchPaths.IsDefault)
SourceGeneration\IncrementalGeneratorRunStep.cs (2)
18Debug.Assert(!inputs.IsDefault); 19Debug.Assert(!outputs.IsDefault);
SourceGeneration\Nodes\NodeStateTable.cs (2)
477Debug.Assert(stepInputs.IsDefault == !TrackIncrementalSteps); 597Debug.Assert(!states.IsDefault);
SourceGeneration\RunResults.cs (2)
49if (_lazyDiagnostics.IsDefault) 67if (_lazyGeneratedTrees.IsDefault)
src\Compilers\Core\AnalyzerDriver\DeclarationInfo.cs (1)
18Debug.Assert(!executableCodeBlocks.IsDefault);
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (9)
362if (!groupSizes.IsDefault) 371if (!externAliasStrings.IsDefault) 389if (!externAliasStrings.IsDefault) 397Debug.Assert(!allModuleInfoImportStrings.IsDefault); 414if (groupSizes.IsDefault) 421Debug.Assert(!importStrings.IsDefault); 449if (externAliasStrings.IsDefault) 492Debug.Assert(!importStrings.IsDefault); 511Debug.Assert(!importStrings.IsDefault);
src\Dependencies\CodeAnalysis.Debugging\TupleElementNamesInfo.cs (1)
22Debug.Assert(!elementNames.IsDefault);
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
79if (!values.IsDefault)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (11)
551Debug.Assert(!array.IsDefault); 757if (array1.IsDefault) 759return array2.IsDefault; 761else if (array2.IsDefault) 798return array.IsDefault ? ImmutableArray<T>.Empty : array; 807null or { IsDefault: true } => ImmutableArray<T>.Empty, 817Debug.Assert(!array.IsDefault); 844if (!array.IsDefault && array.Length >= 2) 1222if (!membersAsNamedTypes.IsDefault) 1251if (array1.IsDefault) 1256if (array2.IsDefault)
src\Dependencies\Collections\OneOrMany.cs (3)
41if (many.IsDefault) 63=> _many.IsDefault; 66=> _one == null && _many.IsDefault;
StrongName\CryptoBlobParser.cs (1)
93if (blob.IsDefault || blob.Length < s_publicKeyHeaderSize + 1)
StrongName\DesktopStrongNameProvider.cs (1)
56if (!keyFileSearchPaths.IsDefault && keyFileSearchPaths.Any(static path => !PathUtilities.IsAbsolute(path)))
StrongName\StrongNameKeys.cs (4)
77Debug.Assert(keyContainerName == null || keyPair.IsDefault); 78Debug.Assert(keyPair.IsDefault || keyFilePath != null); 189return !KeyPair.IsDefault || KeyContainer != null; 200return CanSign || !PublicKey.IsDefault;
SymbolDisplay\SymbolDisplayExtensions.cs (1)
25if (parts.IsDefault)
Symbols\Attributes\CustomAttributesBag.cs (2)
100Debug.Assert(!newCustomAttributes.IsDefault); 115Debug.Assert(!_customAttributes.IsDefault);
Symbols\Attributes\SecurityWellKnownAttributeData.cs (1)
64Debug.Assert(!customAttributes.IsDefault);
Symbols\TypedConstant.cs (1)
35: this(type, TypedConstantKind.Array, value: array.IsDefault ? null : (object)array)
Symbols\TypedConstantValue.cs (1)
31_value = array.IsDefault ? null : (object)array;
Syntax\SyntaxTree.cs (2)
373if (RoslynImmutableInterlocked.VolatileRead(ref _lazyChecksum).IsDefault) 380Debug.Assert(!_lazyChecksum.IsDefault);
Text\ChangedText.cs (1)
26Debug.Assert(!changeRanges.IsDefault);
Text\SourceText.cs (10)
54if (!checksum.IsDefault && checksum.Length != CryptographicHashProvider.GetHashSize(checksumAlgorithm)) 68Debug.Assert(embeddedTextBlob.IsDefault || !checksum.IsDefault); 70if (!checksum.IsDefault && embeddedTextBlob.IsDefault) 434if (_precomputedEmbeddedTextBlob.IsDefault) 597if (_lazyChecksum.IsDefault) 622if (_lazyContentHash.IsDefault) 1159if (!leftContentHash.IsDefault && !rightContentHash.IsDefault)
Text\SourceTextComparer.cs (1)
36var contentsHash = !checksum.IsDefault ? Hash.CombineValues(checksum) : 0;
Microsoft.CodeAnalysis.Analyzers (18)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (2)
435!customTags.IsDefault && 1254if (!allowedIdsInfoListOpt.IsDefault)
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
79if (!values.IsDefault)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (11)
551Debug.Assert(!array.IsDefault); 757if (array1.IsDefault) 759return array2.IsDefault; 761else if (array2.IsDefault) 798return array.IsDefault ? ImmutableArray<T>.Empty : array; 807null or { IsDefault: true } => ImmutableArray<T>.Empty, 817Debug.Assert(!array.IsDefault); 844if (!array.IsDefault && array.Length >= 2) 1222if (!membersAsNamedTypes.IsDefault) 1251if (array1.IsDefault) 1256if (array2.IsDefault)
src\Dependencies\Collections\OneOrMany.cs (3)
41if (many.IsDefault) 63=> _many.IsDefault; 66=> _one == null && _many.IsDefault;
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
238if (words.IsDefault)
Microsoft.CodeAnalysis.AnalyzerUtilities (5)
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
238if (words.IsDefault)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ValueContentAnalysis\ValueContentAnalysisContext.cs (1)
45AdditionalSupportedValueTypes = additionalSupportedValueTypes.IsDefault ? ImmutableArray<INamedTypeSymbol>.Empty : additionalSupportedValueTypes;
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntity.cs (1)
49Debug.Assert(!indices.IsDefault);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityFactory.cs (2)
326return !elementEntities.IsDefault; 339if (tupleType.TupleElements.IsDefault)
Microsoft.CodeAnalysis.BannedApiAnalyzers (16)
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
79if (!values.IsDefault)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (11)
551Debug.Assert(!array.IsDefault); 757if (array1.IsDefault) 759return array2.IsDefault; 761else if (array2.IsDefault) 798return array.IsDefault ? ImmutableArray<T>.Empty : array; 807null or { IsDefault: true } => ImmutableArray<T>.Empty, 817Debug.Assert(!array.IsDefault); 844if (!array.IsDefault && array.Length >= 2) 1222if (!membersAsNamedTypes.IsDefault) 1251if (array1.IsDefault) 1256if (array2.IsDefault)
src\Dependencies\Collections\OneOrMany.cs (3)
41if (many.IsDefault) 63=> _many.IsDefault; 66=> _one == null && _many.IsDefault;
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
238if (words.IsDefault)
Microsoft.CodeAnalysis.CodeStyle (48)
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerAnalyzer.cs (2)
75if (preMatches.IsDefault || postMatches.IsDefault)
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (3)
209if (matches.IsDefault) 227if (preMatches.IsDefault || postMatches.IsDefault)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (4)
156Debug.Assert(!initializedValue.IsDefault); 158return oldValue.IsDefault ? initializedValue : oldValue; 185if (!target.IsDefault) 200if (!current.IsDefault)
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
26if (numerals.IsDefault)
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
79if (!values.IsDefault)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (11)
551Debug.Assert(!array.IsDefault); 757if (array1.IsDefault) 759return array2.IsDefault; 761else if (array2.IsDefault) 798return array.IsDefault ? ImmutableArray<T>.Empty : array; 807null or { IsDefault: true } => ImmutableArray<T>.Empty, 817Debug.Assert(!array.IsDefault); 844if (!array.IsDefault && array.Length >= 2) 1222if (!membersAsNamedTypes.IsDefault) 1251if (array1.IsDefault) 1256if (array2.IsDefault)
src\Dependencies\Collections\OneOrMany.cs (3)
41if (many.IsDefault) 63=> _many.IsDefault; 66=> _one == null && _many.IsDefault;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSeparatedSyntaxNodeList.cs (1)
27Contract.ThrowIfTrue(nodesAndTokens.IsDefault);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxToken.cs (5)
36Debug.Assert(!leadingTrivia.IsDefault); 38Debug.Assert(!trailingTrivia.IsDefault); 39Debug.Assert(!diagnostics.IsDefault); 118if (leading && !LeadingTrivia.IsDefault) 128if (trailing && !TrailingTrivia.IsDefault)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
50if (rules.IsDefault)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
285if (_lazySerializableRules.IsDefault)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (3)
39public ImmutableArray<SymbolKindOrTypeKind> ApplicableSymbolKindList { get; } = symbolKindList.IsDefault ? DefaultSymbolSpecificationTemplate.ApplicableSymbolKindList : symbolKindList; 42public ImmutableArray<Accessibility> ApplicableAccessibilityList { get; } = accessibilityList.IsDefault ? DefaultSymbolSpecificationTemplate.ApplicableAccessibilityList : accessibilityList; 45public ImmutableArray<ModifierKind> RequiredModifierList { get; } = modifiers.IsDefault ? DefaultSymbolSpecificationTemplate.RequiredModifierList : modifiers;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
307Debug.Assert(!array.IsDefault);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
1065if (!specifiedArguments.IsDefault)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (8)
54Contract.ThrowIfTrue(nodes.IsDefault, $"{nameof(nodes)}.{nameof(nodes.IsDefault)}"); 55Contract.ThrowIfTrue(edges.IsDefault, $"{nameof(edges)}.{nameof(edges.IsDefault)}"); 68Contract.ThrowIfTrue(_nodes.IsDefault, $"{nameof(_nodes)}.{nameof(_nodes.IsDefault)}"); 69Contract.ThrowIfTrue(_edges.IsDefault, $"{nameof(_edges)}.{nameof(_edges.IsDefault)}");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (2)
78Debug.Assert(!x.IsDefault && !y.IsDefault);
Microsoft.CodeAnalysis.CodeStyle.Fixes (9)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (2)
109ParameterTypes = ParameterTypes.IsDefault ? GetParameterTypes(cancellationToken) : ParameterTypes; 274=> _arguments.IsDefault || index >= _arguments.Length ? string.Empty : _arguments[index].Name;
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateDeconstructMethodService.State.cs (1)
66if (parameters.IsDefault)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.MethodSignatureInfo.cs (1)
41=> _parameterNames.IsDefault
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
37return _typeParameters.IsDefault
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (1)
370explicitInterfaceImplementations.IsDefault ? accessor.ExplicitInterfaceImplementations : explicitInterfaceImplementations,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\CodeRefactoringContextExtensions.cs (1)
24if (!actions.IsDefault)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
76reducers = reducers.IsDefault ? _reducers : reducers;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (1)
151if (localLanguages.IsDefault)
Microsoft.CodeAnalysis.Collections.Package (15)
Extensions\ICollectionExtensions.cs (1)
79if (!values.IsDefault)
Extensions\ImmutableArrayExtensions.cs (11)
551Debug.Assert(!array.IsDefault); 757if (array1.IsDefault) 759return array2.IsDefault; 761else if (array2.IsDefault) 798return array.IsDefault ? ImmutableArray<T>.Empty : array; 807null or { IsDefault: true } => ImmutableArray<T>.Empty, 817Debug.Assert(!array.IsDefault); 844if (!array.IsDefault && array.Length >= 2) 1222if (!membersAsNamedTypes.IsDefault) 1251if (array1.IsDefault) 1256if (array2.IsDefault)
OneOrMany.cs (3)
41if (many.IsDefault) 63=> _many.IsDefault; 66=> _one == null && _many.IsDefault;
Microsoft.CodeAnalysis.CSharp (666)
Binder\Binder.ValueChecks.cs (10)
451if (indexerAccess.OriginalIndexersOpt.IsDefault) 2160parameters = parameters.IsDefault ? [extensionParameter] : [extensionParameter, .. parameters]; 2163argsOpt = argsOpt.IsDefault ? [receiver] : [receiver, .. argsOpt]; 2166if (!argRefKindsOpt.IsDefault) 2171if (!argsToParamsOpt.IsDefault) 2408if (!argsOpt.IsDefault) 2427parameters[argsToParamsOpt.IsDefault ? argIndex : argsToParamsOpt[argIndex]] : 2440if (!argRefKindsOpt.IsDefault) 2532var refKind = argRefKindsOpt.IsDefault ? RefKind.None : argRefKindsOpt[argIndex]; 3071int paramIndex = argsToParamsOpt.IsDefault ? argIndex : argsToParamsOpt[argIndex];
Binder\Binder_Attributes.cs (6)
308Debug.Assert(!constructorArgsArray.IsDefault, "Property of VisitArguments"); 359if (argsToParamsOpt.IsDefault && !boundAttribute.ConstructorExpanded) 377Debug.Assert(argsToParamsOpt.IsDefault 386int paramIndex = argsToParamsOpt.IsDefault ? argIndex : argsToParamsOpt[argIndex]; 705Debug.Assert(!constructorArgsArray.IsDefault); 716var paramIndex = argumentsToParams.IsDefault ? i : argumentsToParams[i];
Binder\Binder_Conversions.cs (2)
400Debug.Assert(conversion.UnderlyingConversions.IsDefault); 2272Debug.Assert(conversion.UnderlyingConversions.IsDefault);
Binder\Binder_Crefs.cs (1)
21Debug.Assert(!symbols.IsDefault, "Prefer empty to null.");
Binder\Binder_Deconstruct.cs (1)
579ImmutableArray<bool> inferredPositions = tupleNames.IsDefault ? default : tupleNames.SelectAsArray(n => n != null);
Binder\Binder_Expressions.cs (20)
980ImmutableArray<bool> inferredPositions = tupleNames.IsDefault ? default : tupleNames.SelectAsArray(n => n != null); 1413|| (type.IsTupleType && !type.TupleElementNames.IsDefault)) 3477Debug.Assert(argsToParamsOpt.IsDefault || argsToParamsOpt.Length == arguments.Count); 3613if (!argsToParamsOpt.IsDefault && collectionArgs.Length > 1) 3623Debug.Assert(argsToParamsBuilder is not null || argsToParamsOpt.IsDefault); 3734if (memberAnalysisResult.ArgsToParamsOpt.IsDefault && arguments.Count == parameters.Length) 4270Debug.Assert(!boundInitExpr.IsDefault); 4352if (boundInitExprOpt.IsDefault) 4423Debug.Assert(boundInitExprOpt.IsDefault || creationSyntax.Kind() == SyntaxKind.ImplicitArrayCreationExpression); 4669if (boundInitExprOpt.IsDefault) 6517if (boundCall.HasErrors && !boundCall.OriginalMethodsOpt.IsDefault) 7839if (!typeArguments.IsDefault) 8016Debug.Assert(typeArgumentsOpt.IsDefault); 8071Debug.Assert(rightArity == (typeArgumentsWithAnnotations.IsDefault ? 0 : typeArgumentsWithAnnotations.Length)); 8459if (!typeArgumentsWithAnnotations.IsDefault) 8534int arity = typeArgumentsWithAnnotations.IsDefault ? 0 : typeArgumentsWithAnnotations.Length; 8846if (typeArgumentsWithAnnotations.IsDefault) 11195Debug.Assert(parameterRefKinds.IsDefault || parameterRefKinds.Length == parameterTypes.Length); 11219(parameterRefKinds.IsDefault || parameterRefKinds.All(refKind => refKind == RefKind.None)) && 11253parameterRefKinds.IsDefault ? RefKind.None : parameterRefKinds[i],
Binder\Binder_InterpolatedString.cs (2)
641Debug.Assert(additionalConstructorArguments.IsDefault 642? additionalConstructorRefKinds.IsDefault
Binder\Binder_Invocation.cs (9)
101Debug.Assert(names.IsDefault || names.Length == args.Length); 134if (!names.IsDefault) 563if (!refKinds.IsDefault) 1015(typeArgumentsOpt.IsDefault || ((MethodSymbol)(object)result.Member).CheckConstraints(new ConstraintsHelper.CheckConstraintsArgs(this.Compilation, this.Conversions, includeNullability: false, syntax.Location, candidateDiagnostics)))) 1260Debug.Assert(argsToParams.IsDefault || argsToParams[0] == 0); 1488if (argsToParamsOpt.IsDefault) 1566Debug.Assert(argsToParamsOpt.IsDefault || argsToParamsOpt.Length == argumentsBuilder.Count); 1572if (!argsToParamsOpt.IsDefault) 1768=> argsToParamsOpt.IsDefault
Binder\Binder_Lookup.cs (4)
296if (!errorType.CandidateSymbols.IsDefault && errorType.CandidateSymbols.Length == 1) 1445if (symbolFileIdentifier is null || symbolFileIdentifier.FilePathChecksumOpt.IsDefault) 1452return !binderFileIdentifier.FilePathChecksumOpt.IsDefault 1615if (!publicKey.IsDefault)
Binder\Binder_Patterns.cs (2)
1040deconstructionSubpatterns.IsDefault; 1416hasErrors = outPlaceholders.IsDefault || tupleDesignation.Variables.Count != outPlaceholders.Length;
Binder\Binder_Symbols.cs (2)
1456typeArguments.IsDefault ? 0 : typeArguments.Length, 1895int aLocationsCount = !snd.Locations.IsDefault ? snd.Locations.Length : 0;
Binder\Binder_TupleOperators.cs (4)
276bool leftNoNames = leftNames.IsDefault; 277bool rightNoNames = rightNames.IsDefault; 287bool leftNoInferredNames = leftInferred.IsDefault; 290bool rightNoInferredNames = rightInferred.IsDefault;
Binder\DecisionDagBuilder.cs (2)
527if (!recursive.Deconstruction.IsDefault) 578if (!recursive.Properties.IsDefault)
Binder\ForEachLoopBinder.cs (4)
246if (getEnumeratorMethod.ParameterRefKinds is { IsDefault: false } refKinds && refKinds[0] == RefKind.Ref) 1251Debug.Assert(argsToParams.IsDefault); 1506Debug.Assert(argsToParams.IsDefault); 1986Debug.Assert(argsToParams.IsDefault);
Binder\ImportChain.cs (3)
40Debug.Assert(!imports.IsDefault); 66if (!externAliases.IsDefault) 75if (!usings.IsDefault)
Binder\Imports.cs (4)
42Debug.Assert(!usings.IsDefault); 43Debug.Assert(!externs.IsDefault); 157Debug.Assert(!usings.IsDefault); 158Debug.Assert(!externs.IsDefault);
Binder\LocalScopeBinder.cs (3)
39if (_locals.IsDefault) 57if (_localFunctions.IsDefault) 75if (_labels.IsDefault)
Binder\Semantics\Conversions\Conversion.cs (1)
573if (_uncommonData is NestedUncommonData { _nestedConversionsOpt: { IsDefault: false } nestedConversions })
Binder\Semantics\OverloadResolution\AnalyzedArguments.cs (2)
154if (!argumentRefKindsOpt.IsDefault) 159if (!argumentNamesOpt.IsDefault)
Binder\Semantics\OverloadResolution\ArgumentAnalysisResult.cs (2)
22if (ArgsToParamsOpt.IsDefault) 123if (!ArgsToParamsOpt.IsDefault)
Binder\Semantics\OverloadResolution\MemberAnalysisResult.cs (3)
156if (this.ConversionsOpt.IsDefault) 167if (ArgsToParamsOpt.IsDefault) 446if (argsToParams.IsDefault)
Binder\Semantics\OverloadResolution\MethodGroup.cs (2)
59if (!typeArguments.IsDefault) 74if (!typeArguments.IsDefault)
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (15)
283Debug.Assert(!methodTypeParameters.IsDefault); 285Debug.Assert(!formalParameterTypes.IsDefault); 286Debug.Assert(formalParameterRefKinds.IsDefault || formalParameterRefKinds.Length == formalParameterTypes.Length); 287Debug.Assert(!arguments.IsDefault); 442return _formalParameterRefKinds.IsDefault ? RefKind.None : _formalParameterRefKinds[index]; 601Debug.Assert(!_formalParameterTypes.IsDefault); 602Debug.Assert(!_arguments.IsDefault); 1482if (fixedParameters.IsDefault) 1576if (delegateParameters.IsDefault) 1932&& (sourceSignature.ParameterRefKinds.IsDefault, targetSignature.ParameterRefKinds.IsDefault) switch 3105if (originalDelegateParameters.IsDefault) 3264Debug.Assert(!arguments.IsDefault); 3300Debug.Assert(!_formalParameterTypes.IsDefault); 3302Debug.Assert(!_arguments.IsDefault);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (8)
2627if (conversionsOpt.IsDefault) 3761if (p1.IsDefault || p2.IsDefault) 3913int parm = argToParamMap.IsDefault ? arg : argToParamMap[arg]; 4055var parm = argToParamMap.IsDefault ? arg : argToParamMap[arg]; 4294if (typeArguments.IsDefault) 4441canInfer = !extensionTypeArguments.IsDefault && !extensionTypeArguments.Any(t => !t.HasType); 4558RefKind parameterRefKind = parameters.ParameterRefKinds.IsDefault ? RefKind.None : parameters.ParameterRefKinds[argumentPosition];
Binder\Semantics\OverloadResolution\OverloadResolution_ArgsToParameters.cs (1)
353Debug.Assert(!parameters.IsDefault);
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
936FunctionPointerMethodSymbol functionPointerMethodBeingInvoked = symbols.IsDefault || symbols.Length != 1
Binder\UsingStatementBinder.cs (1)
224Debug.Assert(argsToParams.IsDefault);
Binder\WithExternAliasesBinder.cs (2)
100if (_lazyExternAliases.IsDefault) 117Debug.Assert(!externAliases.IsDefault);
Binder\WithExternAndUsingAliasesBinder.cs (3)
129if (_lazyExternAliases.IsDefault) 142if (_lazyUsingAliases.IsDefault) 234Debug.Assert(!externAliases.IsDefault);
Binder\WithUsingNamespacesAndTypesBinder.cs (2)
310if (_lazyUsings.IsDefault) 368Debug.Assert(!namespacesOrTypes.IsDefault);
BoundTree\BoundBinaryOperator.UncommonData.cs (1)
35if (constantValue != null || method is not null || constrainedToType is not null || !originalUserDefinedOperatorsOpt.IsDefault)
BoundTree\BoundDecisionDag.cs (1)
75if (_topologicallySortedNodes.IsDefault)
BoundTree\BoundExpression.cs (1)
349return !this.OriginalIndexersOpt.IsDefault ? LookupResultKind.OverloadResolutionFailure : base.ResultKind;
BoundTree\BoundExpressionExtensions.cs (2)
210if (originalMethods.IsDefault) 222if (originalIndexers.IsDefault)
BoundTree\BoundNodeExtensions.cs (1)
21if (nodeArray.IsDefault)
BoundTree\BoundTreeRewriter.cs (2)
24if (list.IsDefault) 163if (symbols.IsDefault)
BoundTree\BoundTreeWalker.cs (1)
19if (!list.IsDefault)
BoundTree\Constructors.cs (3)
185argumentRefKindsOpt = argumentRefKindsOpt.IsDefault ? getArgumentRefKinds(method) : argumentRefKindsOpt; 192var parameterRefKind = method.ParameterRefKinds.IsDefault ? RefKind.None : method.ParameterRefKinds[i]; 193var argumentRefKind = argumentRefKindsOpt.IsDefault ? RefKind.None : argumentRefKindsOpt[i];
BoundTree\InterpolatedStringHandlerData.cs (2)
38Debug.Assert(!placeholders.IsDefault); 41Debug.Assert(!positionInfo.IsDefault);
BoundTree\TupleBinaryOperatorInfo.cs (1)
113Debug.Assert(!operators.IsDefault);
BoundTree\UnboundLambda.cs (10)
177parameterRefKinds.IsDefault ? Enumerable.Repeat(RefKind.None, parameterTypes.Length).ToImmutableArray() : parameterRefKinds, 409bool hasErrors = !types.IsDefault && types.Any(static t => t.Type?.Kind == SymbolKind.ErrorType); 1493public override bool HasSignature { get { return !_parameterNames.IsDefault; } } 1502public override bool HasExplicitlyTypedParameterList { get { return !_parameterTypesWithAnnotations.IsDefault; } } 1504public override int ParameterCount { get { return _parameterNames.IsDefault ? 0 : _parameterNames.Length; } } 1540return _parameterAttributes.IsDefault ? default : _parameterAttributes[index]; 1545Debug.Assert(!_parameterNames.IsDefault && 0 <= index && index < _parameterNames.Length); 1552return _parameterIsDiscardOpt.IsDefault ? false : _parameterIsDiscardOpt[index]; 1558return _parameterRefKinds.IsDefault ? Microsoft.CodeAnalysis.RefKind.None : _parameterRefKinds[index]; 1564return _parameterDeclaredScopes.IsDefault ? ScopedKind.None : _parameterDeclaredScopes[index];
CodeGen\EmitExpression.cs (3)
951Debug.Assert(parameters.All(p => p.RefKind == RefKind.None) || !argRefKindsOpt.IsDefault, "there are nontrivial parameters, so we must have argRefKinds"); 953Debug.Assert(argRefKindsOpt.IsDefault || argRefKindsOpt.Length == arguments.Length || 972if (!argRefKindsOpt.IsDefault && i < argRefKindsOpt.Length)
CodeGen\EmitStatement.cs (1)
924Debug.Assert(!statement.CatchBlocks.IsDefault);
CodeGen\Optimizer.cs (4)
721if (!sideeffects.IsDefault) 1256Debug.Assert(!arguments.IsDefault); 1257Debug.Assert(!parameters.IsDefault); 1760if (!initializers.IsDefault)
Compilation\CSharpCompilation.cs (12)
2265if (!method.ParameterRefKinds.IsDefault) 3301if (_lazyClsComplianceDiagnostics.IsDefault || _lazyClsComplianceDependencies.IsDefault) 3310Debug.Assert(!_lazyClsComplianceDependencies.IsDefault); 3311Debug.Assert(!_lazyClsComplianceDiagnostics.IsDefault); 4100if (parameterTypes.IsDefault) 4113if (parameterRefKinds.IsDefault) 4195var annotation = (elementNullableAnnotations.IsDefault ? typeSymbol.NullableAnnotation : elementNullableAnnotations[i]).ToInternalAnnotation(); 4229if (!elementNullableAnnotations.IsDefault) 4251if (!memberIsReadOnly.IsDefault && memberIsReadOnly.Any(static v => !v)) 4262var location = memberLocations.IsDefault ? Location.None : memberLocations[i]; 4263var nullableAnnotation = memberNullableAnnotations.IsDefault ? NullableAnnotation.Oblivious : memberNullableAnnotations[i].ToInternalAnnotation();
Compilation\CSharpSemanticModel.cs (13)
725Debug.Assert(boundNode == null || crefSymbols.IsDefault); 728return crefSymbols.IsDefault ? SymbolInfo.None : GetCrefSymbolInfo(OneOrMany.Create(crefSymbols), SymbolInfoOptions.DefaultOptions, hasParameterList: false); 1055Debug.Assert(boundNode == null || crefSymbols.IsDefault); 1058return !crefSymbols.IsDefault && crefSymbols.Length == 1 1202Debug.Assert(boundNode == null || crefSymbols.IsDefault); 1205return !crefSymbols.IsDefault && crefSymbols.Length == 1 3450if (call.OriginalMethodsOpt.IsDefault) 3498symbols = originalIndexersOpt.IsDefault ? OneOrMany.Create<Symbol>(indexerAccess.Indexer) : StaticCast<Symbol>.From(OneOrMany.Create(originalIndexersOpt)); 3957else if (!originalCandidates.IsDefault) 4279if (call.OriginalMethodsOpt.IsDefault) 4428if (indexer.OriginalIndexersOpt.IsDefault) 4625if (typeArguments.IsDefault) 4755Debug.Assert(!methods.IsDefault);
Compilation\DeconstructionInfo.cs (1)
71return deconstructConversionInfo.IsDefault
Compilation\MemberSemanticModel.cs (1)
1130if (!elements.IsDefault)
Compilation\SyntaxAndDeclarationManager.cs (1)
572Debug.Assert(!oldLoadDirectives.IsDefault);
Compilation\SyntaxTreeSemanticModel.cs (2)
1956if (!usingAliases.IsDefault) 1989if (!externAliases.IsDefault)
Compiler\ClsComplianceChecker.cs (3)
1363bool sawRefKindDifference = xRefKinds.IsDefault != yRefKinds.IsDefault; 1403if (!xRefKinds.IsDefault)
Compiler\MethodCompiler.cs (1)
945if (!cachedDiagnostics.IsDefault)
CSharpCompilationOptions.cs (1)
345if (value.IsDefault)
CSharpParseOptions.cs (2)
122if (symbols.IsDefault) 184if (!_interceptorsNamespaces.IsDefault)
Declarations\DeclarationTable.Cache.cs (1)
81if (_referenceDirectives.IsDefault)
Declarations\MergedNamespaceDeclaration.cs (1)
245if (_lazyChildren.IsDefault)
Declarations\MergedTypeDeclaration.cs (1)
241if (_lazyChildren.IsDefault)
Declarations\RootSingleNamespaceDeclaration.cs (1)
43Debug.Assert(!referenceDirectives.IsDefault);
Emitter\Model\AttributeDataAdapter.cs (1)
121Debug.Assert(!argument.Values.IsDefault);
Emitter\Model\PEAssemblyBuilder.cs (1)
128if (lazyFiles.IsDefault)
Emitter\Model\PEModuleBuilder.cs (1)
614if (_lazyExportedTypes.IsDefault)
FlowAnalysis\AbstractFlowPass.cs (1)
1574return refKindsOpt.IsDefault || refKindsOpt.Length <= index ? RefKind.None : refKindsOpt[index];
FlowAnalysis\CSharpDataFlowAnalysis.cs (14)
64if (_variablesDeclared.IsDefault) 99if (_dataFlowsIn.IsDefault) 130if (_definitelyAssignedOnExit.IsDefault) 157if (_dataFlowsOut.IsDefault) 176if (_alwaysAssigned.IsDefault) 195if (_readInside.IsDefault) 211if (_writtenInside.IsDefault) 227if (_readOutside.IsDefault) 243if (_writtenOutside.IsDefault) 289if (_captured.IsDefault) 302if (_capturedInside.IsDefault) 315if (_capturedOutside.IsDefault) 335if (_unsafeAddressTaken.IsDefault) 348if (_usedLocalFunctions.IsDefault)
FlowAnalysis\DefiniteAssignment.cs (3)
571Debug.Assert(unused.IsDefault); 671Debug.Assert(strictAnalysis || implicitlyInitializedFieldsOpt.IsDefault); 1665if (!bad.ChildBoundNodes.IsDefault && bad.ChildBoundNodes.Length == 1)
FlowAnalysis\FlowAnalysisPass.cs (4)
54if (!implicitlyInitializedFields.IsDefault) 71Debug.Assert(unusedImplicitlyInitializedFields.IsDefault); 93Debug.Assert(unusedImplicitlyInitializedFields.IsDefault); 217return needsImplicitReturn || !implicitlyInitializedFieldsOpt.IsDefault;
FlowAnalysis\NullableWalker.cs (24)
2273if (nodes.IsDefault) 3894Debug.Assert(initializer.ArgsToParamsOpt.IsDefault); 4597if (!argumentResults.IsDefault) 6578if (argumentRefKindsOpt.IsDefault) 6610if (argsToParamsOpt.IsDefault) 6814public bool IsDefault => Arguments.IsDefault || Results.IsDefault; 6841Debug.Assert(argsToParamsOpt is { IsDefault: true } or { Length: 3 }); 6842var (comparandIndex, valueIndex, locationIndex) = argsToParamsOpt.IsDefault 7106Debug.Assert(!arguments.IsDefault); 7107Debug.Assert(!expanded || !parametersOpt.IsDefault); 7109Debug.Assert(argsToParamsOpt.IsDefault || argsToParamsOpt.Length == arguments.Length); 7192bool parameterHasNotNullIfNotNull = !IsAnalyzingAttribute && !parametersOpt.IsDefault && parametersOpt.Any(static p => !p.NotNullIfParameterNotNull.IsEmpty); 7195if (!parametersOpt.IsDefault) 7222if (node is BoundCall { HasErrors: true, ArgumentNamesOpt.IsDefaultOrEmpty: false, ArgsToParamsOpt.IsDefault: true } && 7237conversions.IsDefault || i >= conversions.Length ? Conversion.Identity : conversions[i], 7271if (!node.HasErrors && !parametersOpt.IsDefault) 7357Debug.Assert(parametersOpt.IsDefault || arguments.Length == parametersOpt.Length); 7373if (!argsToParamsOpt.IsDefault) 7393if (!argsToParamsOpt.IsDefault) 7603resultsBuilder.Add(VisitArgumentEvaluate(arguments[i], GetRefKind(refKindsOpt, i), parameterAnnotationsOpt.IsDefault ? default : parameterAnnotationsOpt[i])); 7616if (!parametersOpt.IsDefault) 8149if (parametersOpt.IsDefault) 8901var index = argsToParamsOpt.IsDefault ? parameterOrdinal : argsToParamsOpt.IndexOf(parameterOrdinal);
FlowAnalysis\NullableWalker_Patterns.cs (3)
196if (rp.DeconstructMethod is null && !rp.Deconstruction.IsDefault) 199for (int i = 0, n = Math.Min(rp.Deconstruction.Length, elements.IsDefault ? 0 : elements.Length); i < n; i++) 208if (!rp.Properties.IsDefault)
Generated\BoundNodes.xml.Generated.cs (92)
277RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 295RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 325RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 355RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 965RoslynDebug.Assert(!symbols.IsDefault, "Field 'symbols' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 966RoslynDebug.Assert(!childBoundNodes.IsDefault, "Field 'childBoundNodes' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 998RoslynDebug.Assert(!childBoundNodes.IsDefault, "Field 'childBoundNodes' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 1432RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 2039RoslynDebug.Assert(!indices.IsDefault, "Field 'indices' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3051RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3292RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3293RoslynDebug.Assert(!localFunctions.IsDefault, "Field 'localFunctions' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3294RoslynDebug.Assert(!statements.IsDefault, "Field 'statements' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3328RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3329RoslynDebug.Assert(!statements.IsDefault, "Field 'statements' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3357RoslynDebug.Assert(!fields.IsDefault, "Field 'fields' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3424RoslynDebug.Assert(!localDeclarations.IsDefault, "Field 'localDeclarations' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3438RoslynDebug.Assert(!localDeclarations.IsDefault, "Field 'localDeclarations' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3464RoslynDebug.Assert(!localDeclarations.IsDefault, "Field 'localDeclarations' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3759RoslynDebug.Assert(!innerLocals.IsDefault, "Field 'innerLocals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3760RoslynDebug.Assert(!innerLocalFunctions.IsDefault, "Field 'innerLocalFunctions' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3761RoslynDebug.Assert(!switchSections.IsDefault, "Field 'switchSections' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3804RoslynDebug.Assert(!cases.IsDefault, "Field 'cases' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3900RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3922RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3952RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3982RoslynDebug.Assert(!outerLocals.IsDefault, "Field 'outerLocals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3983RoslynDebug.Assert(!innerLocals.IsDefault, "Field 'innerLocals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 4025RoslynDebug.Assert(!iterationVariables.IsDefault, "Field 'iterationVariables' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 4106RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 4145RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 4211RoslynDebug.Assert(!catchBlocks.IsDefault, "Field 'catchBlocks' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 4247RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 4797RoslynDebug.Assert(!statements.IsDefault, "Field 'statements' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 4806RoslynDebug.Assert(!statements.IsDefault, "Field 'statements' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 4868RoslynDebug.Assert(!switchArms.IsDefault, "Field 'switchArms' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 4891RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 4931RoslynDebug.Assert(!switchArms.IsDefault, "Field 'switchArms' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 4959RoslynDebug.Assert(!switchArms.IsDefault, "Field 'switchArms' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 5099RoslynDebug.Assert(!bindings.IsDefault, "Field 'bindings' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 5646RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 5647RoslynDebug.Assert(!switchLabels.IsDefault, "Field 'switchLabels' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 5648RoslynDebug.Assert(!statements.IsDefault, "Field 'statements' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 5753RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 5754RoslynDebug.Assert(!sideEffects.IsDefault, "Field 'sideEffects' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 5789RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 5790RoslynDebug.Assert(!sideEffects.IsDefault, "Field 'sideEffects' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 5865RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 5881RoslynDebug.Assert(!applicableMethods.IsDefault, "Field 'applicableMethods' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 5883RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6063RoslynDebug.Assert(!methods.IsDefault, "Field 'methods' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6103RoslynDebug.Assert(!properties.IsDefault, "Field 'properties' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6132RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6225RoslynDebug.Assert(!constructorArguments.IsDefault, "Field 'constructorArguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6226RoslynDebug.Assert(!namedArguments.IsDefault, "Field 'namedArguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6270RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6330RoslynDebug.Assert(!constructorsGroup.IsDefault, "Field 'constructorsGroup' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6331RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6380RoslynDebug.Assert(!elements.IsDefault, "Field 'elements' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6394RoslynDebug.Assert(!elements.IsDefault, "Field 'elements' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6422RoslynDebug.Assert(!elements.IsDefault, "Field 'elements' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6534RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6552RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6579RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6610RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6611RoslynDebug.Assert(!applicableMethods.IsDefault, "Field 'applicableMethods' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6685RoslynDebug.Assert(!initializers.IsDefault, "Field 'initializers' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6704RoslynDebug.Assert(!initializers.IsDefault, "Field 'initializers' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6731RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6826RoslynDebug.Assert(!initializers.IsDefault, "Field 'initializers' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6854RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6898RoslynDebug.Assert(!applicableMethods.IsDefault, "Field 'applicableMethods' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6900RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6966RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6967RoslynDebug.Assert(!declarations.IsDefault, "Field 'declarations' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 7107RoslynDebug.Assert(!bounds.IsDefault, "Field 'bounds' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 7139RoslynDebug.Assert(!initializers.IsDefault, "Field 'initializers' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 7400RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 7455RoslynDebug.Assert(!argumentPlaceholders.IsDefault, "Field 'argumentPlaceholders' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 7541RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 7542RoslynDebug.Assert(!applicableIndexers.IsDefault, "Field 'applicableIndexers' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 7705RoslynDebug.Assert(!statements.IsDefault, "Field 'statements' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 7764RoslynDebug.Assert(!parts.IsDefault, "Field 'parts' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 7780RoslynDebug.Assert(!parts.IsDefault, "Field 'parts' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 7806RoslynDebug.Assert(!parts.IsDefault, "Field 'parts' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 8176RoslynDebug.Assert(!subpatterns.IsDefault, "Field 'subpatterns' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 8261RoslynDebug.Assert(!subpatterns.IsDefault, "Field 'subpatterns' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 8754RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 15300new TreeDumperNode("boundDimensionsOpt", null, node.BoundDimensionsOpt.IsDefault ? Array.Empty<TreeDumperNode>() : from x in node.BoundDimensionsOpt select Visit(x, null)), 15903new TreeDumperNode("argumentsOpt", null, node.ArgumentsOpt.IsDefault ? Array.Empty<TreeDumperNode>() : from x in node.ArgumentsOpt select Visit(x, null)), 17106new TreeDumperNode("deconstruction", null, node.Deconstruction.IsDefault ? Array.Empty<TreeDumperNode>() : from x in node.Deconstruction select Visit(x, null)), 17107new TreeDumperNode("properties", null, node.Properties.IsDefault ? Array.Empty<TreeDumperNode>() : from x in node.Properties select Visit(x, null)),
Lowering\ClosureConversion\ClosureConversion.cs (8)
891Debug.Assert(!arguments.IsDefault); 921if (!argRefKinds.IsDefault) 967Debug.Assert(!typeArguments.IsDefault); 1028Debug.Assert((typeArgumentsOpt.IsDefault && !originalMethod.IsGenericMethod) || (typeArgumentsOpt.Length == originalMethod.Arity)); 1031if (!typeArgumentsOpt.IsDefault) 1082Debug.Assert(node.ArgsToParamsOpt.IsDefault, "should be done with argument reordering by now"); 1381Debug.Assert(arguments.IsDefault && 1382argRefKinds.IsDefault &&
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (1)
112if (_members.IsDefault)
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
214internal int ExtraSynthesizedParameterCount => this._structEnvironments.IsDefault ? 0 : this._structEnvironments.Length;
Lowering\DiagnosticsPass_Warnings.cs (2)
23if (!argumentRefKindsOpt.IsDefault) 244if (method.Parameters[i].RefKind != RefKind.None && (argumentRefKindsOpt.IsDefault || argumentRefKindsOpt[i] == RefKind.None)) return true;
Lowering\ExtensionMethodReferenceRewriter.cs (1)
104if (argumentRefKinds.IsDefault)
Lowering\Extensions.cs (1)
19if (!ArgumentRefKinds.IsDefault && index < ArgumentRefKinds.Length)
Lowering\InitializerRewriter.cs (2)
21Debug.Assert(!boundInitializers.IsDefault); 31Debug.Assert(!boundInitializers.IsDefault);
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
554Debug.Assert(refKinds.IsDefault || arguments.Length == refKinds.Length);
Lowering\Instrumentation\ModuleCancellationInstrumenter.cs (2)
131(argumentRefKindsOpt.IsDefault || argumentRefKindsOpt is [.., RefKind.None]) && 145argumentRefKindsOpt = argumentRefKindsOpt.IsDefault ? default : [.. argumentRefKindsOpt, RefKind.None];
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (8)
157!node.ArgumentRefKindsOpt.IsDefault || 222if (!conversion.UnderlyingConversions.IsDefault) 271if (!node.ArgumentRefKindsOpt.IsDefault) 282if (!node.ArgumentRefKindsOpt.IsDefault) 292if (!node.ArgumentRefKindsOpt.IsDefault) 303if (!node.ArgumentRefKindsOpt.IsDefault) 314!node.ArgumentRefKindsOpt.IsDefault || 328if (!node.ArgumentRefKindsOpt.IsDefault)
Lowering\LocalRewriter\LocalRewriter_Call.cs (12)
304if (argumentRefKindsOpt.IsDefault && thisRefKind != RefKind.None) 309if (!argumentRefKindsOpt.IsDefault) 666Debug.Assert(argumentRefKindsOpt.IsDefault || argumentRefKindsOpt.Length == arguments.Length); 880var paramIndex = argsToParamsOpt.IsDefault ? argIndex : argsToParamsOpt[argIndex]; 1165var argRefKind = argumentRefKindsOpt.IsDefault ? RefKind.None : argumentRefKindsOpt[i]; 1171var argRefKind = argumentRefKindsOpt.IsDefault ? RefKind.None : argumentRefKindsOpt[i]; 1189Debug.Assert(argumentRefKindsOpt.IsDefault || argumentRefKindsOpt.Length >= parameters.Length); 1196if (!argumentRefKindsOpt.IsDefault) 1228Debug.Assert(argsToParamsOpt.IsDefault); 1239argsToParamsOpt.IsDefault && 1336int p = (!argsToParamsOpt.IsDefault) ? argsToParamsOpt[a] : a; 1678Debug.Assert(node.TypeArgumentsOpt.IsDefault);
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (1)
223Debug.Assert(!deconstructConversionInfo.IsDefault);
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
368if (!call.ArgsToParamsOpt.IsDefault)
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (3)
284Debug.Assert(_statements.IsDefault ^ _expressions.IsDefault); 289if (_statements.IsDefault)
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (4)
570Debug.Assert(refKinds.IsDefault || loweredArguments.Length == refKinds.Length); 586refKinds.IsDefault ? RefKind.None : refKinds[i], 607Debug.Assert(!loweredArguments.IsDefault); 766if (!refKinds.IsDefault)
Lowering\SpillSequenceSpiller.cs (4)
489[Spill(builder, objectCreationExpression.Arguments[0], argRefKinds.IsDefault ? RefKind.None : argRefKinds[0])], 590Debug.Assert(!sideEffectsOnly || refKinds.IsDefault); 591Debug.Assert(refKinds.IsDefault || refKinds.Length == args.Length); 634var refKind = refKinds.IsDefault ? RefKind.None : refKinds[i];
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
119Debug.Assert(!nonReusableFieldsForCleanup.IsDefault);
Lowering\StateMachineRewriter\StateMachineTypeSymbol.cs (1)
55if (_attributes.IsDefault)
Lowering\StateMachineRewriter\SynthesizedStateMachineMethod.cs (1)
72if (_attributes.IsDefault)
Lowering\SynthesizedMethodBaseSymbol.cs (3)
65Debug.Assert(!typeParameters.IsDefault); 66Debug.Assert(_typeParameters.IsDefault); 96if (_parameters.IsDefault)
Operations\CSharpOperationFactory.cs (8)
339if (boundNodes.IsDefault) 448if (!boundCall.OriginalMethodsOpt.IsDefault || IsMethodInvalid(boundCall.ResultKind, targetMethod)) 631if (!boundIndexerAccess.OriginalIndexersOpt.IsDefault || boundIndexerAccess.ResultKind == LookupResultKind.OverloadResolutionFailure) 965if (!typeArgumentsOpt.IsDefault) 2381if (currentPosition.IsLiteral || argumentNamesOpt.IsDefault) 2556ImmutableArray<IPatternOperation> deconstructionSubpatterns = boundRecursivePattern.Deconstruction is { IsDefault: false } deconstructions 2559ImmutableArray<IPropertySubpatternOperation> propertySubpatterns = boundRecursivePattern.Properties is { IsDefault: false } properties 2577ImmutableArray<IPatternOperation> deconstructionSubpatterns = boundITuplePattern.Subpatterns is { IsDefault: false } subpatterns
Operations\CSharpOperationFactory_Methods.cs (1)
375int p = (!argsToParamsOpt.IsDefault) ? argsToParamsOpt[a] : a;
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
997if (!parameters.IsDefault)
SymbolDisplay\SymbolDisplayVisitor.Types.cs (2)
563if (modifiers.IsDefault) 871if (!modifiers.IsDefault)
Symbols\AbstractTypeMap.cs (3)
276|| !substitutedParamModifiers.IsDefault 288if (original.IsDefault) 322if (original.IsDefault)
Symbols\AnonymousTypes\AnonymousTypeDescriptor.cs (2)
53Debug.Assert(!this.Fields.IsDefault); 103Debug.Assert(!newFieldTypes.IsDefault);
Symbols\AnonymousTypes\AnonymousTypeManager.cs (1)
70Debug.Assert(!newFieldTypes.IsDefault);
Symbols\AnonymousTypes\PublicSymbols\AnonymousType.DelegatePublicSymbol.cs (1)
45if (_lazyMembers.IsDefault)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (1)
51Debug.Assert(!locations.IsDefault);
Symbols\ArrayTypeSymbol.cs (5)
58if (sizes.IsDefaultOrEmpty && lowerBounds.IsDefault) 180if (thisLowerBounds.IsDefault) 182return other.LowerBounds.IsDefault; 187return !otherLowerBounds.IsDefault && thisLowerBounds.SequenceEqual(otherLowerBounds); 641Debug.Assert(!sizes.IsDefaultOrEmpty || !lowerBounds.IsDefault);
Symbols\Attributes\PEAttributeData.cs (2)
101if (RoslynImmutableInterlocked.VolatileRead(in _lazyConstructorArguments).IsDefault || RoslynImmutableInterlocked.VolatileRead(in _lazyNamedArguments).IsDefault)
Symbols\Attributes\SourceAttributeData.cs (4)
44Debug.Assert(!constructorArguments.IsDefault); 45Debug.Assert(!namedArguments.IsDefault); 46Debug.Assert(constructorArgumentsSourceIndices.IsDefault || 136if (_constructorArgumentsSourceIndices.IsDefault)
Symbols\Compilation_WellKnownMembers.cs (2)
403if (arguments.IsDefault) 409if (namedArguments.IsDefault)
Symbols\CustomModifier.cs (1)
60if (customModifiers.IsDefault)
Symbols\ErrorTypeSymbol.cs (1)
321if (_lazyTypeParameters.IsDefault)
Symbols\ExtendedErrorTypeSymbol.cs (2)
239if ((object?)oldError != null && !oldError._candidateSymbols.IsDefault && oldError._candidateSymbols.Length == 1) 268if ((object?)oldError != null && !oldError._candidateSymbols.IsDefault && oldError._candidateSymbols.Length > 0)
Symbols\Extensions\RewrittenMethodSymbol.cs (1)
98if (_lazyParameters.IsDefault)
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (5)
342refCustomModifiers.IsDefault ? this.RefCustomModifiers : refCustomModifiers, 452Debug.Assert(substitutedRefCustomModifiers.IsDefault || originalParameters.Length == substitutedRefCustomModifiers.Length); 466var customModifiers = substitutedRefCustomModifiers.IsDefault ? originalParam.RefCustomModifiers : substitutedRefCustomModifiers[i]; 498Debug.Assert(parameterRefCustomModifiers.IsDefault || parameterRefCustomModifiers.Length == parameterTypes.Length); 499RefCustomModifiers = refCustomModifiers.IsDefault ? getCustomModifierArrayForRefKind(refKind, compilation) : refCustomModifiers;
Symbols\MergedNamespaceSymbol.cs (1)
216if (_allMembers.IsDefault)
Symbols\Metadata\PE\DynamicTypeDecoder.cs (2)
114Debug.Assert(!dynamicTransformFlags.IsDefault); 246if (transformedTypeArguments.IsDefault)
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (3)
305if (targetCustomModifiers.IsDefault || targetCustomModifiers.IsEmpty) 307return candidateCustomModifiers.IsDefault || candidateCustomModifiers.IsEmpty; 309else if (candidateCustomModifiers.IsDefault)
Symbols\Metadata\PE\NullableTypeDecoder.cs (2)
58if (nullableTransformFlags.IsDefault && defaultTransformFlag == 0) 66(nullableTransformFlags.IsDefault || position == nullableTransformFlags.Length))
Symbols\Metadata\PE\PEAssemblySymbol.cs (1)
142if (_lazyCustomAttributes.IsDefault)
Symbols\Metadata\PE\PEEventSymbol.cs (1)
362if (_lazyCustomAttributes.IsDefault)
Symbols\Metadata\PE\PEFieldSymbol.cs (1)
582if (_lazyCustomAttributes.IsDefault)
Symbols\Metadata\PE\PEMethodSymbol.cs (15)
535if (!_lazyTypeParameters.IsDefault) 702return result.IsDefault ? ImmutableArray<string>.Empty : result; 711Debug.Assert(!memberNotNull.IsDefault); 719Debug.Assert(!memberNotNullWhenTrue.IsDefault); 725Debug.Assert(!memberNotNullWhenFalse.IsDefault); 751return result.IsDefault ? ImmutableArray<string>.Empty : result; 773return result.IsDefault ? ImmutableArray<string>.Empty : result; 840_lazyTypeParameters.IsDefault) 924if (!typeParams.IsDefault) 1053Debug.Assert(!attributeData.IsDefault); 1072return attributeData.IsDefault 1150if (this.ParameterRefKinds.IsDefault) 1344if (!explicitInterfaceImplementations.IsDefault) 1588Debug.Assert(!result.IsDefault); 1606return result.IsDefault
Symbols\Metadata\PE\PEModuleSymbol.cs (2)
244if (_lazyCustomAttributes.IsDefault) 253if (_lazyAssemblyAttributes.IsDefault)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (15)
161return lazyInstanceEnumFields.IsDefault && 163lazyCustomAttributes.IsDefault && 164lazyConditionalAttributeSymbols.IsDefault && 174lazyFilePathChecksum.IsDefault && 577internal sealed override bool IsFileLocal => _lazyUncommonProperties is { lazyFilePathChecksum: { IsDefault: false }, lazyDisplayFileName: { } }; 585return _lazyUncommonProperties is { lazyFilePathChecksum: { IsDefault: false } checksum, lazyDisplayFileName: { } displayFileName } 681if (_lazyInterfaces.IsDefault) 728if (_lazyDeclaredInterfaces.IsDefault) 898if (uncommon.lazyCustomAttributes.IsDefault) 1126if (uncommon.lazyInstanceEnumFields.IsDefault) 1469if (RoslynImmutableInterlocked.VolatileRead(ref _lazyMembersInDeclarationOrder).IsDefault) 1730if (!candidates.IsDefault && candidates.Length == 1) 2644if (uncommon.lazyConditionalAttributeSymbols.IsDefault) 2647Debug.Assert(!conditionalSymbols.IsDefault); 2957if (_lazyTypeParameters.IsDefault)
Symbols\Metadata\PE\PENamespaceSymbol.cs (2)
68if (_lazyFlattenedNamespacesAndTypes.IsDefault) 98if (_lazyFlattenedTypes.IsDefault)
Symbols\Metadata\PE\PEParameterSymbol.cs (4)
843return indexes.IsDefault; 867else if (paramNames.IsDefault || Type is not NamedTypeSymbol { IsInterpolatedStringHandlerType: true }) 1059if (_lazyCustomAttributes.IsDefault) 1158Debug.Assert(!_lazyHiddenAttributes.IsDefault);
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
760if (result.IsDefault)
Symbols\Metadata\PE\PETypeParameterSymbol.cs (3)
156if (RoslynImmutableInterlocked.VolatileRead(ref _lazyDeclaredConstraintTypes).IsDefault) 642if (_lazyCustomAttributes.IsDefault) 666Debug.Assert(!constraintTypes.IsDefault);
Symbols\Metadata\PE\TupleTypeDecoder.cs (3)
75_namesIndex = elementNames.IsDefault ? 0 : elementNames.Length; 297Debug.Assert(elementNames.IsDefault || elementNames.Length == tupleCardinality); 354if (_elementNames.IsDefault)
Symbols\MethodSymbol.cs (1)
866if (typeArguments.IsDefault)
Symbols\MissingAssemblySymbol.cs (1)
79if (_lazyModules.IsDefault)
Symbols\NamedTypeSymbol.cs (5)
917return elementNames.IsDefault ? otherElementNames.IsDefault : !otherElementNames.IsDefault && elementNames.SequenceEqual(otherElementNames); 1181if (typeArguments.IsDefault) 1210if (typeArguments.IsDefault)
Symbols\NamespaceOrTypeSymbol.cs (1)
365&& !identifier.FilePathChecksumOpt.IsDefault
Symbols\NamespaceSymbol.cs (1)
319if (typesWithExtensionMethods.IsDefault)
Symbols\NativeIntegerTypeSymbol.cs (3)
72if (_lazyMembers.IsDefault) 223if (_lazyInterfaces.IsDefault) 362if (_lazyParameters.IsDefault)
Symbols\PublicModel\NamedTypeSymbol.cs (1)
76if (_lazyTypeArguments.IsDefault)
Symbols\PublicModel\Symbol.cs (3)
33if (typeArguments.IsDefault) 39if (!typeArgumentNullableAnnotations.IsDefault && typeArgumentNullableAnnotations.Length != n) 48var annotation = typeArgumentNullableAnnotations.IsDefault ? NullableAnnotation.Oblivious : typeArgumentNullableAnnotations[i].ToInternalAnnotation();
Symbols\ReducedExtensionMethodSymbol.cs (2)
164if (typeArgs.IsDefault) 522if (_lazyParameters.IsDefault)
Symbols\ReferenceManager.cs (2)
876Debug.Assert(!referencedAssemblies.IsDefault); 897if (_assemblies.IsDefault)
Symbols\Retargeting\RetargetingEventSymbol.cs (1)
96if (_lazyExplicitInterfaceImplementations.IsDefault)
Symbols\Retargeting\RetargetingMethodSymbol.cs (3)
97if (_lazyTypeParameters.IsDefault) 155if (_lazyParameters.IsDefault) 302if (_lazyExplicitInterfaceImplementations.IsDefault)
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (3)
70if (_lazyTypeParameters.IsDefault) 338if (_lazyInterfaces.IsDefault) 375if (_lazyDeclaredInterfaces.IsDefault)
Symbols\Retargeting\RetargetingPropertySymbol.cs (3)
92if (_lazyParameters.IsDefault) 155if (_lazyExplicitInterfaceImplementations.IsDefault) 172Debug.Assert(!impls.IsDefault);
Symbols\Retargeting\RetargetingSymbolTranslator.cs (3)
1133if (lazyCustomModifiers.IsDefault) 1200if (!constructorArguments.IsDefault && constructorArguments.Any()) 1306if (lazyCustomAttributes.IsDefault)
Symbols\SignatureOnlyParameterSymbol.cs (1)
31Debug.Assert(!refCustomModifiers.IsDefault);
Symbols\Source\CustomModifierUtils.cs (1)
117Debug.Assert(!destinationParameters.IsDefault);
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (2)
314Debug.Assert(!boundAttributes.IsDefault); 315Debug.Assert(!allAttributeSyntaxNodes.IsDefault);
Symbols\Source\LocalFunctionSymbol.cs (5)
185if (!RoslynImmutableInterlocked.VolatileRead(in _lazyParameters).IsDefault) 220if (!_lazyParameters.IsDefault) 476if (_lazyTypeParameterConstraintTypes.IsDefault) 493if (_lazyTypeParameterConstraintTypes.IsDefault) 508if (_lazyTypeParameterConstraintKinds.IsDefault)
Symbols\Source\SourceAssemblySymbol.cs (8)
125Debug.Assert(!netModules.IsDefault); 1600Debug.Assert(!attributes.IsDefault); 1601Debug.Assert(!netmoduleAttributes.IsDefault); 1615Debug.Assert(!attributes.IsDefault); 2621if (_unusedFieldWarnings.IsDefault) 2651Debug.Assert(_unusedFieldWarnings.IsDefault, "We shouldn't have computed the diagnostics if we're still noting definitions."); 2667if (_unusedFieldWarnings.IsDefault) 2777Debug.Assert(!_unusedFieldWarnings.IsDefault);
Symbols\Source\SourceComplexParameterSymbol.cs (5)
141=> GetDecodedWellKnownAttributeData()?.InterpolatedStringHandlerArguments.IsDefault ?? false; 476if (implParameters.IsDefault) 492if (defParameters.IsDefault) 1386Debug.Assert(!boundAttributes.IsDefault); 1387Debug.Assert(!allAttributeSyntaxNodes.IsDefault);
Symbols\Source\SourceConstructorSymbolBase.cs (1)
121if (!_lazyParameters.IsDefault)
Symbols\Source\SourceDelegateMethodSymbol.cs (2)
41Debug.Assert(_parameters.IsDefault); 139RoslynDebug.Assert(!_parameters.IsDefault, $"Expected {nameof(InitializeParameters)} prior to accessing this property.");
Symbols\Source\SourceMemberContainerSymbol.cs (14)
833Debug.Assert(!useSiteDiagnostics.IsDefault); 842Debug.Assert(!useSiteDependencies.IsDefault); 1072Debug.Assert(!nonTypeMembers.IsDefault); 1073Debug.Assert(!staticInitializers.IsDefault); 1074Debug.Assert(staticInitializers.All(g => !g.IsDefault)); 1075Debug.Assert(!instanceInitializers.IsDefault); 1076Debug.Assert(instanceInitializers.All(g => !g.IsDefault)); 1458if (result.IsDefault) 1902Debug.Assert(fileIdentifier.FilePathChecksumOpt.IsDefault); 3237Debug.Assert(!nonTypeMembersWithPartialImplementations.IsDefault); 3257Debug.Assert(!initializers.IsDefault); 3289if (_lazyNonTypeMembers.IsDefault) 3601if (_lazySimpleProgramEntryPoints.IsDefault) 3614Debug.Assert(!_lazySimpleProgramEntryPoints.IsDefault);
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (3)
761Debug.Assert(!overriddenMembers.IsDefault); 766Debug.Assert(!hiddenMembers.IsDefault); 1582Debug.Assert(!hiddenMembers.IsDefault);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
1466Debug.Assert(!boundAttributes.IsDefault); 1467Debug.Assert(!allAttributeSyntaxNodes.IsDefault);
Symbols\Source\SourceModuleSymbol.cs (3)
129if (_lazyAssembliesToEmbedTypesFrom.IsDefault) 147Debug.Assert(!_lazyAssembliesToEmbedTypesFrom.IsDefault); 415if (_locations.IsDefault)
Symbols\Source\SourceNamedTypeSymbol.cs (7)
276if (_typeParameterInfo.LazyTypeParameterConstraintTypes.IsDefault) 290Debug.Assert(!_typeParameterInfo.LazyTypeParameterConstraintTypes.IsDefault); 305if (_typeParameterInfo.LazyTypeParameterConstraintKinds.IsDefault) 312Debug.Assert(!_typeParameterInfo.LazyTypeParameterConstraintKinds.IsDefault); 751if (_typeParameterInfo.LazyTypeParameters.IsDefault) 1589Debug.Assert(!boundAttributes.IsDefault); 1590Debug.Assert(!allAttributeSyntaxNodes.IsDefault);
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
68if (_lazyInterfaces.IsDefault) 77if (ImmutableInterlocked.InterlockedCompareExchange(ref _lazyInterfaces, acyclicInterfaces, default(ImmutableArray<NamedTypeSymbol>)).IsDefault)
Symbols\Source\SourceNamedTypeSymbol_Extension.cs (1)
209if (typeArguments.IsDefault || typeArguments.Any(t => !t.HasType))
Symbols\Source\SourceNamespaceSymbol.cs (3)
91if (_locations.IsDefault) 138if (result.IsDefault) 180if (_lazyTypeMembersUnordered.IsDefault)
Symbols\Source\SourceOrdinaryMethodOrUserDefinedOperatorSymbol.cs (4)
94Debug.Assert(_lazyExplicitInterfaceImplementations.IsDefault); 132Debug.Assert(_lazyExplicitInterfaceImplementations.IsDefault); 143Debug.Assert(_lazyExplicitInterfaceImplementations.IsDefault); 163if (!_lazyParameters.IsDefault)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (5)
193var asValueType = args.declaredConstraints.IsDefault || 646if (!declaredConstraints.IsDefault && overriddenOrExplicitlyImplementedMethod is object) 1048Debug.Assert(!_typeParameterInfo.LazyTypeParameters.IsDefault); 1055if (_typeParameterInfo.LazyTypeParameterConstraintTypes.IsDefault) 1085if (_typeParameterInfo.LazyTypeParameterConstraintKinds.IsDefault)
Symbols\Source\SourceParameterSymbol.cs (1)
59Debug.Assert(!inModifiers.IsDefault);
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
610if (_lazyExplicitInterfaceImplementations.IsDefault)
Symbols\Source\SourcePropertySymbolBase.cs (2)
1707Debug.Assert(!boundAttributes.IsDefault); 1708Debug.Assert(!allAttributeSyntaxNodes.IsDefault);
Symbols\Source\SynthesizedAttributeData.cs (2)
37Debug.Assert(!arguments.IsDefault); 38Debug.Assert(!namedArguments.IsDefault); // Frequently empty though.
Symbols\Source\TypeParameterConstraintClause.cs (1)
85Debug.Assert(!constraintTypes.IsDefault);
Symbols\SubstitutedEventSymbol.cs (1)
100if (_lazyExplicitInterfaceImplementations.IsDefault)
Symbols\SubstitutedMethodSymbol.cs (3)
103if (!RoslynImmutableInterlocked.VolatileRead(ref _lazyTypeParameters).IsDefault) 253if (_lazyParameters.IsDefault) 276if (_lazyExplicitInterfaceImplementations.IsDefault)
Symbols\SubstitutedNamedTypeSymbol.cs (2)
104if (!RoslynImmutableInterlocked.VolatileRead(ref _lazyTypeParameters).IsDefault) 238if (!_lazyMembers.IsDefault)
Symbols\SubstitutedPropertySymbol.cs (2)
77if (_lazyParameters.IsDefault) 118if (_lazyExplicitInterfaceImplementations.IsDefault)
Symbols\Symbol_Attributes.cs (2)
315Debug.Assert(!attributesToBind.IsDefault); 322Debug.Assert(!binders.IsDefault);
Symbols\SymbolDistinguisher.cs (2)
87if (!_lazyDescriptions.IsDefault) return; 133if (!_lazyDescriptions.IsDefault) return;
Symbols\SymbolExtensions.cs (1)
683if (symbols.IsDefault)
Symbols\Synthesized\GeneratedNames.cs (1)
559if (checksumOpt.IsDefault)
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (8)
55Debug.Assert(!parameters.IsDefault); 56Debug.Assert(_parameters.IsDefault); 62Debug.Assert(!typeParameters.IsDefault); 63Debug.Assert(_typeParameters.IsDefault); 162RoslynDebug.Assert(!_typeParameters.IsDefault, $"Expected {nameof(SetTypeParameters)} prior to accessing this property."); 163if (_typeParameters.IsDefault) 176RoslynDebug.Assert(!_parameters.IsDefault, $"Expected {nameof(SetParameters)} prior to accessing this property."); 177if (_parameters.IsDefault)
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
360Debug.Assert(!refCustomModifiers.IsDefault);
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
398if (boundInitializersOpt.IsDefault)
Symbols\Tuples\TupleFieldSymbol.cs (1)
57Debug.Assert(!locations.IsDefault);
Symbols\Tuples\TupleTypeSymbol.cs (25)
42Debug.Assert(elementNames.IsDefault || elementTypesWithAnnotations.Length == elementNames.Length); 166Debug.Assert(newElementNames.IsDefault || this.TupleElementTypesWithAnnotations.Length == newElementNames.Length); 181if (newData.ElementNames.IsDefault) 280if (sourceNames.IsDefault) 286bool noInferredNames = inferredNames.IsDefault; 289bool allMissing = destinationNames.IsDefault; 624var providedName = elementNames.IsDefault ? null : elementNames[tupleFieldIndex]; 671var isError = errorPositions.IsDefault ? false : errorPositions[tupleFieldIndex]; 746var providedName = elementNames.IsDefault ? null : elementNames[i]; 747var location = elementLocations.IsDefault ? null : elementLocations[i]; 843if (elementLocations.IsDefault) 859if (names1.IsDefault || names2.IsDefault) 874bool namesUnchanged = mergedNames.IsDefault ? TupleElementNames.IsDefault : mergedNames.SequenceEqual(TupleElementNames); 923Debug.Assert(underlyingType.TupleElementNames.IsDefault); 941if (other is null && this.ElementNames.IsDefault && this.ElementLocations.IsDefault && this.ErrorPositions.IsDefault) 953if (one.IsDefault && other.IsDefault) 958if (one.IsDefault != other.IsDefault) 970if (_lazyElementTypes.IsDefault) 1002if (_lazyDefaultElementFields.IsDefault)
Symbols\TypeMap.cs (1)
37return typesOpt.IsDefault ? default : typesOpt.SelectAsArray(AsTypeSymbol);
Symbols\TypeParameterBounds.cs (2)
29Debug.Assert(!constraintTypes.IsDefault); 30Debug.Assert(!interfaces.IsDefault);
Symbols\TypeSymbol.cs (2)
89return allInterfaces.IsDefault && 325if (info.allInterfaces.IsDefault)
Symbols\TypeSymbolExtensions.cs (1)
1274type.VisitType((TypeSymbol t, object? _1, bool _2) => !t.TupleElementNames.IsDefault, null) is object;
Symbols\TypeWithAnnotations.cs (3)
674else if (transforms.IsDefault) 888Debug.Assert(!customModifiers.IsDefault); 964Debug.Assert(!customModifiers.IsDefault);
Syntax\CSharpSyntaxTree.cs (1)
202if (_preprocessorStateChangePositions.IsDefault)
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForArrayDiagnosticAnalyzer.cs (2)
55if (matches.IsDefault) 83if (matches.IsDefault)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocDiagnosticAnalyzer.cs (1)
97if (matches.IsDefault)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForArrayCodeFixProvider.cs (1)
67if (matches.IsDefault)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocCodeFixProvider.cs (1)
43if (matches.IsDefault)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (12)
CodeGen\CodeGenTupleTest.cs (12)
5822Assert.True(GetTupleElementNames(tupleWithoutNames).IsDefault); 5860Assert.True(GetTupleElementNames(tupleWithoutNames).IsDefault); 5880Assert.True(GetTupleElementNames(tupleWithoutNames).IsDefault); 5957Assert.True(GetTupleElementNames(tupleWithoutNames).IsDefault); 6037Assert.True(GetTupleElementNames(tuple8WithoutNames).IsDefault); 6063Assert.True(GetTupleElementNames(tuple8WithoutNames).IsDefault); 6114Assert.True(GetTupleElementNames(tuple9WithoutNames).IsDefault); 6371Assert.True(GetTupleElementNames(tupleWithoutNames).IsDefault); 6396Assert.True(GetTupleElementNames(tuple).IsDefault); 6419Assert.True(GetTupleElementNames(tupleWithoutNames).IsDefault); 6469Assert.True(GetTupleElementNames(tuple8WithoutNames).IsDefault); 6510Assert.True(GetTupleElementNames(tuple9WithoutNames).IsDefault);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\ExtensionTests.cs (1)
82Assert.True(symbol.TupleElements.IsDefault);
Microsoft.CodeAnalysis.CSharp.Features (8)
CodeRefactorings\SyncNamespace\CSharpChangeNamespaceService.cs (2)
243Debug.Assert(!declaredNamespaceParts.IsDefault && !targetNamespaceParts.IsDefault);
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (1)
203var rewrittenPattern = namesOpt.IsDefault
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForArrayDiagnosticAnalyzer.cs (2)
55if (matches.IsDefault) 83if (matches.IsDefault)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocDiagnosticAnalyzer.cs (1)
97if (matches.IsDefault)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForArrayCodeFixProvider.cs (1)
67if (matches.IsDefault)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocCodeFixProvider.cs (1)
43if (matches.IsDefault)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
SourceGeneration\GeneratorDriverTests.cs (3)
567Assert.True(result.Diagnostics.IsDefault); 568Assert.True(result.GeneratedSources.IsDefault); 4527Assert.True(result.Results[1].GeneratedSources.IsDefault);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\UsedAssembliesTests.cs (1)
312if (result.IsDefault)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
Extensions.cs (2)
541return tc.IsDefault; 543else if (tc.IsDefault)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConstructorGenerator.cs (1)
94var arguments = !thisArguments.IsDefault ? thisArguments : CodeGenerationConstructorInfo.GetBaseConstructorArgumentsOpt(constructor);
Microsoft.CodeAnalysis.Debugging.Package (10)
CustomDebugInfoReader.cs (9)
362if (!groupSizes.IsDefault) 371if (!externAliasStrings.IsDefault) 389if (!externAliasStrings.IsDefault) 397Debug.Assert(!allModuleInfoImportStrings.IsDefault); 414if (groupSizes.IsDefault) 421Debug.Assert(!importStrings.IsDefault); 449if (externAliasStrings.IsDefault) 492Debug.Assert(!importStrings.IsDefault); 511Debug.Assert(!importStrings.IsDefault);
TupleElementNamesInfo.cs (1)
22Debug.Assert(!elementNames.IsDefault);
Microsoft.CodeAnalysis.EditorFeatures (2)
Suggestions\SuggestedActionWithNestedFlavors.cs (2)
72if (_nestedFlavors.IsDefault) 86Contract.ThrowIfTrue(_nestedFlavors.IsDefault);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
TextEditorFactoryExtensions.cs (1)
25if (roles.IsDefault)
Workspaces\EditorTestHostDocument.cs (1)
75_roles = roles.IsDefault ? s_defaultRoles : roles;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
CodeGeneration\CodeGenerationTests.cs (1)
706=> parameters.IsDefault
Utilities\StackFrameUtils.cs (4)
92if (triviaArray.IsDefault) 124if (expected.IsDefault) 126Assert.True(actual.IsDefault, diffMessage); 130Assert.False(actual.IsDefault, diffMessage);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Diagnostics\AbstractCrossLanguageUserDiagnosticTest.vb (1)
78If Not glyphTags.IsDefault Then
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (16)
DkmUtilities.cs (1)
196if (!previousMetadataBlocks.IsDefault && index < previousMetadataBlocks.Length)
EvaluationContextBase.cs (2)
65if (!missingAssemblyIdentities.IsDefault) 71if (missingAssemblyIdentities.IsDefault)
MetadataContext.cs (1)
23=> !MetadataBlocks.IsDefault &&
PDB\MethodDebugInfo.cs (2)
61RoslynDebug.Assert(!importRecordGroups.IsDefault); 62RoslynDebug.Assert(!externAliasRecords.IsDefault);
PDB\MethodDebugInfo.Native.cs (8)
146if (!customDebugInfoRecord.IsDefault) 298Debug.Assert(importStringGroups.IsDefault == externAliasStrings.IsDefault); 302if (!importStringGroups.IsDefault) 322if (!externAliasStrings.IsDefault) 392if (record.IsDefault) 480if (record.IsDefault) 531if (importStrings.IsDefault)
PDB\MethodDebugInfo.Portable.cs (2)
185if (!dynamicFlags.IsDefault) 192if (!tupleElementNames.IsDefault)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (4)
MetadataResolver.cs (2)
216if (methodParameters.IsDefault) 237if (propertyParameters.IsDefault)
Name.cs (1)
32Debug.Assert(!typeParameters.IsDefault);
TypeSignature.cs (1)
34Debug.Assert(!typeArguments.IsDefault);
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (1)
Module.cs (1)
22_reader = metadata.IsDefault ? null : new PEReader(metadata);
Microsoft.CodeAnalysis.Extensions.Package (18)
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
26if (numerals.IsDefault)
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
79if (!values.IsDefault)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (11)
551Debug.Assert(!array.IsDefault); 757if (array1.IsDefault) 759return array2.IsDefault; 761else if (array2.IsDefault) 798return array.IsDefault ? ImmutableArray<T>.Empty : array; 807null or { IsDefault: true } => ImmutableArray<T>.Empty, 817Debug.Assert(!array.IsDefault); 844if (!array.IsDefault && array.Length >= 2) 1222if (!membersAsNamedTypes.IsDefault) 1251if (array1.IsDefault) 1256if (array2.IsDefault)
src\Dependencies\Collections\OneOrMany.cs (3)
41if (many.IsDefault) 63=> _many.IsDefault; 66=> _one == null && _many.IsDefault;
Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (2)
78Debug.Assert(!x.IsDefault && !y.IsDefault);
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Internal\PickMembers\OmniSharpPickMembersService.cs (1)
29var result = _omniSharpPickMembersService.PickMembers(title, members, options.IsDefault ? default : options.SelectAsArray(o => new OmniSharpPickMembersOption(o)), selectAll: true);
Microsoft.CodeAnalysis.Features (82)
CodeFixes\Service\CodeFixService.cs (2)
816lazyConfigurationProviders.Value.IsDefault) 868if (ids.IsDefault)
CodeFixes\Suppression\AbstractSuppressionBatchFixAllProvider.cs (1)
116Debug.Assert(!diagnostics.IsDefault);
CodeFixes\Suppression\WrapperCodeFixProvider.cs (1)
42if (!suppressionFixes.IsDefault)
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (2)
122return !applicableContainers.IsDefault; 203if (containersFromAllDocuments.IsDefault)
Completion\CommonCompletionItem.cs (1)
45if (!description.IsDefault && description.Length > 0)
Completion\Providers\AbstractAggregateEmbeddedLanguageCompletionProvider.cs (2)
60if (_languageProviders.IsDefault) 114if (_languageProviders.IsDefault)
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (1)
234if (!symbols.IsDefault)
Completion\Providers\SymbolCompletionItem.cs (1)
49if (!properties.IsDefault)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (3)
113var labelCount = sections.Sum(section => section.Labels.IsDefault ? 1 : section.Labels.Length); 126if (!sections.Any(static section => section.Labels.IsDefault)) 160if (section.Labels.IsDefault)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
63var sectionNode = section.Labels.IsDefault
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (2)
369Debug.Assert(documentToUpdate.NodesToUpdate.IsDefault || 374var nodesToUpdate = documentToUpdate.NodesToUpdate.IsDefault
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (5)
516Contract.ThrowIfTrue(newActiveStatementSpans.IsDefault); 836Debug.Assert(!newActiveStatementSpans.IsDefault); 847Contract.ThrowIfFalse(newExceptionRegions[i].IsDefault); 1002Debug.Assert(!newActiveStatementSpans.IsDefault); 6734TypedConstantKind.Array => x.Values.IsDefault || x.Values.SequenceEqual(y.Values, Instance),
EditAndContinue\ActiveStatementExceptionRegions.cs (1)
23Contract.ThrowIfTrue(spans.IsDefault);
EditAndContinue\DocumentAnalysisResults.cs (13)
122Debug.Assert(!rudeEdits.IsDefault); 123Debug.Assert(hasBlockingRudeEdits == (!rudeEdits.IsDefault && rudeEdits.HasBlockingRudeEdits())); 127Debug.Assert(activeStatementsOpt.IsDefault); 128Debug.Assert(semanticEditsOpt.IsDefault); 129Debug.Assert(exceptionRegionsOpt.IsDefault); 130Debug.Assert(lineEditsOpt.IsDefault); 136Debug.Assert(!activeStatementsOpt.IsDefault); 141Debug.Assert(semanticEditsOpt.IsDefault); 142Debug.Assert(exceptionRegionsOpt.IsDefault); 143Debug.Assert(lineEditsOpt.IsDefault); 148Debug.Assert(!semanticEditsOpt.IsDefault); 149Debug.Assert(!exceptionRegionsOpt.IsDefault); 150Debug.Assert(!lineEditsOpt.IsDefault);
EditAndContinue\EditSession.cs (1)
675Contract.ThrowIfTrue(analysis.ActiveStatements.IsDefault);
EditAndContinue\ProjectChanges.cs (3)
46Debug.Assert(!semanticEdits.IsDefault); 47Debug.Assert(!lineChanges.IsDefault); 48Debug.Assert(!activeStatementChanges.IsDefault);
EmbeddedLanguages\StackFrame\StackFrameNodeDefinitions.cs (1)
352Debug.Assert(!commaTokens.IsDefault);
EmbeddedLanguages\StackFrame\StackFrameParser.cs (1)
479if (!success || arrayIdentifiers.IsDefault)
ExternalAccess\VSTypeScript\VSTypeScriptNavigableItemWrapper.cs (1)
31=> _navigableItem.ChildItems.IsDefault
ExtractMethod\OperationStatus.cs (1)
19Contract.ThrowIfTrue(reasons.IsDefault);
FindUsages\DefinitionItem.cs (2)
232Contract.ThrowIfTrue(sourceSpans.IsDefault); 233Contract.ThrowIfTrue(metadataLocations.IsDefault);
QuickInfo\QuickInfoItem.cs (3)
43Tags = tags.IsDefault ? [] : tags; 44Sections = sections.IsDefault ? [] : sections; 45RelatedSpans = relatedSpans.IsDefault ? [] : relatedSpans;
QuickInfo\QuickInfoServiceWithProviders.cs (1)
32if (_providers.IsDefault)
Shared\Extensions\ISymbolExtensions_Sorting.cs (5)
60if (xParameters.IsDefault || yParameters.IsDefault) 62return xParameters.IsDefault && yParameters.IsDefault ? 0 : 63xParameters.IsDefault ? -1 : 1;
SignatureHelp\AbstractSignatureHelpProvider.cs (2)
99if (parameterNames.IsDefault) 333var updatedDescription = item.DescriptionParts.IsDefault
Snippets\AbstractSnippetService.cs (1)
55if (_snippetProviders.IsDefault)
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerAnalyzer.cs (2)
75if (preMatches.IsDefault || postMatches.IsDefault)
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (3)
209if (matches.IsDefault) 227if (preMatches.IsDefault || postMatches.IsDefault)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (2)
109ParameterTypes = ParameterTypes.IsDefault ? GetParameterTypes(cancellationToken) : ParameterTypes; 274=> _arguments.IsDefault || index >= _arguments.Length ? string.Empty : _arguments[index].Name;
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateDeconstructMethodService.State.cs (1)
66if (parameters.IsDefault)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.MethodSignatureInfo.cs (1)
41=> _parameterNames.IsDefault
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
37return _typeParameters.IsDefault
src\Analyzers\Core\CodeFixes\UseCollectionInitializer\AbstractUseCollectionInitializerCodeFixProvider.cs (2)
82if (preMatches.IsDefault || postMatches.IsDefault)
src\Compilers\Core\AnalyzerDriver\DeclarationInfo.cs (1)
18Debug.Assert(!executableCodeBlocks.IsDefault);
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (9)
362if (!groupSizes.IsDefault) 371if (!externAliasStrings.IsDefault) 389if (!externAliasStrings.IsDefault) 397Debug.Assert(!allModuleInfoImportStrings.IsDefault); 414if (groupSizes.IsDefault) 421Debug.Assert(!importStrings.IsDefault); 449if (externAliasStrings.IsDefault) 492Debug.Assert(!importStrings.IsDefault); 511Debug.Assert(!importStrings.IsDefault);
src\Dependencies\CodeAnalysis.Debugging\TupleElementNamesInfo.cs (1)
22Debug.Assert(!elementNames.IsDefault);
UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
377if (!formattingRules.IsDefault)
Microsoft.CodeAnalysis.Features.Test.Utilities (4)
EditAndContinue\EditAndContinueTestVerifier.cs (3)
108if (!actualNewExceptionRegions.IsDefault) 200if (!expectedResult.SemanticEdits.IsDefault) 240else if (!expectedResult.LineEdits.IsDefault)
Snippets\AbstractSnippetProviderTests.cs (1)
95if (placeholderLocationsArray[i].IsDefault)
Microsoft.CodeAnalysis.InteractiveHost (19)
Interactive\Core\InteractiveHost.cs (2)
403Contract.ThrowIfTrue(referenceSearchPaths.IsDefault); 404Contract.ThrowIfTrue(sourceSearchPaths.IsDefault);
Interactive\Core\InteractiveHost.Service.cs (1)
78Debug.Assert(!sourceSearchPaths.IsDefault);
Interactive\Core\InteractiveHostPlatformInfo.cs (1)
36Debug.Assert(!platformAssemblyPaths.IsDefault);
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
79if (!values.IsDefault)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (11)
551Debug.Assert(!array.IsDefault); 757if (array1.IsDefault) 759return array2.IsDefault; 761else if (array2.IsDefault) 798return array.IsDefault ? ImmutableArray<T>.Empty : array; 807null or { IsDefault: true } => ImmutableArray<T>.Empty, 817Debug.Assert(!array.IsDefault); 844if (!array.IsDefault && array.Length >= 2) 1222if (!membersAsNamedTypes.IsDefault) 1251if (array1.IsDefault) 1256if (array2.IsDefault)
src\Dependencies\Collections\OneOrMany.cs (3)
41if (many.IsDefault) 63=> _many.IsDefault; 66=> _one == null && _many.IsDefault;
Microsoft.CodeAnalysis.PublicApiAnalyzers (16)
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
79if (!values.IsDefault)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (11)
551Debug.Assert(!array.IsDefault); 757if (array1.IsDefault) 759return array2.IsDefault; 761else if (array2.IsDefault) 798return array.IsDefault ? ImmutableArray<T>.Empty : array; 807null or { IsDefault: true } => ImmutableArray<T>.Empty, 817Debug.Assert(!array.IsDefault); 844if (!array.IsDefault && array.Length >= 2) 1222if (!membersAsNamedTypes.IsDefault) 1251if (array1.IsDefault) 1256if (array2.IsDefault)
src\Dependencies\Collections\OneOrMany.cs (3)
41if (many.IsDefault) 63=> _many.IsDefault; 66=> _one == null && _many.IsDefault;
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
238if (words.IsDefault)
Microsoft.CodeAnalysis.Remote.ServiceHub (4)
Services\DependentTypeFinder\RemoteDependentTypeFinderService.cs (1)
42var projects = projectIdsOpt.IsDefault ? null : projectIdsOpt.Select(id => solution.GetRequiredProject(id)).ToImmutableHashSet();
Services\SemanticClassification\RemoteSemanticClassificationService.Caching.cs (2)
91if (classifiedSpans.IsDefault) 234if (classifiedSpans.IsDefault)
Services\SymbolFinder\RemoteSymbolFinderService.cs (1)
60var documents = documentArgs.IsDefault ? null :
Microsoft.CodeAnalysis.ResxSourceGenerator (16)
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
79if (!values.IsDefault)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (11)
551Debug.Assert(!array.IsDefault); 757if (array1.IsDefault) 759return array2.IsDefault; 761else if (array2.IsDefault) 798return array.IsDefault ? ImmutableArray<T>.Empty : array; 807null or { IsDefault: true } => ImmutableArray<T>.Empty, 817Debug.Assert(!array.IsDefault); 844if (!array.IsDefault && array.Length >= 2) 1222if (!membersAsNamedTypes.IsDefault) 1251if (array1.IsDefault) 1256if (array2.IsDefault)
src\Dependencies\Collections\OneOrMany.cs (3)
41if (many.IsDefault) 63=> _many.IsDefault; 66=> _one == null && _many.IsDefault;
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
238if (words.IsDefault)
Microsoft.CodeAnalysis.Scripting (13)
CompilationErrorException.cs (1)
25if (diagnostics.IsDefault)
Hosting\Resolvers\RuntimeMetadataReferenceResolver.cs (1)
150Debug.Assert(!paths.IsDefault);
Script.cs (4)
284if (resolved.IsDefault) 401if (_lazyPrecedingExecutors.IsDefault) 404Debug.Assert(!preceding.IsDefault); 564if (precedingExecutors.IsDefault)
ScriptOptions.cs (2)
161Debug.Assert(!references.IsDefault); 162Debug.Assert(!namespaces.IsDefault);
src\Compilers\Shared\GlobalAssemblyCacheHelpers\ClrGlobalAssemblyCache.cs (1)
188if (!architectureFilter.IsDefault)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\GacFileResolver.cs (1)
64if (architectures.IsDefault)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\GlobalAssemblyCacheLocation.cs (1)
36if (s_rootLocations.IsDefault)
Utilities\ParameterValidationHelpers.cs (2)
19if (items.IsDefault) 78if (items == null || items is ImmutableArray<T> && ((ImmutableArray<T>)items).IsDefault)
Microsoft.CodeAnalysis.Test.Utilities (12)
AssemblyLoadTestFixture.cs (1)
525if (!publicKeyOpt.IsDefault)
Assert\AssertEx.cs (2)
172if (actual == null || expected.IsDefault) 174Assert.True((actual == null) == expected.IsDefault, message);
Compilation\OperationTreeVerifier.cs (2)
354var suffix = logNullForDefault && list.IsDefault ? ": null" : "(0)"; 869if (argumentRefKinds.IsDefault)
CompilationVerifier.EmitOutput.cs (1)
23if (pdb.IsDefault)
Metadata\ILBuilderVisualizer.cs (1)
156if (!ilStream.IsDefault)
Platform\Desktop\DesktopRuntimeUtil.cs (1)
81Debug.Assert(!rawAssembly.IsDefault);
Platform\Desktop\Extensions.cs (2)
34info.AddValue(name, value.IsDefault ? null : ImmutableCollectionsMarshal.AsArray(value), typeof(T[])); 48info.AddValue(name, value.IsDefault ? null : ImmutableCollectionsMarshal.AsArray(value), typeof(byte[]));
Platform\Desktop\RuntimeAssemblyManager.cs (1)
338Debug.Assert(!rawModule.IsDefault);
TargetFrameworkUtil.cs (1)
128if (s_references.IsDefault)
Microsoft.CodeAnalysis.Threading.Package (15)
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
79if (!values.IsDefault)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (11)
551Debug.Assert(!array.IsDefault); 757if (array1.IsDefault) 759return array2.IsDefault; 761else if (array2.IsDefault) 798return array.IsDefault ? ImmutableArray<T>.Empty : array; 807null or { IsDefault: true } => ImmutableArray<T>.Empty, 817Debug.Assert(!array.IsDefault); 844if (!array.IsDefault && array.Length >= 2) 1222if (!membersAsNamedTypes.IsDefault) 1251if (array1.IsDefault) 1256if (array2.IsDefault)
src\Dependencies\Collections\OneOrMany.cs (3)
41if (many.IsDefault) 63=> _many.IsDefault; 66=> _one == null && _many.IsDefault;
Microsoft.CodeAnalysis.UnitTests (2)
Collections\Extensions\ImmutableArrayExtensionsTests.cs (1)
54Assert.True(nullOrEmpty.IsDefault);
MetadataReferences\AssemblyIdentityExtensions.cs (1)
36if (!identity.PublicKeyToken.IsDefault)
Microsoft.CodeAnalysis.VisualBasic (429)
Analysis\FlowAnalysis\AbstractFlowPass.vb (3)
1253If parameters.IsDefault Then 1974Debug.Assert(Not node.ResourceList.IsDefault OrElse node.ResourceExpressionOpt IsNot Nothing) 2310If node.InitializerOpt IsNot Nothing AndAlso Not node.InitializerOpt.Initializers.IsDefault Then
Analysis\FlowAnalysis\ControlFlowAnalysis.vb (2)
41If _entryPoints.IsDefault Then 56If _exitPoints.IsDefault Then
Analysis\FlowAnalysis\DataFlowPass.Symbols.vb (1)
49Debug.Assert(Not locals.IsDefault AndAlso locals.Length > 1)
Analysis\FlowAnalysis\VisualBasicDataFlowAnalysis.vb (12)
49If _variablesDeclared.IsDefault Then 74If _dataFlowsIn.IsDefault Then 100If _definitelyAssignedOnExit.IsDefault Then 124If _dataFlowsOut.IsDefault Then 138If _alwaysAssigned.IsDefault Then 152If _readInside.IsDefault Then 164If _writtenInside.IsDefault Then 176If _readOutside.IsDefault Then 188If _writtenOutside.IsDefault Then 239If Me._captured.IsDefault Then 249If Me._capturedInside.IsDefault Then 259If Me._capturedOutside.IsDefault Then
Analysis\ForLoopVerification.vb (1)
98If Not boundForStatement.NextVariablesOpt.IsDefault Then
Analysis\InitializerRewriter.vb (1)
45If processedInitializers.InitializerStatements.IsDefault Then
Binding\Binder_Expressions.vb (1)
3932If Not argumentNames.IsDefault AndAlso argumentNames.Length > 0 Then
Binding\Binder_Initializers.vb (3)
35Debug.Assert(Not value.IsDefault) 36Debug.Assert(_loweredInitializers.IsDefault) 50Debug.Assert(Not boundInitializers.IsDefault)
Binding\Binder_Invocation.vb (9)
848Debug.Assert(Not boundArguments.IsDefault) 1366If boundArguments.IsDefault Then 1452If typeArguments.IsDefault Then 1838If arguments.IsDefault Then 1996If arguments.IsDefault Then 2014If Not argumentNames.IsDefault AndAlso argumentNames.Length = 0 Then 2042If Not argumentNames.IsDefault AndAlso argumentNames(i) IsNot Nothing Then 2082If Not argumentNames.IsDefault AndAlso argumentNames(i) IsNot Nothing Then 2634If (arguments.IsDefault) Then
Binding\Binder_Latebound.vb (2)
235Debug.Assert(Not arguments.IsDefault) 237If argumentNames.IsDefault OrElse argumentNames.Length = 0 Then
Binding\Binder_Query.vb (14)
275Debug.Assert(Not source.Binders.IsDefault AndAlso source.Binders.Length = 1 AndAlso source.Binders(0) IsNot Nothing) 565Debug.Assert(Not result.Binders.IsDefault AndAlso result.Binders.Length = 2 AndAlso 1856Debug.Assert(itemsRangeVariables.IsDefault) 1890Debug.Assert(Not itemsRangeVariables.IsDefault) 1903Debug.Assert(keysRangeVariables.IsDefault) 2109Debug.Assert(intoRangeVariables.IsDefault) 2690Debug.Assert(declaredRangeVariables.IsDefault) 2737Debug.Assert(selectorSyntax IsNot Nothing AndAlso declaredRangeVariables.IsDefault) 2800Debug.Assert(Not declaredRangeVariables.IsDefault AndAlso selectorSyntax IsNot Nothing) 2935Debug.Assert(declaredRangeVariables.IsDefault) 2969Debug.Assert(Not declaredRangeVariables.IsDefault) 2987Debug.Assert(declaredRangeVariables.IsDefault) 3118Debug.Assert(joinSelectorDeclaredRangeVariables.IsDefault) 3775Debug.Assert(declaredRangeVariables.IsDefault)
Binding\Binder_Symbols.vb (1)
108Debug.Assert(Not typeArguments.IsDefault)
Binding\Binder_WithBlock.vb (1)
111Debug.Assert(Not draftInitializers.IsDefault)
Binding\Binder_XmlLiterals.vb (4)
285If inScopeXmlNamespaces.IsDefault Then 1386Debug.Assert(isRoot = Not importedNamespaces.IsDefault) 1391Debug.Assert(Not sideEffects.IsDefault) 1942If _lazyParameters.IsDefault Then
Binding\CatchBlockBinder.vb (1)
32If _locals.IsDefault Then
Binding\ExecutableCodeBinder.vb (1)
41If _labels.IsDefault Then
Binding\ForOrForEachBlockBinder.vb (1)
32If _locals.IsDefault Then
Binding\MemberSemanticModel.vb (26)
1428Debug.Assert(Not binders.IsDefault OrElse Not ShouldHaveFound(aggregate, guard:=True)) 1429Debug.Assert(binders.IsDefault OrElse (binders.Length > 0 AndAlso binders.Length < 3)) 1449Debug.Assert(Not binders.IsDefault OrElse Not ShouldHaveFound(aggregate, guard:=True)) 1450Debug.Assert(binders.IsDefault OrElse (binders.Length > 0 AndAlso binders.Length < 3 AndAlso binders(0) IsNot Nothing)) 1452If Not binders.IsDefault AndAlso binders.Length = 2 Then 1470Debug.Assert(Not binders.IsDefault OrElse Not ShouldHaveFound(join, guard:=True)) 1471Debug.Assert(binders.IsDefault OrElse binders.Length = 3) 1473If Not binders.IsDefault AndAlso binders.Length = 3 Then 1497Debug.Assert(Not binders.IsDefault OrElse Not ShouldHaveFound(join, guard:=True)) 1498Debug.Assert(binders.IsDefault OrElse (binders.Length > 1 AndAlso binders.Length < 4 AndAlso binders(0) IsNot Nothing)) 1538Debug.Assert(Not binders.IsDefault OrElse Not ShouldHaveFound(item, guard:=True)) 1539Debug.Assert(binders.IsDefault OrElse (binders.Length > 0 AndAlso binders.Length < 3 AndAlso binders(0) IsNot Nothing)) 1563Debug.Assert(Not binders.IsDefault OrElse Not ShouldHaveFound([let], guard:=True)) 1564Debug.Assert(binders.IsDefault OrElse (binders.Length = 1 AndAlso binders(0) IsNot Nothing)) 1586Debug.Assert(Not binders.IsDefault OrElse Not ShouldHaveFound(groupBy, guard:=True)) 1587Debug.Assert(binders.IsDefault OrElse (binders.Length = 2 OrElse binders.Length = 3)) 1624Debug.Assert(Not binders.IsDefault OrElse Not ShouldHaveFound(func, guard:=True)) 1625Debug.Assert(binders.IsDefault OrElse (binders.Length = 1 AndAlso binders(0) IsNot Nothing)) 1643Debug.Assert(Not binders.IsDefault OrElse Not ShouldHaveFound(operatorSyntax, guard:=True)) 1644Debug.Assert(binders.IsDefault OrElse (binders.Length = 1 AndAlso binders(0) IsNot Nothing)) 1841If Not bound.IsDefault Then 1857If bound.IsDefault Then 1862If Not bound.IsDefault Then 1882If bound.IsDefault Then 1890If Not bound.IsDefault Then 2062If boundNodes.IsDefault Then
Binding\StatementListBinder.vb (1)
32If _locals.IsDefault Then
Binding\UsingBlockBinder.vb (1)
32If _locals.IsDefault Then
BoundTree\BoundAssignmentOperator.vb (1)
75If Not invocation.ArgumentsOpt.IsDefault Then
BoundTree\BoundNodeExtensions.vb (1)
21If nodeArray.IsDefault Then
BoundTree\BoundRedimClause.vb (1)
19If Not invocation.ArgumentsOpt.IsDefault Then
BoundTree\BoundTreeRewriter.vb (1)
22Dim n As Integer = If(list.IsDefault, 0, list.Length)
BoundTree\BoundTreeWalker.vb (1)
19If Not list.IsDefault Then
BoundTree\UnboundLambda.vb (2)
138Debug.Assert(Not parameterTypes.IsDefault) 148Debug.Assert(Not params.IsDefault)
CodeGen\EmitStatement.vb (1)
117Debug.Assert(Not statement.CatchBlocks.IsDefault)
CodeGen\Optimizer\StackScheduler.Analyzer.vb (4)
362If Not sideeffects.IsDefault Then 702Debug.Assert(Not arguments.IsDefault) 703Debug.Assert(Not parameters.IsDefault) 1124If Not initializers.IsDefault Then
CommandLine\VisualBasicCompiler.vb (1)
34Debug.Assert(Not _additionalTextFiles.IsDefault, "GetAdditionalTextFiles called before ResolveAdditionalFilesFromArguments")
Compilation\DocumentationComments\DocumentationCommentCompiler.Common.vb (1)
430If Not bindResult.IsDefault AndAlso bindResult.Length = 1 Then
Compilation\MethodCompiler.vb (1)
310Debug.Assert(Not entryPointAndDiagnostics.Diagnostics.IsDefault)
Compilation\TypeCompilationState.vb (1)
37Debug.Assert(Not stateMachineStatesDebugInfo.IsDefault)
Compilation\VisualBasicCompilation.vb (7)
891If _lazyAllSyntaxTrees.IsDefault Then 2220If _lazyClsComplianceDiagnostics.IsDefault OrElse _lazyClsComplianceDependencies.IsDefault Then 2228Debug.Assert(Not _lazyClsComplianceDependencies.IsDefault) 2229Debug.Assert(Not _lazyClsComplianceDiagnostics.IsDefault) 2946Dim loc = If(memberLocations.IsDefault, Location.None, memberLocations(i)) 2947Dim isReadOnly = memberIsReadOnly.IsDefault OrElse memberIsReadOnly(i)
Declarations\DeclarationTable.vb (1)
103If _lazyAllRootDeclarations.IsDefault Then
Declarations\MergedNamespaceDeclaration.vb (1)
153If Me._children.IsDefault Then
Declarations\RootSingleNamespaceDeclaration.vb (1)
33Debug.Assert(Not referenceDirectives.IsDefault)
Emit\AttributeDataAdapter.vb (1)
81Debug.Assert(Not argument.Values.IsDefault)
Emit\PEAssemblyBuilder.vb (1)
81If lazyFiles.IsDefault Then
Emit\PEModuleBuilder.vb (3)
101Debug.Assert(Not _lazyTranslatedImports.IsDefault) 106If _lazyTranslatedImports.IsDefault Then 388If _lazyExportedTypes.IsDefault Then
Generated\BoundNodes.xml.Generated.vb (66)
225Debug.Assert(Not (arguments.IsDefault), "Field 'arguments' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 233Debug.Assert(Not (arguments.IsDefault), "Field 'arguments' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 573Debug.Assert(Not (symbols.IsDefault), "Field 'symbols' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 574Debug.Assert(Not (childBoundNodes.IsDefault), "Field 'childBoundNodes' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 629Debug.Assert(Not (childBoundNodes.IsDefault), "Field 'childBoundNodes' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 745Debug.Assert(Not (indices.IsDefault), "Field 'indices' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 2207Debug.Assert(Not (elementPlaceholders.IsDefault), "Field 'elementPlaceholders' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 2208Debug.Assert(Not (convertedElements.IsDefault), "Field 'convertedElements' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 2669Debug.Assert(Not (methods.IsDefault), "Field 'methods' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 2727Debug.Assert(Not (properties.IsDefault), "Field 'properties' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 2891Debug.Assert(Not (clauses.IsDefault), "Field 'clauses' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 2926Debug.Assert(Not (indices.IsDefault), "Field 'indices' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 2989Debug.Assert(Not (clauses.IsDefault), "Field 'clauses' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 3024Debug.Assert(Not (arguments.IsDefault), "Field 'arguments' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 3120Debug.Assert(Not (constructorArguments.IsDefault), "Field 'constructorArguments' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 3121Debug.Assert(Not (namedArguments.IsDefault), "Field 'namedArguments' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 3374Debug.Assert(Not (arguments.IsDefault), "Field 'arguments' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 3394Debug.Assert(Not (arguments.IsDefault), "Field 'arguments' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 3444Debug.Assert(Not (arguments.IsDefault), "Field 'arguments' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 3504Debug.Assert(Not (arguments.IsDefault), "Field 'arguments' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 3602Debug.Assert(Not (declarations.IsDefault), "Field 'declarations' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 3603Debug.Assert(Not (arguments.IsDefault), "Field 'arguments' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 3747Debug.Assert(Not (initializers.IsDefault), "Field 'initializers' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 3775Debug.Assert(Not (initializers.IsDefault), "Field 'initializers' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 3814Debug.Assert(Not (initializers.IsDefault), "Field 'initializers' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 3943Debug.Assert(Not (bounds.IsDefault), "Field 'bounds' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 4016Debug.Assert(Not (bounds.IsDefault), "Field 'bounds' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 4092Debug.Assert(Not (initializers.IsDefault), "Field 'initializers' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 4199Debug.Assert(Not (arguments.IsDefault), "Field 'arguments' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 4338Debug.Assert(Not (locals.IsDefault), "Field 'locals' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 4339Debug.Assert(Not (statements.IsDefault), "Field 'statements' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 4389Debug.Assert(Not (fields.IsDefault), "Field 'fields' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 4508Debug.Assert(Not (localDeclarations.IsDefault), "Field 'localDeclarations' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 4560Debug.Assert(Not (localDeclarations.IsDefault), "Field 'localDeclarations' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 4664Debug.Assert(Not (initializedFields.IsDefault), "Field 'initializedFields' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 4699Debug.Assert(Not (initializedProperties.IsDefault), "Field 'initializedProperties' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 4811Debug.Assert(Not (locals.IsDefault), "Field 'locals' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 4812Debug.Assert(Not (sideEffects.IsDefault), "Field 'sideEffects' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 4954Debug.Assert(Not (caseBlocks.IsDefault), "Field 'caseBlocks' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 5064Debug.Assert(Not (caseClauses.IsDefault), "Field 'caseClauses' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 5755Debug.Assert(Not (catchBlocks.IsDefault), "Field 'catchBlocks' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 6636Debug.Assert(Not (statements.IsDefault), "Field 'statements' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 6774Debug.Assert(Not (parameters.IsDefault), "Field 'parameters' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 6793Debug.Assert(Not (parameters.IsDefault), "Field 'parameters' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7066Debug.Assert(Not (rangeVariables.IsDefault), "Field 'rangeVariables' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7068Debug.Assert(Not (binders.IsDefault), "Field 'binders' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7079Debug.Assert(Not (rangeVariables.IsDefault), "Field 'rangeVariables' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7081Debug.Assert(Not (binders.IsDefault), "Field 'binders' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7119Debug.Assert(Not (rangeVariables.IsDefault), "Field 'rangeVariables' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7121Debug.Assert(Not (binders.IsDefault), "Field 'binders' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7170Debug.Assert(Not (rangeVariables.IsDefault), "Field 'rangeVariables' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7172Debug.Assert(Not (binders.IsDefault), "Field 'binders' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7243Debug.Assert(Not (rangeVariables.IsDefault), "Field 'rangeVariables' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7347Debug.Assert(Not (parameters.IsDefault), "Field 'parameters' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7359Debug.Assert(Not (parameters.IsDefault), "Field 'parameters' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7411Debug.Assert(Not (rangeVariables.IsDefault), "Field 'rangeVariables' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7413Debug.Assert(Not (binders.IsDefault), "Field 'binders' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7671Debug.Assert(Not (locals.IsDefault), "Field 'locals' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7878Debug.Assert(Not (childNodes.IsDefault), "Field 'childNodes' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 8153Debug.Assert(Not (childNodes.IsDefault), "Field 'childNodes' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 8544Debug.Assert(Not (jumps.IsDefault), "Field 'jumps' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 8594Debug.Assert(Not (jumps.IsDefault), "Field 'jumps' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 8742Debug.Assert(Not (locals.IsDefault), "Field 'locals' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 8743Debug.Assert(Not (spillFields.IsDefault), "Field 'spillFields' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 8744Debug.Assert(Not (statements.IsDefault), "Field 'statements' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 9229Debug.Assert(Not (contents.IsDefault), "Field 'contents' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)")
Lowering\Instrumentation\DebugInfoInjector.vb (1)
397If Not original.ResourceList.IsDefault AndAlso original.ResourceList.Length > 1 Then
Lowering\LocalRewriter\LocalRewriter.vb (2)
498Debug.Assert(copyBack.IsDefault, "no copyback expected in accessors") 510If Not temporaries.IsDefault Then
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (2)
499Debug.Assert(temporaries.IsDefault) 500Debug.Assert(copyBack.IsDefault)
Lowering\LocalRewriter\LocalRewriter_Call.vb (3)
97If Not copyBack.IsDefault Then 101If Not temporaries.IsDefault Then 200Debug.Assert(temporaries.IsDefault OrElse changed)
Lowering\LocalRewriter\LocalRewriter_ObjectCreation.vb (1)
34If Not temporaries.IsDefault Then
Lowering\LocalRewriter\LocalRewriter_SelectCase.vb (1)
206Debug.Assert(Not caseBlocks.IsDefault)
Lowering\LocalRewriter\LocalRewriter_Using.vb (1)
86If Not node.ResourceList.IsDefault Then
Lowering\LocalRewriter\LocalRewriter_With.vb (2)
57Debug.Assert(Not locals.IsDefault) 58Debug.Assert(Not initializers.IsDefault)
Lowering\LocalRewriter\LocalRewriter_XmlLiterals.vb (1)
43Debug.Assert(Not rewriterInfo.ImportedNamespaces.IsDefault)
Lowering\StateMachineRewriter\StateMachineTypeSymbol.vb (1)
63If _attributes.IsDefault Then
Lowering\StateMachineRewriter\SynthesizedStateMachineMethod.vb (1)
203If _attributes.IsDefault Then
PredefinedPreprocessorSymbols.vb (1)
51If symbols.IsDefault Then
Semantics\OverloadResolution.vb (47)
754Return Not OptionalArguments.IsDefault 934If typeArguments.IsDefault Then 938If arguments.IsDefault Then 949If Not methods.IsDefault Then 1090If arguments.IsDefault Then 1166Debug.Assert(argumentNames.IsDefault OrElse argumentNames.Length = arguments.Length) 1233ShadowBasedOnInferenceLevel(candidates, arguments, Not argumentNames.IsDefault, delegateReturnType, binder, 1438Debug.Assert(argumentNames.IsDefault OrElse argumentNames.Length > 0) 1439Debug.Assert(Not operatorResolution OrElse argumentNames.IsDefault) 1460Not argumentNames.IsDefault AndAlso 1465If argumentNames.IsDefault Then 1481Debug.Assert(argumentNames.IsDefault) ' We matched the virtual signature above 1493If Not argumentNames.IsDefault AndAlso Not signatureMatch Then 1499Debug.Assert(argumentNames.IsDefault) ' We matched the virtual signature above 1519Debug.Assert(argumentNames.IsDefault OrElse signatureMatch) 1525If argumentNames.IsDefault OrElse 2297Debug.Assert(left.ArgsToParamsOpt.IsDefault = right.ArgsToParamsOpt.IsDefault) 2299If left.ArgsToParamsOpt.IsDefault Then 2308If right.ArgsToParamsOpt.IsDefault Then 2600Debug.Assert(left.ArgsToParamsOpt.IsDefault = right.ArgsToParamsOpt.IsDefault) 2602If left.ArgsToParamsOpt.IsDefault Then 2611If right.ArgsToParamsOpt.IsDefault Then 3037Debug.Assert(Not arguments.IsDefault) 3038Debug.Assert(argumentNames.IsDefault OrElse (argumentNames.Length > 0 AndAlso argumentNames.Length = arguments.Length)) 3046If Not argumentNames.IsDefault Then 3068If Not argumentNames.IsDefault AndAlso argumentNames(i) IsNot Nothing Then 3222Debug.Assert(Not arguments.IsDefault) 3223Debug.Assert(argumentNames.IsDefault OrElse (argumentNames.Length > 0 AndAlso argumentNames.Length = arguments.Length)) 3862Debug.Assert(argumentNames.IsDefault OrElse (argumentNames.Length > 0 AndAlso argumentNames.Length = arguments.Length)) 4290Debug.Assert(argumentNames.IsDefault OrElse argumentNames.Length > 0) 4291Debug.Assert(Not operatorResolution OrElse argumentNames.IsDefault) 4350If argumentNames.IsDefault Then 4367Debug.Assert(argumentNames.IsDefault) ' We matched the virtual signature above 4382If Not argumentNames.IsDefault AndAlso Not signatureMatch Then 4388Debug.Assert(argumentNames.IsDefault) ' We matched the virtual signature above 4408Debug.Assert(argumentNames.IsDefault OrElse signatureMatch) 4414If argumentNames.IsDefault OrElse 4657Debug.Assert(left.ArgsToParamsOpt.IsDefault = right.ArgsToParamsOpt.IsDefault) 4659If left.ArgsToParamsOpt.IsDefault Then 4669If right.ArgsToParamsOpt.IsDefault Then 4837Debug.Assert(left.ArgsToParamsOpt.IsDefault = right.ArgsToParamsOpt.IsDefault) 4839If left.ArgsToParamsOpt.IsDefault Then 4849If right.ArgsToParamsOpt.IsDefault Then
Semantics\TypeInference\TypeInferenceCollection.vb (2)
626If names1.IsDefault OrElse names2.IsDefault Then
Symbols\AnonymousTypes\AnonymousTypeDescriptor.vb (1)
76Debug.Assert(Not Fields.IsDefault)
Symbols\ArrayTypeSymbol.vb (5)
52If sizes.IsDefaultOrEmpty AndAlso lowerBounds.IsDefault Then 146If thisLowerBounds.IsDefault Then 147Return other.LowerBounds.IsDefault 152Return Not otherLowerBounds.IsDefault AndAlso thisLowerBounds.SequenceEqual(otherLowerBounds) 662Debug.Assert(Not sizes.IsDefaultOrEmpty OrElse Not lowerBounds.IsDefault)
Symbols\Attributes\SourceAttributeData.vb (1)
48Me._namedArguments = If(namedArgs.IsDefault, ImmutableArray.Create(Of KeyValuePair(Of String, TypedConstant))(), namedArgs)
Symbols\CustomModifier.vb (1)
51If customModifiers.IsDefault Then
Symbols\InstanceErrorTypeSymbol.vb (1)
106If _lazyTypeParameters.IsDefault Then
Symbols\MergedNamespaceSymbol.vb (2)
281If _lazyModuleMembers.IsDefault Then 298If _lazyMembers.IsDefault Then
Symbols\Metadata\PE\MemberRefMetadataDecoder.vb (3)
249If targetReturnTypeCustomModifiers.IsDefault OrElse targetReturnTypeCustomModifiers.IsEmpty Then 250Return candidateReturnTypeCustomModifiers.IsDefault OrElse candidateReturnTypeCustomModifiers.IsEmpty 251ElseIf candidateReturnTypeCustomModifiers.IsDefault Then
Symbols\Metadata\PE\PEAssemblySymbol.vb (1)
132If _lazyCustomAttributes.IsDefault Then
Symbols\Metadata\PE\PEEventSymbol.vb (1)
261If _lazyCustomAttributes.IsDefault Then
Symbols\Metadata\PE\PEFieldSymbol.vb (1)
141If _lazyCustomAttributes.IsDefault Then
Symbols\Metadata\PE\PEMethodSymbol.vb (8)
664Debug.Assert(Not attributeData.IsDefault) 678Return If(attributeData.IsDefault, 806If Me._lazyTypeParameters.IsDefault Then 1062_lazyTypeParameters.IsDefault Then 1133If Not typeParams.IsDefault Then 1171If Not _lazyExplicitMethodImplementations.IsDefault Then 1341Debug.Assert(Not conditionalSymbols.IsDefault) 1355Return If(result.IsDefault,
Symbols\Metadata\PE\PEModuleSymbol.vb (2)
142If _lazyCustomAttributes.IsDefault Then 150If _lazyAssemblyAttributes.IsDefault Then
Symbols\Metadata\PE\PENamedTypeSymbol.vb (4)
416If _lazyCustomAttributes.IsDefault Then 854If _lazyTypeParameters.IsDefault Then 1463If Me._lazyConditionalAttributeSymbols.IsDefault Then 1465Debug.Assert(Not conditionalSymbols.IsDefault)
Symbols\Metadata\PE\PENamespaceSymbol.vb (3)
59If _lazyModules.IsDefault Then 77If _lazyFlattenedNamespacesAndTypes.IsDefault Then 105If Not result.IsDefault Then
Symbols\Metadata\PE\PEParameterSymbol.vb (2)
359If _lazyCustomAttributes.IsDefault Then 417Debug.Assert(Not _lazyHiddenAttributes.IsDefault)
Symbols\Metadata\PE\PEPropertySymbol.vb (1)
351If _lazyCustomAttributes.IsDefault Then
Symbols\Metadata\PE\PETypeParameterSymbol.vb (1)
145If _lazyCustomAttributes.IsDefault Then
Symbols\Metadata\PE\TupleTypeDecoder.vb (3)
70_namesIndex = If(elementNames.IsDefault, 0, elementNames.Length) 215Debug.Assert(elementNames.IsDefault OrElse elementNames.Length = tupleCardinality) 270If _elementNames.IsDefault Then
Symbols\MethodSignatureComparer.vb (1)
517If Not longerParameters.IsDefault Then
Symbols\MissingAssemblySymbol.vb (1)
72If _lazyModules.IsDefault Then
Symbols\NamedTypeSymbol.vb (4)
782Debug.Assert(Not value.IsDefault) 802If _lazyDeclaredInterfaces.IsDefault Then 891If Me._lazyInterfaces.IsDefault Then 931If Not interfaces.IsDefault Then
Symbols\ReducedExtensionMethodSymbol.vb (2)
191If Not typeParametersToFixArray.IsDefault Then 407If _lazyParameters.IsDefault Then
Symbols\ReferenceManager.vb (2)
747Debug.Assert(Not referencedAssemblies.IsDefault) 764If (_assemblies.IsDefault) Then
Symbols\Retargeting\RetargetingEventSymbol.vb (1)
101If _lazyExplicitInterfaceImplementations.IsDefault Then
Symbols\Retargeting\RetargetingMethodSymbol.vb (3)
109If (_lazyTypeParameters.IsDefault) Then 194If _lazyParameters.IsDefault Then 458If _lazyExplicitInterfaceImplementations.IsDefault Then
Symbols\Retargeting\RetargetingNamedTypeSymbol.vb (1)
89If _lazyTypeParameters.IsDefault Then
Symbols\Retargeting\RetargetingPropertySymbol.vb (2)
205If _lazyParameters.IsDefault Then 274If _lazyExplicitInterfaceImplementations.IsDefault Then
Symbols\Retargeting\RetargetingSymbolTranslator.vb (3)
629If lazyCustomModifiers.IsDefault Then 702If Not constructorArguments.IsDefault AndAlso constructorArguments.Any() Then 785If lazyCustomAttributes.IsDefault Then
Symbols\Source\CustomEventAccessorSymbol.vb (1)
87If _lazyExplicitImplementations.IsDefault Then
Symbols\Source\CustomModifierUtils.vb (1)
70Debug.Assert(Not parameters.IsDefault)
Symbols\Source\SourceAssemblySymbol.vb (5)
85Debug.Assert(Not netModules.IsDefault) 1197If _lazyAssemblyLevelDeclarationErrors.IsDefault OrElse _lazyAssemblyLevelDeclarationDependencies.IsDefault Then 1278Debug.Assert(Not _lazyAssemblyLevelDeclarationErrors.IsDefault) 1279Debug.Assert(Not _lazyAssemblyLevelDeclarationDependencies.IsDefault)
Symbols\Source\SourceDelegateMethodSymbol.vb (2)
42Debug.Assert(_parameters.IsDefault) 43Debug.Assert(Not parameters.IsDefault)
Symbols\Source\SourceEventSymbol.vb (4)
224Debug.Assert(Not types.IsDefault) 311If _lazyDelegateParameters.IsDefault Then 390Debug.Assert(Not implementedEvents.IsDefault) 514If _lazyImplementedEvents.IsDefault Then
Symbols\Source\SourceFile.vb (3)
66Debug.Assert(Not memberImports.IsDefault) 67Debug.Assert(Not memberImportsSyntax.IsDefault) 493Debug.Assert(Not [imports].IsDefault)
Symbols\Source\SourceMemberContainerTypeSymbol.vb (2)
2364If Not fieldOrPropertyArray.IsDefault Then 3144If _lazyMembersFlattened.IsDefault Then
Symbols\Source\SourceMemberMethodSymbol.vb (3)
285If params.IsDefault Then 352If _lazyImplementedMethods.IsDefault Then 554If _lazyHandles.IsDefault Then
Symbols\Source\SourceMethodSymbol.vb (6)
836If _lazyLocations.IsDefault Then 1249Debug.Assert(Not TypeParameters.IsDefault) 1866Debug.Assert(Not boundAttributes.IsDefault) 1867Debug.Assert(Not allAttributeSyntaxNodes.IsDefault) 2083If Not Me._lazyParameters.IsDefault Then 2116If _lazyParameters.IsDefault Then
Symbols\Source\SourceModuleSymbol.vb (9)
205If _locations.IsDefault Then 280If _lazyAssembliesToEmbedTypesFrom.IsDefault Then 293Debug.Assert(Not _lazyAssembliesToEmbedTypesFrom.IsDefault) 498If Not memberImports.IsDefault Then 510If Not aliasImports.IsDefault Then 764If _lazyLinkedAssemblyDiagnostics.IsDefault Then 934Debug.Assert(Not value.IsDefault) 940If variable.IsDefault Then 962Debug.Assert(Not attributesToStore.IsDefault)
Symbols\Source\SourceNamedTypeSymbol.vb (5)
768Return Not Me.Constraints.IsDefault 775If _lazyTypeParameters.IsDefault Then 957If Not typeParameters.IsDefault Then 2434Debug.Assert(Not boundAttributes.IsDefault) 2435Debug.Assert(Not allAttributeSyntaxNodes.IsDefault)
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (5)
68Debug.Assert(Not _syntheticInterfaces.IsDefault) 76Debug.Assert(Not _syntheticInterfaces.IsDefault) 86Debug.Assert(Not _syntheticInterfaces.IsDefault) 96Debug.Assert(Not _syntheticInterfaces.IsDefault) 119If Not _syntheticInterfaces.IsDefault Then
Symbols\Source\SourceNamespaceSymbol.vb (2)
218If _lazyAllMembers.IsDefault Then 254If _lazyModuleMembers.IsDefault Then
Symbols\Source\SourcePropertyAccessorSymbol.vb (2)
252If params.IsDefault Then 335If _lazyExplicitImplementations.IsDefault Then
Symbols\Source\SourcePropertySymbol.vb (4)
782If _lazyParameters.IsDefault Then 856If Not Me._lazyParameters.IsDefault Then 913If _lazyImplementedProperties.IsDefault Then 940Debug.Assert(Not implementedProperties.IsDefault)
Symbols\Source\SourceTypeParameterSymbol.vb (2)
108If _lazyConstraintTypes.IsDefault Then 144If _lazyConstraintTypes.IsDefault Then
Symbols\Source\SynthesizedEventAccessorSymbol.vb (2)
38If _lazyExplicitImplementations.IsDefault Then 50If _lazyParameters.IsDefault Then
Symbols\Source\SynthesizedWithEventsAccessorSymbol.vb (2)
32If _lazyExplicitImplementations.IsDefault Then 80If _lazyParameters.IsDefault Then
Symbols\SubstitutedEventSymbol.vb (1)
193If _lazyExplicitInterfaceImplementations.IsDefault Then
Symbols\SubstitutedMethodSymbol.vb (2)
605Debug.Assert(Not typeParameters.IsDefault AndAlso typeParameters.Length = DirectCast(substitution.TargetGenericDefinition, MethodSymbol).Arity) 668If typeArguments.IsDefault Then
Symbols\SubstitutedNamedType.vb (2)
712Debug.Assert(Not typeParameters.IsDefault AndAlso typeParameters.Length = DirectCast(substitution.TargetGenericDefinition, NamedTypeSymbol).Arity) 776If typeArguments.IsDefault Then
Symbols\Symbol.vb (2)
1362If typeArguments.IsDefault Then 1367If Not typeArgumentNullableAnnotations.IsDefault AndAlso typeArgumentNullableAnnotations.Length <> n Then
Symbols\SynthesizedSymbols\SynthesizedAttributeData.vb (3)
29Debug.Assert(wellKnownMember IsNot Nothing AndAlso Not arguments.IsDefault) 57If arguments.IsDefault Then 61If namedArguments.IsDefault Then
Symbols\SynthesizedSymbols\SynthesizedClonedTypeParameterSymbol.vb (1)
71If _lazyConstraints.IsDefault Then
Symbols\SynthesizedSymbols\SynthesizedDelegateMethodSymbol.vb (3)
55Debug.Assert(Not parameters.IsDefault) 56Debug.Assert(_parameters.IsDefault) 332If Not _parameters.IsDefault Then
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (1)
53If Not _lazyMembers.IsDefault Then
Symbols\SynthesizedSymbols\SynthesizedInterfaceImplementationStubSymbol.vb (2)
106Debug.Assert(_explicitInterfaceImplementations.IsDefault) 113Debug.Assert(Not _explicitInterfaceImplementations.IsDefault)
Symbols\SynthesizedSymbols\SynthesizedSimpleConstructorSymbol.vb (2)
30Debug.Assert(Not parameters.IsDefault) 31Debug.Assert(Me._parameters.IsDefault)
Symbols\SynthesizedSymbols\SynthesizedSimpleMethodSymbol.vb (2)
89Debug.Assert(Not parameters.IsDefault) 90Debug.Assert(_parameters.IsDefault)
Symbols\Tuples\TupleMethodSymbol.vb (1)
64If Me._lazyParameters.IsDefault Then
Symbols\Tuples\TuplePropertySymbol.vb (1)
54Dim isDefault As Boolean = Me._lazyParameters.IsDefault
Symbols\Tuples\TupleTypeSymbol.vb (22)
91If _providedElementNames.IsDefault Then 95If _lazyActualElementNames.IsDefault Then 120Dim isDefault As Boolean = Me._lazyFields.IsDefault 350Debug.Assert(elementLocations.IsDefault OrElse elementLocations.Length = elementTypes.Length) 351Debug.Assert(elementNames.IsDefault OrElse elementNames.Length = elementTypes.Length) 375Debug.Assert(elementNames.IsDefault OrElse elementTypes.Length = elementNames.Length) 489Debug.Assert(newElementNames.IsDefault OrElse Me._elementTypes.Length = newElementNames.Length) 491If Me._providedElementNames.IsDefault Then 492If newElementNames.IsDefault Then 496If Not newElementNames.IsDefault AndAlso Me._providedElementNames.SequenceEqual(newElementNames) Then 690Dim isDefault As Boolean = Me._lazyMembers.IsDefault 731Dim providedName = If(_providedElementNames.IsDefault, Nothing, _providedElementNames(tupleFieldIndex)) 732Dim location = If(_elementLocations.IsDefault, Nothing, _elementLocations(tupleFieldIndex)) 768Dim isError = If(_errorPositions.IsDefault, False, _errorPositions(tupleFieldIndex)) 841Dim providedName = If(_providedElementNames.IsDefault, Nothing, _providedElementNames(i)) 842Dim location = If(_elementLocations.IsDefault, Nothing, _elementLocations(i)) 998If myNames.IsDefault Then 999Return otherNames.IsDefault 1002If otherNames.IsDefault Then 1113If sourceNames.IsDefault Then 1118Dim noInferredNames As Boolean = inferredNames.IsDefault 1121Dim allMissing As Boolean = destinationNames.IsDefault
Symbols\TypeSubstitution.vb (1)
557Debug.Assert(Not pairs.IsDefault)
Symbols\TypeSymbol.vb (1)
136If (_lazyAllInterfaces.IsDefault) Then
Symbols\TypeSymbolExtensions.vb (1)
954If typeArguments.IsDefault Then
Symbols\TypeWithModifiers.vb (3)
42Return If(Me.CustomModifiers.IsDefault, 43other.CustomModifiers.IsDefault, 44Not other.CustomModifiers.IsDefault AndAlso Me.CustomModifiers.SequenceEqual(other.CustomModifiers))
Symbols\UnboundGenericType.vb (1)
450If _lazyTypeArguments.IsDefault Then
Symbols\WellKnownMembers.vb (3)
165If arguments.IsDefault Then 170If namedArguments.IsDefault Then 709Debug.Assert(Not names.IsDefault, "should not need the attribute when no tuple names")
VisualBasicCompilationOptions.vb (3)
758If value.IsDefault Then 1094Return If(Me.GlobalImports.IsDefault, other.GlobalImports.IsDefault, Me.GlobalImports.SequenceEqual(other.GlobalImports)) AndAlso
VisualBasicParseOptions.vb (1)
194If symbols.IsDefault Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\PropertyGenerator.vb (2)
101If [property].Parameters.IsDefault OrElse [property].Parameters.Length = 0 Then 149If Not statementsOpt.IsDefault Then
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (14)
Attributes\AttributeTests_Conditional.vb (6)
275Debug.Assert(Not preprocessorSymbols.IsDefault) 300Debug.Assert(Not preprocessorSymbolsSrcFile1.IsDefault) 302Debug.Assert(Not preprocessorSymbolsSrcFile2.IsDefault) 566Debug.Assert(Not preprocessorSymbols.IsDefault) 587Debug.Assert(Not preprocessorSymbolsSrcFile1.IsDefault) 589Debug.Assert(Not preprocessorSymbolsSrcFile2.IsDefault)
CodeGen\CodeGenTuples.vb (8)
6895Assert.True(GetTupleElementNames(tupleWithoutNames).IsDefault) 6948Assert.True(GetTupleElementNames(tupleWithoutNames).IsDefault) 7031Assert.True(GetTupleElementNames(tuple8WithoutNames).IsDefault) 7081Assert.True(GetTupleElementNames(tuple9WithoutNames).IsDefault) 7251Assert.True(GetTupleElementNames(tupleWithoutNames).IsDefault) 7298Assert.True(GetTupleElementNames(tupleWithoutNames).IsDefault) 7352Assert.True(GetTupleElementNames(tuple8WithoutNames).IsDefault) 7394Assert.True(GetTupleElementNames(tuple9WithoutNames).IsDefault)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (2)
CompilationContext.vb (1)
97_methodNotType = Not locals.IsDefault
Symbols\EELocalSymbol.vb (1)
36Debug.Assert(Not locations.IsDefault)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (4)
Semantics\FieldInitializerBindingTests.vb (1)
1534Assert.[True](Not boundInitializers.IsDefault)
Semantics\MultiDimensionalTest.vb (3)
877Assert.True(szArray.LowerBounds.IsDefault) 884Assert.True(mdArray.LowerBounds.IsDefault) 2176Assert.True(array.LowerBounds.IsDefault)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\Source\FieldTests.vb (1)
67Assert.True(fieldType.TupleElements.IsDefault)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
Extensions.vb (2)
281Return tc.IsDefault 282ElseIf tc.IsDefault Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\PropertyGenerator.vb (2)
101If [property].Parameters.IsDefault OrElse [property].Parameters.Length = 0 Then 149If Not statementsOpt.IsDefault Then
Microsoft.CodeAnalysis.Workspaces (90)
Classification\ClassifierHelper.cs (2)
24/// cref="ImmutableArray{T}.IsDefault"/> will be returned if this fails. 43/// cref="ImmutableArray{T}.IsDefault"/> will be returned if this fails.
CodeCleanup\AbstractCodeCleanerService.cs (2)
40var codeCleaners = providers.IsDefault ? GetDefaultProviders() : providers; 84var codeCleaners = providers.IsDefault ? GetDefaultProviders() : providers;
CodeFixes\FixAllOccurrences\FixAllProvider.cs (1)
84if (supportedFixAllScopes.IsDefault)
CodeRefactorings\FixAllOccurences\FixAllProvider.cs (1)
84if (supportedFixAllScopes.IsDefault)
Diagnostics\DiagnosticAnalysisResult.cs (4)
52Debug.Assert(!others.IsDefault); 53Debug.Assert(!syntaxLocals.Values.Any(item => item.IsDefault)); 54Debug.Assert(!semanticLocals.Values.Any(item => item.IsDefault)); 55Debug.Assert(!nonLocals.Values.Any(item => item.IsDefault));
Diagnostics\DocumentAnalysisScope.cs (2)
29Debug.Assert(!projectAnalyzers.IsDefault); 30Debug.Assert(!hostAnalyzers.IsDefault);
FindSymbols\FindReferences\FindReferenceCache.cs (2)
217if (_constructorInitializerCache.IsDefault) 241if (_newKeywordsCache.IsDefault)
Recommendations\AbstractRecommendationService.cs (2)
141if (_lazyOuterTypesAndBases.IsDefault) 153if (_lazyEnclosingTypeBases.IsDefault)
Recommendations\AbstractRecommendationServiceRunner.cs (1)
52return symbols.IsDefault
Rename\ConflictEngine\ConflictResolver.Session.cs (3)
289if (!documentIdErrorStateLookup[documentId] && _nonConflictSymbolKeys.IsDefault) 470if (_nonConflictSymbolKeys.IsDefault) 661if (!invocationReferencedSymbols.IsDefault)
Rename\LightweightRenameLocations.cs (3)
39Contract.ThrowIfTrue(locations.IsDefault); 40Contract.ThrowIfTrue(implicitLocations.IsDefault); 41Contract.ThrowIfTrue(referencedSymbols.IsDefault);
Rename\SymbolicRenameLocations.cs (3)
42Contract.ThrowIfTrue(locations.IsDefault); 43Contract.ThrowIfTrue(implicitLocations.IsDefault); 44Contract.ThrowIfTrue(referencedSymbols.IsDefault);
Serialization\SerializedPortableExecutableReference.cs (1)
35Contract.ThrowIfTrue(storageHandles.IsDefault);
Shared\Extensions\ISymbolExtensions.cs (1)
114attributes = attributes.IsDefault ? symbol.GetAttributes() : attributes;
Shared\Utilities\DocumentationComment.cs (1)
361if (texts.IsDefault)
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (4)
156Debug.Assert(!initializedValue.IsDefault); 158return oldValue.IsDefault ? initializedValue : oldValue; 185if (!target.IsDefault) 200if (!current.IsDefault)
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
26if (numerals.IsDefault)
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
79if (!values.IsDefault)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (11)
551Debug.Assert(!array.IsDefault); 757if (array1.IsDefault) 759return array2.IsDefault; 761else if (array2.IsDefault) 798return array.IsDefault ? ImmutableArray<T>.Empty : array; 807null or { IsDefault: true } => ImmutableArray<T>.Empty, 817Debug.Assert(!array.IsDefault); 844if (!array.IsDefault && array.Length >= 2) 1222if (!membersAsNamedTypes.IsDefault) 1251if (array1.IsDefault) 1256if (array2.IsDefault)
src\Dependencies\Collections\OneOrMany.cs (3)
41if (many.IsDefault) 63=> _many.IsDefault; 66=> _one == null && _many.IsDefault;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSeparatedSyntaxNodeList.cs (1)
27Contract.ThrowIfTrue(nodesAndTokens.IsDefault);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxToken.cs (5)
36Debug.Assert(!leadingTrivia.IsDefault); 38Debug.Assert(!trailingTrivia.IsDefault); 39Debug.Assert(!diagnostics.IsDefault); 118if (leading && !LeadingTrivia.IsDefault) 128if (trailing && !TrailingTrivia.IsDefault)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
50if (rules.IsDefault)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferences.cs (1)
285if (_lazySerializableRules.IsDefault)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\SymbolSpecification.cs (3)
39public ImmutableArray<SymbolKindOrTypeKind> ApplicableSymbolKindList { get; } = symbolKindList.IsDefault ? DefaultSymbolSpecificationTemplate.ApplicableSymbolKindList : symbolKindList; 42public ImmutableArray<Accessibility> ApplicableAccessibilityList { get; } = accessibilityList.IsDefault ? DefaultSymbolSpecificationTemplate.ApplicableAccessibilityList : accessibilityList; 45public ImmutableArray<ModifierKind> RequiredModifierList { get; } = modifiers.IsDefault ? DefaultSymbolSpecificationTemplate.RequiredModifierList : modifiers;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
307Debug.Assert(!array.IsDefault);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
1065if (!specifiedArguments.IsDefault)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (8)
54Contract.ThrowIfTrue(nodes.IsDefault, $"{nameof(nodes)}.{nameof(nodes.IsDefault)}"); 55Contract.ThrowIfTrue(edges.IsDefault, $"{nameof(edges)}.{nameof(edges.IsDefault)}"); 68Contract.ThrowIfTrue(_nodes.IsDefault, $"{nameof(_nodes)}.{nameof(_nodes.IsDefault)}"); 69Contract.ThrowIfTrue(_edges.IsDefault, $"{nameof(_edges)}.{nameof(_edges.IsDefault)}");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (2)
78Debug.Assert(!x.IsDefault && !y.IsDefault);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (1)
370explicitInterfaceImplementations.IsDefault ? accessor.ExplicitInterfaceImplementations : explicitInterfaceImplementations,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\CodeRefactoringContextExtensions.cs (1)
24if (!actions.IsDefault)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
76reducers = reducers.IsDefault ? _reducers : reducers;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (1)
151if (localLanguages.IsDefault)
Workspace\Host\Mef\MefHostServices.cs (1)
96if (s_defaultAssemblies.IsDefault)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (2)
112folders: folders.IsDefault ? null : folders, 637Contract.ThrowIfTrue(folders.IsDefault);
Workspace\ProjectSystem\ProjectSystemProjectOptionsProcessor.cs (1)
131Debug.Assert(!arguments.IsDefault);
Workspace\Solution\DocumentState.cs (1)
104if (_contentHash.IsDefault)
Workspace\Solution\ProjectDependencyGraph.cs (2)
374if (_lazyTopologicallySortedProjects.IsDefault) 387if (_lazyTopologicallySortedProjects.IsDefault)
Workspace\Solution\ProjectDependencyGraph_AddProject.cs (2)
19if (!newTopologicallySortedProjects.IsDefault) 26if (!newDependencySets.IsDefault)
Workspace\Solution\Solution.cs (3)
1786if (documentIds.IsDefault) 1812if (documentIds.IsDefault) 1838if (documentIds.IsDefault)
Workspace\Solution\SolutionCompilationState.cs (1)
1762if (documentInfos.IsDefault)
Workspace\Solution\TextDocumentStates.cs (1)
122if (_statesInCompilationOrder.IsDefault)
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\GlobalAssemblyCacheLocation.cs (1)
36if (s_rootLocations.IsDefault)
src\Workspaces\MSBuild\BuildHost\Rpc\Contracts\ProjectFileReference.cs (1)
38Debug.Assert(!aliases.IsDefault);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (21)
Rpc\Contracts\ProjectFileReference.cs (1)
38Debug.Assert(!aliases.IsDefault);
src\Compilers\Core\Portable\InternalUtilities\InterlockedOperations.cs (4)
156Debug.Assert(!initializedValue.IsDefault); 158return oldValue.IsDefault ? initializedValue : oldValue; 185if (!target.IsDefault) 200if (!current.IsDefault)
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
26if (numerals.IsDefault)
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
79if (!values.IsDefault)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (11)
551Debug.Assert(!array.IsDefault); 757if (array1.IsDefault) 759return array2.IsDefault; 761else if (array2.IsDefault) 798return array.IsDefault ? ImmutableArray<T>.Empty : array; 807null or { IsDefault: true } => ImmutableArray<T>.Empty, 817Debug.Assert(!array.IsDefault); 844if (!array.IsDefault && array.Length >= 2) 1222if (!membersAsNamedTypes.IsDefault) 1251if (array1.IsDefault) 1256if (array2.IsDefault)
src\Dependencies\Collections\OneOrMany.cs (3)
41if (many.IsDefault) 63=> _many.IsDefault; 66=> _one == null && _many.IsDefault;
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
197!mr.Properties.Aliases.IsDefault &&
Microsoft.DotNet.NuGetRepack.Tests (4)
TestHelpers\AssertEx.cs (4)
170if (actual == null || expected.IsDefault) 172Assert.True((actual == null) == expected.IsDefault, message); 182if (expected == null || actual.IsDefault) 184Assert.True((expected == null) == actual.IsDefault, message);
Microsoft.DotNet.SignTool (8)
src\BatchSignInput.cs (2)
35Debug.Assert(!filesToSign.IsDefault); 37Debug.Assert(!filesToCopy.IsDefault);
src\ByteSequenceComparer.cs (3)
25if (x.IsDefault || y.IsDefault || x.Length != y.Length) 74Debug.Assert(!x.IsDefault);
src\FileSignInfo.cs (1)
134Debug.Assert(!pathWithHash.ContentHash.IsDefault && pathWithHash.ContentHash.Length == 256 / 8);
src\PathWithHash.cs (1)
33Debug.Assert(!contentHash.IsDefault);
src\SignedFileContentKey.cs (1)
34Debug.Assert(!contentHash.IsDefault);
Microsoft.DotNet.StrongName (1)
Utils.cs (1)
24if (blob.IsDefault || blob.Length < Constants.SnPublicKeyHeaderSize + 1)
Microsoft.Extensions.Validation.ValidationsGenerator (4)
Extensions\IncrementalValuesProviderExtensions.cs (4)
72if (x.IsDefault) 74return y.IsDefault; 76else if (y.IsDefault) 99if (obj.IsDefault)
Microsoft.VisualStudio.LanguageServices (7)
Library\VsNavInfo\NavInfo.cs (1)
88if (nodes.IsDefault)
Options\VisualStudioSettingsOptionPersister.cs (4)
210value = stringArray.IsDefault ? null : stringArray.ToArray(); 214value = boolArray.IsDefault ? null : boolArray.ToArray(); 218value = intArray.IsDefault ? null : intArray.ToArray(); 222value = longArray.IsDefault ? null : longArray.ToArray();
Snippets\SnippetExpansionClient.cs (1)
124if (_argumentProviders.IsDefault)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\GlobalAssemblyCacheLocation.cs (1)
36if (s_rootLocations.IsDefault)
Roslyn.Diagnostics.Analyzers (16)
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
79if (!values.IsDefault)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (11)
551Debug.Assert(!array.IsDefault); 757if (array1.IsDefault) 759return array2.IsDefault; 761else if (array2.IsDefault) 798return array.IsDefault ? ImmutableArray<T>.Empty : array; 807null or { IsDefault: true } => ImmutableArray<T>.Empty, 817Debug.Assert(!array.IsDefault); 844if (!array.IsDefault && array.Length >= 2) 1222if (!membersAsNamedTypes.IsDefault) 1251if (array1.IsDefault) 1256if (array2.IsDefault)
src\Dependencies\Collections\OneOrMany.cs (3)
41if (many.IsDefault) 63=> _many.IsDefault; 66=> _one == null && _many.IsDefault;
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
238if (words.IsDefault)
Roslyn.Test.PdbUtilities (3)
Reader\MockSymUnmanagedReader.cs (2)
389numRead = source.IsDefault ? 0 : source.Length; 393Assert.False(source.IsDefault);
Reader\SymReaderFactory.cs (1)
74return CreateReader(new MemoryStream([.. pdbImage]), (peImageOpt.IsDefault) ? null : new PEReader(peImageOpt));
RunTests (1)
ITestExecutor.cs (1)
91ProcessResults = processResults.IsDefault ? ImmutableArray<ProcessResult>.Empty : processResults;
System.Collections.Immutable (15)
System\Collections\Immutable\ImmutableArray_1.cs (6)
23/// <exception cref="InvalidOperationException">Thrown if the <see cref="IsDefault"/> property returns true.</exception> 50/// <exception cref="InvalidOperationException">Thrown if the <see cref="IsDefault"/> property returns true.</exception> 65/// <exception cref="InvalidOperationException">Thrown if the <see cref="IsDefault"/> property returns true.</exception> 84/// <exception cref="InvalidOperationException">Thrown if the <see cref="IsDefault"/> property returns true.</exception> 1291/// <exception cref="InvalidOperationException">Thrown if the <see cref="IsDefault"/> property returns true.</exception> 1354/// <exception cref="InvalidOperationException">Thrown if the <see cref="IsDefault"/> property returns true.</exception>
System\Collections\Immutable\ImmutableArray_1.Minimal.cs (6)
218return self.IsDefault ? "Uninitialized" : $"Length = {self.Length}"; 364/// is returned whose <see cref="IsDefault"/> property returns <c>true</c>. 386/// <exception cref="InvalidOperationException">Thrown if the <see cref="IsDefault"/> property returns true.</exception> 398/// <exception cref="InvalidOperationException">Thrown if the <see cref="IsDefault"/> property returns true.</exception> 424/// <see cref="IsDefault"/> property returns true. The 432if (this.IsDefault)
System\Collections\Immutable\ImmutableInterlocked.cs (1)
232return InterlockedCompareExchange(ref location, value, default(ImmutableArray<T>)).IsDefault;
System\Runtime.InteropServices\ImmutableCollectionsMarshal.cs (2)
29/// will be uninitialized (ie. its <see cref="ImmutableArray{T}.IsDefault"/> property will be <see langword="true"/>). 50/// If <paramref name="array"/> is uninitialized (ie. its <see cref="ImmutableArray{T}.IsDefault"/> property is
System.Reflection.Metadata (20)
System\Reflection\Internal\MemoryBlocks\ByteArrayMemoryProvider.cs (1)
19Debug.Assert(!array.IsDefault);
System\Reflection\Metadata\AssemblyNameInfo.cs (2)
138!PublicKeyOrToken.IsDefault ? Runtime.InteropServices.ImmutableCollectionsMarshal.AsArray(PublicKeyOrToken) : null; 181if (!PublicKeyOrToken.IsDefault)
System\Reflection\Metadata\BlobBuilder.cs (2)
742if (buffer.IsDefault) 755if (buffer.IsDefault)
System\Reflection\Metadata\BlobContentId.cs (2)
29if (id.IsDefault) 66if (hashCode.IsDefault)
System\Reflection\Metadata\BlobWriter.cs (2)
190if (buffer.IsDefault) 202if (buffer.IsDefault)
System\Reflection\Metadata\Ecma335\BlobDictionary.cs (1)
52if (immutableKey.IsDefault)
System\Reflection\Metadata\Ecma335\Encoding\BlobEncoders.cs (3)
364if (encodedArguments.IsDefault) 1281if (sizes.IsDefault) 1302if (lowerBounds.IsDefault) // TODO: remove -- update Roslyn
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (1)
238if (value.IsDefault)
System\Reflection\Metadata\Ecma335\PortablePdbBuilder.cs (1)
71if (typeSystemRowCounts.IsDefault)
System\Reflection\Metadata\IL\MethodBodyBlock.cs (1)
29Debug.Assert(!exceptionRegions.IsDefault);
System\Reflection\Metadata\MetadataReaderProvider.cs (1)
106if (image.IsDefault)
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryBuilder.cs (1)
183if (checksum.IsDefault)
System\Reflection\PortableExecutable\PEBuilder.cs (1)
77if (sections.IsDefault)
System\Reflection\PortableExecutable\PEReader.cs (1)
233if (peImage.IsDefault)
Test.Utilities (16)
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
79if (!values.IsDefault)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (11)
551Debug.Assert(!array.IsDefault); 757if (array1.IsDefault) 759return array2.IsDefault; 761else if (array2.IsDefault) 798return array.IsDefault ? ImmutableArray<T>.Empty : array; 807null or { IsDefault: true } => ImmutableArray<T>.Empty, 817Debug.Assert(!array.IsDefault); 844if (!array.IsDefault && array.Length >= 2) 1222if (!membersAsNamedTypes.IsDefault) 1251if (array1.IsDefault) 1256if (array2.IsDefault)
src\Dependencies\Collections\OneOrMany.cs (3)
41if (many.IsDefault) 63=> _many.IsDefault; 66=> _one == null && _many.IsDefault;
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
238if (words.IsDefault)
Text.Analyzers (16)
src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
79if (!values.IsDefault)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (11)
551Debug.Assert(!array.IsDefault); 757if (array1.IsDefault) 759return array2.IsDefault; 761else if (array2.IsDefault) 798return array.IsDefault ? ImmutableArray<T>.Empty : array; 807null or { IsDefault: true } => ImmutableArray<T>.Empty, 817Debug.Assert(!array.IsDefault); 844if (!array.IsDefault && array.Length >= 2) 1222if (!membersAsNamedTypes.IsDefault) 1251if (array1.IsDefault) 1256if (array2.IsDefault)
src\Dependencies\Collections\OneOrMany.cs (3)
41if (many.IsDefault) 63=> _many.IsDefault; 66=> _one == null && _many.IsDefault;
src\RoslynAnalyzers\Utilities\Compiler\WordParser.cs (1)
238if (words.IsDefault)