1720 references to IsDefault
BuildValidator (1)
Program.cs (1)
378if (sourceLinks.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 (205)
CodeGen\ILBuilder.cs (3)
195if (this.RealizedIL.IsDefault) 1234Debug.Assert(this.RealizedIL.IsDefault, "Too late to allocate a new IL marker"); 1259Debug.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)
760Debug.Assert(!block.IsDefault);
Collections\ByteSequenceComparer.cs (3)
31if (x.IsDefault || y.IsDefault || x.Length != y.Length) 103Debug.Assert(!x.IsDefault);
Collections\ImmutableArrayExtensions.cs (11)
479Debug.Assert(!array.IsDefault); 685if (array1.IsDefault) 687return array2.IsDefault; 689else if (array2.IsDefault) 726return array.IsDefault ? ImmutableArray<T>.Empty : array; 735null or { IsDefault: true } => ImmutableArray<T>.Empty, 745Debug.Assert(!array.IsDefault); 772if (!array.IsDefault && array.Length >= 2) 1169if (!membersAsNamedTypes.IsDefault) 1198if (array1.IsDefault) 1203if (array2.IsDefault)
Collections\ImmutableMemoryStream.cs (1)
19Debug.Assert(!array.IsDefault);
Collections\UnionCollection.cs (1)
67Debug.Assert(!collections.IsDefault);
CommandLine\CommonCompiler.cs (1)
1038if (!additionalFiles.IsDefault)
Compilation\Compilation.cs (12)
84RoslynDebug.Assert(!references.IsDefault); 1301if (elementTypes.IsDefault) 1323if (!elementLocations.IsDefault && elementLocations[i] == null) 1348if (!elementNullableAnnotations.IsDefault) 1363if (!elementNames.IsDefault) 1391if (!elementLocations.IsDefault) 1459if (memberTypes.IsDefault) 1464if (memberNames.IsDefault) 1475if (!memberLocations.IsDefault && memberLocations.Length != memberTypes.Length) 1481if (!memberIsReadOnly.IsDefault && memberIsReadOnly.Length != memberTypes.Length) 1487if (!memberNullableAnnotations.IsDefault && memberNullableAnnotations.Length != memberTypes.Length) 1505if (!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)
1779Debug.Assert(!subsetProcessedAnalyzers.IsDefault);
DiagnosticAnalyzer\AnalyzerDriver.GroupedAnalyzerActionsForAnalyzer.cs (2)
109if (_lazyCodeBlockStartActions.IsDefault) 145if (lazyCodeBlockActions.IsDefault)
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
391if (_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)
761public 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)
450if (_lazyAssemblyReferenceAliases.IsDefault) 512if (_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 (2)
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)
245if (_lazyEvents.IsDefault) 274if (_lazyFields.IsDefault) 443if (_lazyMethods.IsDefault) 493if (_lazyProperties.IsDefault) 534if (_lazyAttributes.IsDefault)
Emit\NoPia\EmbeddedTypesManager.cs (2)
87return !_frozen.IsDefault; 93if (_frozen.IsDefault)
InternalUtilities\InterlockedOperations.cs (4)
156Debug.Assert(!initializedValue.IsDefault); 158return oldValue.IsDefault ? initializedValue : oldValue; 185if (!target.IsDefault) 200if (!current.IsDefault)
InternalUtilities\OneOrMany.cs (3)
40if (many.IsDefault) 62=> _many.IsDefault; 65=> _one == null && _many.IsDefault;
InternalUtilities\StringExtensions.cs (1)
20if (numerals.IsDefault)
MetadataReader\MetadataTypeName.cs (2)
332if (_namespaceSegmentsMemory.IsDefault) 348if (_namespaceSegments.IsDefault)
MetadataReader\PEAssembly.cs (1)
60Debug.Assert(!modules.IsDefault);
MetadataReader\PEModule.cs (1)
1453Debug.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)
431bool hasPublicKey = !publicKey.IsDefault; 432bool hasPublicKeyToken = !publicKeyToken.IsDefault;
MetadataReference\AssemblyMetadata.cs (1)
281if (_lazyPublishedModules.IsDefault)
MetadataReference\ModuleMetadata.cs (1)
167if (peImage.IsDefault)
NativePdbWriter\PdbWriter.cs (2)
608if (!info.Checksum.IsDefault) 619if (!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)
777if (!fieldDef.MappedData.IsDefault) 2339if (fieldDef.MappedData.IsDefault) 4158if (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)
22Debug.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)
81Debug.Assert(!aliasesOpt.IsDefault || !recursiveAliasesOpt.IsDefault); 82Debug.Assert(!mergedReferences.IsDefault); 89private bool IsUninitialized => (_aliasesOpt.IsDefault && _recursiveAliasesOpt.IsDefault) || _mergedReferencesOpt.IsDefault; 167return 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)
361if (!groupSizes.IsDefault) 370if (!externAliasStrings.IsDefault) 388if (!externAliasStrings.IsDefault) 396Debug.Assert(!allModuleInfoImportStrings.IsDefault); 413if (groupSizes.IsDefault) 420Debug.Assert(!importStrings.IsDefault); 448if (externAliasStrings.IsDefault) 491Debug.Assert(!importStrings.IsDefault); 510Debug.Assert(!importStrings.IsDefault);
src\Dependencies\CodeAnalysis.Debugging\TupleElementNamesInfo.cs (1)
22Debug.Assert(!elementNames.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)
372if (_lazyChecksum.IsDefault) 379Debug.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.CodeStyle (44)
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerAnalyzer.cs (2)
72if (preMatches.IsDefault || postMatches.IsDefault)
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (3)
212if (matches.IsDefault) 230if (preMatches.IsDefault || postMatches.IsDefault)
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (11)
479Debug.Assert(!array.IsDefault); 685if (array1.IsDefault) 687return array2.IsDefault; 689else if (array2.IsDefault) 726return array.IsDefault ? ImmutableArray<T>.Empty : array; 735null or { IsDefault: true } => ImmutableArray<T>.Empty, 745Debug.Assert(!array.IsDefault); 772if (!array.IsDefault && array.Length >= 2) 1169if (!membersAsNamedTypes.IsDefault) 1198if (array1.IsDefault) 1203if (array2.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\OneOrMany.cs (3)
40if (many.IsDefault) 62=> _many.IsDefault; 65=> _one == null && _many.IsDefault;
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
20if (numerals.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); 115if (leading && !LeadingTrivia.IsDefault) 125if (trailing && !TrailingTrivia.IsDefault)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
50if (rules.IsDefault)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
310Debug.Assert(!array.IsDefault);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
1069if (!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\Core\Utilities\ICollectionExtensions.cs (1)
73if (!values.IsDefault)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (2)
77Debug.Assert(!x.IsDefault && !y.IsDefault);
Microsoft.CodeAnalysis.CodeStyle.Fixes (8)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (2)
121ParameterTypes = ParameterTypes.IsDefault ? GetParameterTypes(cancellationToken) : ParameterTypes; 278=> _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)
43=> _parameterNames.IsDefault
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
44return _typeParameters.IsDefault
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (1)
373explicitInterfaceImplementations.IsDefault ? accessor.ExplicitInterfaceImplementations : explicitInterfaceImplementations,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
127if (reducers.IsDefault)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (1)
152if (localLanguages.IsDefault)
Microsoft.CodeAnalysis.CSharp (646)
Binder\Binder.ValueChecks.cs (6)
422if (indexerAccess.OriginalIndexersOpt.IsDefault) 2313if (!argsOpt.IsDefault) 2332parameters[argsToParamsOpt.IsDefault ? argIndex : argsToParamsOpt[argIndex]] : 2345if (!argRefKindsOpt.IsDefault) 2437var refKind = argRefKindsOpt.IsDefault ? RefKind.None : argRefKindsOpt[argIndex]; 2965int 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 (1)
400Debug.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 (18)
973ImmutableArray<bool> inferredPositions = tupleNames.IsDefault ? default : tupleNames.SelectAsArray(n => n != null); 1406|| (type.IsTupleType && !type.TupleElementNames.IsDefault)) 3497Debug.Assert(argsToParamsOpt.IsDefault || argsToParamsOpt.Length == arguments.Count); 3633if (!argsToParamsOpt.IsDefault && collectionArgs.Length > 1) 3643Debug.Assert(argsToParamsBuilder is not null || argsToParamsOpt.IsDefault); 3754if (memberAnalysisResult.ArgsToParamsOpt.IsDefault && arguments.Count == parameters.Length) 4219Debug.Assert(!boundInitExpr.IsDefault); 4301if (boundInitExprOpt.IsDefault) 4372Debug.Assert(boundInitExprOpt.IsDefault || creationSyntax.Kind() == SyntaxKind.ImplicitArrayCreationExpression); 4618if (boundInitExprOpt.IsDefault) 6466if (boundCall.HasErrors && !boundCall.OriginalMethodsOpt.IsDefault) 7790if (!typeArguments.IsDefault) 7936Debug.Assert(rightArity == (typeArgumentsWithAnnotations.IsDefault ? 0 : typeArgumentsWithAnnotations.Length)); 8295if (!typeArgumentsWithAnnotations.IsDefault) 8469if (typeArgumentsWithAnnotations.IsDefault) 10815Debug.Assert(parameterRefKinds.IsDefault || parameterRefKinds.Length == parameterTypes.Length); 10839(parameterRefKinds.IsDefault || parameterRefKinds.All(refKind => refKind == RefKind.None)) && 10873parameterRefKinds.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) 561if (!refKinds.IsDefault) 998(typeArgumentsOpt.IsDefault || ((MethodSymbol)(object)result.Member).CheckConstraints(new ConstraintsHelper.CheckConstraintsArgs(this.Compilation, this.Conversions, includeNullability: false, syntax.Location, candidateDiagnostics)))) 1221Debug.Assert(argsToParams.IsDefault || argsToParams[0] == 0); 1430if (argsToParamsOpt.IsDefault) 1508Debug.Assert(argsToParamsOpt.IsDefault || argsToParamsOpt.Length == argumentsBuilder.Count); 1514if (!argsToParamsOpt.IsDefault) 1710=> argsToParamsOpt.IsDefault
Binder\Binder_Lookup.cs (4)
222if (!errorType.CandidateSymbols.IsDefault && errorType.CandidateSymbols.Length == 1) 1357if (symbolFileIdentifier is null || symbolFileIdentifier.FilePathChecksumOpt.IsDefault) 1364return !binderFileIdentifier.FilePathChecksumOpt.IsDefault 1523if (!publicKey.IsDefault)
Binder\Binder_Patterns.cs (2)
1040deconstructionSubpatterns.IsDefault; 1416hasErrors = outPlaceholders.IsDefault || tupleDesignation.Variables.Count != outPlaceholders.Length;
Binder\Binder_Symbols.cs (2)
1448typeArguments.IsDefault ? 0 : typeArguments.Length, 1887int 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)
244if (getEnumeratorMethod.ParameterRefKinds is { IsDefault: false } refKinds && refKinds[0] == RefKind.Ref) 1222Debug.Assert(argsToParams.IsDefault); 1477Debug.Assert(argsToParams.IsDefault); 1935Debug.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 (2)
154if (this.ConversionsOpt.IsDefault) 165if (ArgsToParamsOpt.IsDefault)
Binder\Semantics\OverloadResolution\MethodGroup.cs (2)
54if (!typeArguments.IsDefault) 69if (!typeArguments.IsDefault)
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (15)
277Debug.Assert(!methodTypeParameters.IsDefault); 279Debug.Assert(!formalParameterTypes.IsDefault); 280Debug.Assert(formalParameterRefKinds.IsDefault || formalParameterRefKinds.Length == formalParameterTypes.Length); 281Debug.Assert(!arguments.IsDefault); 426return _formalParameterRefKinds.IsDefault ? RefKind.None : _formalParameterRefKinds[index]; 575Debug.Assert(!_formalParameterTypes.IsDefault); 576Debug.Assert(!_arguments.IsDefault); 1456if (fixedParameters.IsDefault) 1548if (delegateParameters.IsDefault) 1904&& (sourceSignature.ParameterRefKinds.IsDefault, targetSignature.ParameterRefKinds.IsDefault) switch 3077if (originalDelegateParameters.IsDefault) 3198Debug.Assert(!arguments.IsDefault); 3233Debug.Assert(!_formalParameterTypes.IsDefault); 3235Debug.Assert(!_arguments.IsDefault);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (7)
2593if (conversionsOpt.IsDefault) 3702if (p1.IsDefault || p2.IsDefault) 3845int parm = argToParamMap.IsDefault ? arg : argToParamMap[arg]; 3987var parm = argToParamMap.IsDefault ? arg : argToParamMap[arg]; 4225if (typeArguments.IsDefault) 4445RefKind parameterRefKind = parameters.ParameterRefKinds.IsDefault ? RefKind.None : parameters.ParameterRefKinds[argumentPosition];
Binder\Semantics\OverloadResolution\OverloadResolution_ArgsToParameters.cs (1)
346Debug.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)
283if (_lazyUsings.IsDefault) 341Debug.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 (1)
23if (list.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); 1472public override bool HasSignature { get { return !_parameterNames.IsDefault; } } 1481public override bool HasExplicitlyTypedParameterList { get { return !_parameterTypesWithAnnotations.IsDefault; } } 1483public override int ParameterCount { get { return _parameterNames.IsDefault ? 0 : _parameterNames.Length; } } 1519return _parameterAttributes.IsDefault ? default : _parameterAttributes[index]; 1524Debug.Assert(!_parameterNames.IsDefault && 0 <= index && index < _parameterNames.Length); 1530return _parameterIsDiscardOpt.IsDefault ? false : _parameterIsDiscardOpt[index]; 1536return _parameterRefKinds.IsDefault ? Microsoft.CodeAnalysis.RefKind.None : _parameterRefKinds[index]; 1542return _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)
722if (!sideeffects.IsDefault) 1257Debug.Assert(!arguments.IsDefault); 1258Debug.Assert(!parameters.IsDefault); 1761if (!initializers.IsDefault)
Compilation\CSharpCompilation.cs (12)
2241if (!method.ParameterRefKinds.IsDefault) 3257if (_lazyClsComplianceDiagnostics.IsDefault || _lazyClsComplianceDependencies.IsDefault) 3266Debug.Assert(!_lazyClsComplianceDependencies.IsDefault); 3267Debug.Assert(!_lazyClsComplianceDiagnostics.IsDefault); 4032if (parameterTypes.IsDefault) 4045if (parameterRefKinds.IsDefault) 4127var annotation = (elementNullableAnnotations.IsDefault ? typeSymbol.NullableAnnotation : elementNullableAnnotations[i]).ToInternalAnnotation(); 4161if (!elementNullableAnnotations.IsDefault) 4183if (!memberIsReadOnly.IsDefault && memberIsReadOnly.Any(static v => !v)) 4194var location = memberLocations.IsDefault ? Location.None : memberLocations[i]; 4195var nullableAnnotation = memberNullableAnnotations.IsDefault ? NullableAnnotation.Oblivious : memberNullableAnnotations[i].ToInternalAnnotation();
Compilation\CSharpSemanticModel.cs (13)
723Debug.Assert(boundNode == null || crefSymbols.IsDefault); 726return crefSymbols.IsDefault ? SymbolInfo.None : GetCrefSymbolInfo(OneOrMany.Create(crefSymbols), SymbolInfoOptions.DefaultOptions, hasParameterList: false); 1053Debug.Assert(boundNode == null || crefSymbols.IsDefault); 1056return !crefSymbols.IsDefault && crefSymbols.Length == 1 1200Debug.Assert(boundNode == null || crefSymbols.IsDefault); 1203return !crefSymbols.IsDefault && crefSymbols.Length == 1 3439if (call.OriginalMethodsOpt.IsDefault) 3487symbols = originalIndexersOpt.IsDefault ? OneOrMany.Create<Symbol>(indexerAccess.Indexer) : StaticCast<Symbol>.From(OneOrMany.Create(originalIndexersOpt)); 3946else if (!originalCandidates.IsDefault) 4268if (call.OriginalMethodsOpt.IsDefault) 4417if (indexer.OriginalIndexersOpt.IsDefault) 4614if (typeArguments.IsDefault) 4751Debug.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)
1932if (!usingAliases.IsDefault) 1965if (!externAliases.IsDefault)
Compiler\ClsComplianceChecker.cs (3)
1363bool sawRefKindDifference = xRefKinds.IsDefault != yRefKinds.IsDefault; 1403if (!xRefKinds.IsDefault)
Compiler\MethodCompiler.cs (1)
915if (!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\MergedTypeDeclaration.cs (1)
226if (_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)
123if (lazyFiles.IsDefault)
Emitter\Model\PEModuleBuilder.cs (1)
614if (_lazyExportedTypes.IsDefault)
FlowAnalysis\AbstractFlowPass.cs (1)
1568return 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)
563Debug.Assert(unused.IsDefault); 663Debug.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 (21)
2175if (nodes.IsDefault) 4382if (!argumentResults.IsDefault) 6494public bool IsDefault => Arguments.IsDefault || Results.IsDefault; 6521Debug.Assert(argsToParamsOpt is { IsDefault: true } or { Length: 3 }); 6522var (comparandIndex, valueIndex, locationIndex) = argsToParamsOpt.IsDefault 6776Debug.Assert(!arguments.IsDefault); 6777Debug.Assert(!expanded || !parametersOpt.IsDefault); 6779Debug.Assert(argsToParamsOpt.IsDefault || argsToParamsOpt.Length == arguments.Length); 6847bool parameterHasNotNullIfNotNull = !IsAnalyzingAttribute && !parametersOpt.IsDefault && parametersOpt.Any(static p => !p.NotNullIfParameterNotNull.IsEmpty); 6850if (!parametersOpt.IsDefault) 6877if (node is BoundCall { HasErrors: true, ArgumentNamesOpt.IsDefaultOrEmpty: false, ArgsToParamsOpt.IsDefault: true } && 6892conversions.IsDefault || i >= conversions.Length ? Conversion.Identity : conversions[i], 6922if (!node.HasErrors && !parametersOpt.IsDefault) 7008Debug.Assert(parametersOpt.IsDefault || arguments.Length == parametersOpt.Length); 7024if (!argsToParamsOpt.IsDefault) 7044if (!argsToParamsOpt.IsDefault) 7242resultsBuilder.Add(VisitArgumentEvaluate(arguments[i], GetRefKind(refKindsOpt, i), parameterAnnotationsOpt.IsDefault ? default : parameterAnnotationsOpt[i])); 7255if (!parametersOpt.IsDefault) 7788if (parametersOpt.IsDefault) 8501var 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)
296RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 314RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 344RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 374RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 984RoslynDebug.Assert(!symbols.IsDefault, "Field 'symbols' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 985RoslynDebug.Assert(!childBoundNodes.IsDefault, "Field 'childBoundNodes' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 1017RoslynDebug.Assert(!childBoundNodes.IsDefault, "Field 'childBoundNodes' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 1451RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 2054RoslynDebug.Assert(!indices.IsDefault, "Field 'indices' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3068RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3309RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3310RoslynDebug.Assert(!localFunctions.IsDefault, "Field 'localFunctions' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3311RoslynDebug.Assert(!statements.IsDefault, "Field 'statements' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3345RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3346RoslynDebug.Assert(!statements.IsDefault, "Field 'statements' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3374RoslynDebug.Assert(!fields.IsDefault, "Field 'fields' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3441RoslynDebug.Assert(!localDeclarations.IsDefault, "Field 'localDeclarations' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3455RoslynDebug.Assert(!localDeclarations.IsDefault, "Field 'localDeclarations' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3481RoslynDebug.Assert(!localDeclarations.IsDefault, "Field 'localDeclarations' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3776RoslynDebug.Assert(!innerLocals.IsDefault, "Field 'innerLocals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3777RoslynDebug.Assert(!innerLocalFunctions.IsDefault, "Field 'innerLocalFunctions' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3778RoslynDebug.Assert(!switchSections.IsDefault, "Field 'switchSections' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3821RoslynDebug.Assert(!cases.IsDefault, "Field 'cases' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3917RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3939RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3969RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 3999RoslynDebug.Assert(!outerLocals.IsDefault, "Field 'outerLocals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 4000RoslynDebug.Assert(!innerLocals.IsDefault, "Field 'innerLocals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 4042RoslynDebug.Assert(!iterationVariables.IsDefault, "Field 'iterationVariables' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 4123RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 4162RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 4228RoslynDebug.Assert(!catchBlocks.IsDefault, "Field 'catchBlocks' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 4264RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 4814RoslynDebug.Assert(!statements.IsDefault, "Field 'statements' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 4823RoslynDebug.Assert(!statements.IsDefault, "Field 'statements' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 4885RoslynDebug.Assert(!switchArms.IsDefault, "Field 'switchArms' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 4908RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 4948RoslynDebug.Assert(!switchArms.IsDefault, "Field 'switchArms' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 4976RoslynDebug.Assert(!switchArms.IsDefault, "Field 'switchArms' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 5116RoslynDebug.Assert(!bindings.IsDefault, "Field 'bindings' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 5663RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 5664RoslynDebug.Assert(!switchLabels.IsDefault, "Field 'switchLabels' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 5665RoslynDebug.Assert(!statements.IsDefault, "Field 'statements' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 5770RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 5771RoslynDebug.Assert(!sideEffects.IsDefault, "Field 'sideEffects' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 5806RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 5807RoslynDebug.Assert(!sideEffects.IsDefault, "Field 'sideEffects' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 5882RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 5898RoslynDebug.Assert(!applicableMethods.IsDefault, "Field 'applicableMethods' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 5900RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6080RoslynDebug.Assert(!methods.IsDefault, "Field 'methods' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6120RoslynDebug.Assert(!properties.IsDefault, "Field 'properties' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6149RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6242RoslynDebug.Assert(!constructorArguments.IsDefault, "Field 'constructorArguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6243RoslynDebug.Assert(!namedArguments.IsDefault, "Field 'namedArguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6287RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6347RoslynDebug.Assert(!constructorsGroup.IsDefault, "Field 'constructorsGroup' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6348RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6397RoslynDebug.Assert(!elements.IsDefault, "Field 'elements' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6411RoslynDebug.Assert(!elements.IsDefault, "Field 'elements' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6439RoslynDebug.Assert(!elements.IsDefault, "Field 'elements' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6551RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6569RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6596RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6627RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6628RoslynDebug.Assert(!applicableMethods.IsDefault, "Field 'applicableMethods' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6702RoslynDebug.Assert(!initializers.IsDefault, "Field 'initializers' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6721RoslynDebug.Assert(!initializers.IsDefault, "Field 'initializers' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6748RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6843RoslynDebug.Assert(!initializers.IsDefault, "Field 'initializers' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6871RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6915RoslynDebug.Assert(!applicableMethods.IsDefault, "Field 'applicableMethods' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6917RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6983RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 6984RoslynDebug.Assert(!declarations.IsDefault, "Field 'declarations' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 7124RoslynDebug.Assert(!bounds.IsDefault, "Field 'bounds' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 7156RoslynDebug.Assert(!initializers.IsDefault, "Field 'initializers' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 7417RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 7472RoslynDebug.Assert(!argumentPlaceholders.IsDefault, "Field 'argumentPlaceholders' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 7558RoslynDebug.Assert(!arguments.IsDefault, "Field 'arguments' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 7559RoslynDebug.Assert(!applicableIndexers.IsDefault, "Field 'applicableIndexers' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 7722RoslynDebug.Assert(!statements.IsDefault, "Field 'statements' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 7781RoslynDebug.Assert(!parts.IsDefault, "Field 'parts' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 7797RoslynDebug.Assert(!parts.IsDefault, "Field 'parts' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 7823RoslynDebug.Assert(!parts.IsDefault, "Field 'parts' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 8177RoslynDebug.Assert(!subpatterns.IsDefault, "Field 'subpatterns' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 8262RoslynDebug.Assert(!subpatterns.IsDefault, "Field 'subpatterns' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 8735RoslynDebug.Assert(!locals.IsDefault, "Field 'locals' cannot be null (use Null=\"allow\" in BoundNodes.xml to remove this check)"); 15134new TreeDumperNode("boundDimensionsOpt", null, node.BoundDimensionsOpt.IsDefault ? Array.Empty<TreeDumperNode>() : from x in node.BoundDimensionsOpt select Visit(x, null)), 15736new TreeDumperNode("argumentsOpt", null, node.ArgumentsOpt.IsDefault ? Array.Empty<TreeDumperNode>() : from x in node.ArgumentsOpt select Visit(x, null)), 16939new TreeDumperNode("deconstruction", null, node.Deconstruction.IsDefault ? Array.Empty<TreeDumperNode>() : from x in node.Deconstruction select Visit(x, null)), 16940new TreeDumperNode("properties", null, node.Properties.IsDefault ? Array.Empty<TreeDumperNode>() : from x in node.Properties select Visit(x, null)),
Lowering\ClosureConversion\ClosureConversion.cs (8)
886Debug.Assert(!arguments.IsDefault); 916if (!argRefKinds.IsDefault) 962Debug.Assert(!typeArguments.IsDefault); 1023Debug.Assert((typeArgumentsOpt.IsDefault && !originalMethod.IsGenericMethod) || (typeArgumentsOpt.Length == originalMethod.Arity)); 1026if (!typeArgumentsOpt.IsDefault) 1077Debug.Assert(node.ArgsToParamsOpt.IsDefault, "should be done with argument reordering by now"); 1378Debug.Assert(arguments.IsDefault && 1379argRefKinds.IsDefault &&
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (1)
111if (_members.IsDefault)
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
218internal 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\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) 664Debug.Assert(argumentRefKindsOpt.IsDefault || argumentRefKindsOpt.Length == arguments.Length); 878var paramIndex = argsToParamsOpt.IsDefault ? argIndex : argsToParamsOpt[argIndex]; 1163var argRefKind = argumentRefKindsOpt.IsDefault ? RefKind.None : argumentRefKindsOpt[i]; 1169var argRefKind = argumentRefKindsOpt.IsDefault ? RefKind.None : argumentRefKindsOpt[i]; 1187Debug.Assert(argumentRefKindsOpt.IsDefault || argumentRefKindsOpt.Length >= parameters.Length); 1194if (!argumentRefKindsOpt.IsDefault) 1226Debug.Assert(argsToParamsOpt.IsDefault); 1239argsToParamsOpt.IsDefault && 1320int p = (!argsToParamsOpt.IsDefault) ? argsToParamsOpt[a] : a; 1662Debug.Assert(node.TypeArgumentsOpt.IsDefault);
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (1)
223Debug.Assert(!deconstructConversionInfo.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)
64Debug.Assert(!typeParameters.IsDefault); 65Debug.Assert(_typeParameters.IsDefault); 111if (_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)
983if (!parameters.IsDefault)
SymbolDisplay\SymbolDisplayVisitor.Types.cs (2)
518if (modifiers.IsDefault) 826if (!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)
57if (sizes.IsDefaultOrEmpty && lowerBounds.IsDefault) 179if (thisLowerBounds.IsDefault) 181return other.LowerBounds.IsDefault; 186return !otherLowerBounds.IsDefault && thisLowerBounds.SequenceEqual(otherLowerBounds); 638Debug.Assert(!sizes.IsDefaultOrEmpty || !lowerBounds.IsDefault);
Symbols\Attributes\PEAttributeData.cs (2)
100if (_lazyConstructorArguments.IsDefault || _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)
315if (_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\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)
219if (_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) 1052Debug.Assert(!attributeData.IsDefault); 1071return attributeData.IsDefault 1144if (this.ParameterRefKinds.IsDefault) 1297if (!explicitInterfaceImplementations.IsDefault) 1528Debug.Assert(!result.IsDefault); 1546return result.IsDefault
Symbols\Metadata\PE\PEModuleSymbol.cs (2)
244if (_lazyCustomAttributes.IsDefault) 253if (_lazyAssemblyAttributes.IsDefault)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (15)
156return lazyInstanceEnumFields.IsDefault && 158lazyCustomAttributes.IsDefault && 159lazyConditionalAttributeSymbols.IsDefault && 169lazyFilePathChecksum.IsDefault && 400internal sealed override bool IsFileLocal => _lazyUncommonProperties is { lazyFilePathChecksum: { IsDefault: false }, lazyDisplayFileName: { } }; 408return _lazyUncommonProperties is { lazyFilePathChecksum: { IsDefault: false } checksum, lazyDisplayFileName: { } displayFileName } 485if (_lazyInterfaces.IsDefault) 532if (_lazyDeclaredInterfaces.IsDefault) 702if (uncommon.lazyCustomAttributes.IsDefault) 930if (uncommon.lazyInstanceEnumFields.IsDefault) 1273if (_lazyMembersInDeclarationOrder.IsDefault) 1534if (!candidates.IsDefault && candidates.Length == 1) 2378if (uncommon.lazyConditionalAttributeSymbols.IsDefault) 2381Debug.Assert(!conditionalSymbols.IsDefault); 2691if (_lazyTypeParameters.IsDefault)
Symbols\Metadata\PE\PENamespaceSymbol.cs (2)
69if (_lazyFlattenedNamespacesAndTypes.IsDefault) 99if (_lazyFlattenedTypes.IsDefault)
Symbols\Metadata\PE\PEParameterSymbol.cs (4)
843return indexes.IsDefault; 867else if (paramNames.IsDefault || Type is not NamedTypeSymbol { IsInterpolatedStringHandlerType: true }) 1057if (_lazyCustomAttributes.IsDefault) 1156Debug.Assert(!_lazyHiddenAttributes.IsDefault);
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
760if (result.IsDefault)
Symbols\Metadata\PE\PETypeParameterSymbol.cs (3)
155if (_lazyDeclaredConstraintTypes.IsDefault) 641if (_lazyCustomAttributes.IsDefault) 665Debug.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)
864if (typeArguments.IsDefault)
Symbols\MissingAssemblySymbol.cs (1)
78if (_lazyModules.IsDefault)
Symbols\NamedTypeSymbol.cs (5)
908return elementNames.IsDefault ? otherElementNames.IsDefault : !otherElementNames.IsDefault && elementNames.SequenceEqual(otherElementNames); 1170if (typeArguments.IsDefault) 1199if (typeArguments.IsDefault)
Symbols\NamespaceOrTypeSymbol.cs (1)
364&& !identifier.FilePathChecksumOpt.IsDefault
Symbols\NamespaceSymbol.cs (1)
315if (typesWithExtensionMethods.IsDefault)
Symbols\NativeIntegerTypeSymbol.cs (3)
71if (_lazyMembers.IsDefault) 218if (_lazyInterfaces.IsDefault) 357if (_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) 299if (_lazyExplicitInterfaceImplementations.IsDefault)
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (3)
67if (_lazyTypeParameters.IsDefault) 305if (_lazyInterfaces.IsDefault) 342if (_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 (3)
469if (_lazyTypeParameterConstraintTypes.IsDefault) 486if (_lazyTypeParameterConstraintTypes.IsDefault) 501if (_lazyTypeParameterConstraintKinds.IsDefault)
Symbols\Source\SourceAssemblySymbol.cs (8)
124Debug.Assert(!netModules.IsDefault); 1599Debug.Assert(!attributes.IsDefault); 1600Debug.Assert(!netmoduleAttributes.IsDefault); 1614Debug.Assert(!attributes.IsDefault); 2620if (_unusedFieldWarnings.IsDefault) 2650Debug.Assert(_unusedFieldWarnings.IsDefault, "We shouldn't have computed the diagnostics if we're still noting definitions."); 2666if (_unusedFieldWarnings.IsDefault) 2776Debug.Assert(!_unusedFieldWarnings.IsDefault);
Symbols\Source\SourceComplexParameterSymbol.cs (5)
141=> GetDecodedWellKnownAttributeData()?.InterpolatedStringHandlerArguments.IsDefault ?? false; 480if (implParameters.IsDefault) 501if (defParameters.IsDefault) 1390Debug.Assert(!boundAttributes.IsDefault); 1391Debug.Assert(!allAttributeSyntaxNodes.IsDefault);
Symbols\Source\SourceConstructorSymbolBase.cs (1)
114if (!_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 (13)
825Debug.Assert(!useSiteDiagnostics.IsDefault); 834Debug.Assert(!useSiteDependencies.IsDefault); 1064Debug.Assert(!nonTypeMembers.IsDefault); 1065Debug.Assert(!staticInitializers.IsDefault); 1066Debug.Assert(staticInitializers.All(g => !g.IsDefault)); 1067Debug.Assert(!instanceInitializers.IsDefault); 1068Debug.Assert(instanceInitializers.All(g => !g.IsDefault)); 1447if (result.IsDefault) 1882Debug.Assert(fileIdentifier.FilePathChecksumOpt.IsDefault); 2963Debug.Assert(!nonTypeMembers.IsDefault); 2983Debug.Assert(!initializers.IsDefault); 3279if (_lazySimpleProgramEntryPoints.IsDefault) 3292Debug.Assert(!_lazySimpleProgramEntryPoints.IsDefault);
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (3)
760Debug.Assert(!overriddenMembers.IsDefault); 765Debug.Assert(!hiddenMembers.IsDefault); 1564Debug.Assert(!hiddenMembers.IsDefault);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
1459Debug.Assert(!boundAttributes.IsDefault); 1460Debug.Assert(!allAttributeSyntaxNodes.IsDefault);
Symbols\Source\SourceModuleSymbol.cs (3)
129if (_lazyAssembliesToEmbedTypesFrom.IsDefault) 147Debug.Assert(!_lazyAssembliesToEmbedTypesFrom.IsDefault); 407if (_locations.IsDefault)
Symbols\Source\SourceNamedTypeSymbol.cs (7)
273if (_typeParameterInfo.LazyTypeParameterConstraintTypes.IsDefault) 287Debug.Assert(!_typeParameterInfo.LazyTypeParameterConstraintTypes.IsDefault); 302if (_typeParameterInfo.LazyTypeParameterConstraintKinds.IsDefault) 309Debug.Assert(!_typeParameterInfo.LazyTypeParameterConstraintKinds.IsDefault); 747if (_typeParameterInfo.LazyTypeParameters.IsDefault) 1565Debug.Assert(!boundAttributes.IsDefault); 1566Debug.Assert(!allAttributeSyntaxNodes.IsDefault);
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
68if (_lazyInterfaces.IsDefault) 77if (ImmutableInterlocked.InterlockedCompareExchange(ref _lazyInterfaces, acyclicInterfaces, default(ImmutableArray<NamedTypeSymbol>)).IsDefault)
Symbols\Source\SourceNamespaceSymbol.cs (3)
92if (_locations.IsDefault) 139if (result.IsDefault) 181if (_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 || 641if (!declaredConstraints.IsDefault && overriddenOrExplicitlyImplementedMethod is object) 1023Debug.Assert(!_typeParameterInfo.LazyTypeParameters.IsDefault); 1030if (_typeParameterInfo.LazyTypeParameterConstraintTypes.IsDefault) 1060if (_typeParameterInfo.LazyTypeParameterConstraintKinds.IsDefault)
Symbols\Source\SourceParameterSymbol.cs (1)
59Debug.Assert(!inModifiers.IsDefault);
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
606if (_lazyExplicitInterfaceImplementations.IsDefault)
Symbols\Source\SourcePropertySymbolBase.cs (2)
1678Debug.Assert(!boundAttributes.IsDefault); 1679Debug.Assert(!allAttributeSyntaxNodes.IsDefault);
Symbols\Source\SynthesizedAttributeData.cs (2)
37Debug.Assert(!arguments.IsDefault); 38Debug.Assert(!namedArguments.IsDefault); // Frequently empty though.
Symbols\Source\TypeParameterConstraintClause.cs (1)
86Debug.Assert(!constraintTypes.IsDefault);
Symbols\SubstitutedEventSymbol.cs (1)
100if (_lazyExplicitInterfaceImplementations.IsDefault)
Symbols\SubstitutedMethodSymbol.cs (3)
102if (!_lazyTypeParameters.IsDefault) 252if (_lazyParameters.IsDefault) 275if (_lazyExplicitInterfaceImplementations.IsDefault)
Symbols\SubstitutedNamedTypeSymbol.cs (2)
99if (!_lazyTypeParameters.IsDefault) 233if (!_lazyMembers.IsDefault)
Symbols\SubstitutedPropertySymbol.cs (2)
77if (_lazyParameters.IsDefault) 118if (_lazyExplicitInterfaceImplementations.IsDefault)
Symbols\Symbol_Attributes.cs (2)
316Debug.Assert(!attributesToBind.IsDefault); 323Debug.Assert(!binders.IsDefault);
Symbols\SymbolDistinguisher.cs (2)
89if (!_lazyDescriptions.IsDefault) return; 135if (!_lazyDescriptions.IsDefault) return;
Symbols\SymbolExtensions.cs (1)
696if (symbols.IsDefault)
Symbols\Synthesized\GeneratedNames.cs (1)
553if (checksumOpt.IsDefault)
Symbols\Synthesized\SynthesizedContainer.cs (1)
44Debug.Assert(!typeParameters.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)
358Debug.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)
43Debug.Assert(elementNames.IsDefault || elementTypesWithAnnotations.Length == elementNames.Length); 167Debug.Assert(newElementNames.IsDefault || this.TupleElementTypesWithAnnotations.Length == newElementNames.Length); 182if (newData.ElementNames.IsDefault) 281if (sourceNames.IsDefault) 287bool noInferredNames = inferredNames.IsDefault; 290bool allMissing = destinationNames.IsDefault; 625var providedName = elementNames.IsDefault ? null : elementNames[tupleFieldIndex]; 672var isError = errorPositions.IsDefault ? false : errorPositions[tupleFieldIndex]; 747var providedName = elementNames.IsDefault ? null : elementNames[i]; 748var location = elementLocations.IsDefault ? null : elementLocations[i]; 844if (elementLocations.IsDefault) 860if (names1.IsDefault || names2.IsDefault) 875bool namesUnchanged = mergedNames.IsDefault ? TupleElementNames.IsDefault : mergedNames.SequenceEqual(TupleElementNames); 924Debug.Assert(underlyingType.TupleElementNames.IsDefault); 942if (other is null && this.ElementNames.IsDefault && this.ElementLocations.IsDefault && this.ErrorPositions.IsDefault) 954if (one.IsDefault && other.IsDefault) 959if (one.IsDefault != other.IsDefault) 971if (_lazyElementTypes.IsDefault) 1003if (_lazyDefaultElementFields.IsDefault)
Symbols\TypeMap.cs (1)
38return 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)
1273type.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)
201if (_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)
68if (matches.IsDefault)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocCodeFixProvider.cs (1)
44if (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.Features (8)
CodeRefactorings\SyncNamespace\CSharpChangeNamespaceService.cs (2)
237Debug.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)
68if (matches.IsDefault)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocCodeFixProvider.cs (1)
44if (matches.IsDefault)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
SourceGeneration\GeneratorDriverTests.cs (3)
567Assert.True(result.Diagnostics.IsDefault); 568Assert.True(result.GeneratedSources.IsDefault); 4397Assert.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)
361if (!groupSizes.IsDefault) 370if (!externAliasStrings.IsDefault) 388if (!externAliasStrings.IsDefault) 396Debug.Assert(!allModuleInfoImportStrings.IsDefault); 413if (groupSizes.IsDefault) 420Debug.Assert(!importStrings.IsDefault); 448if (externAliasStrings.IsDefault) 491Debug.Assert(!importStrings.IsDefault); 510Debug.Assert(!importStrings.IsDefault);
TupleElementNamesInfo.cs (1)
22Debug.Assert(!elementNames.IsDefault);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
TextEditorFactoryExtensions.cs (1)
25if (roles.IsDefault)
Workspaces\EditorTestHostDocument.cs (1)
73_roles = roles.IsDefault ? s_defaultRoles : roles;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
CodeGeneration\CodeGenerationTests.cs (1)
688=> parameters.IsDefault
Utilities\StackFrameUtils.cs (4)
92if (triviaArray.IsDefault) 124if (expected.IsDefault) 126Assert.True(actual.IsDefault, diffMessage); 130Assert.False(actual.IsDefault, diffMessage);
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
Suggestions\SuggestedActionWithNestedFlavors.cs (2)
73if (_nestedFlavors.IsDefault) 87Contract.ThrowIfTrue(_nestedFlavors.IsDefault);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Diagnostics\AbstractCrossLanguageUserDiagnosticTest.vb (1)
78If Not glyphTags.IsDefault Then
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (16)
DkmUtilities.cs (1)
194if (!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) 391if (record.IsDefault) 479if (record.IsDefault) 530if (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.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 (72)
CodeFixes\Suppression\AbstractSuppressionBatchFixAllProvider.cs (1)
116Debug.Assert(!diagnostics.IsDefault);
CodeFixes\Suppression\WrapperCodeFixProvider.cs (1)
42if (!suppressionFixes.IsDefault)
CodeRefactorings\CodeRefactoringContextExtensions.cs (1)
24if (!actions.IsDefault)
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (2)
111return !applicableContainers.IsDefault; 197if (containersFromAllDocuments.IsDefault)
Completion\CommonCompletionItem.cs (1)
45if (!description.IsDefault && description.Length > 0)
Completion\Providers\AbstractAggregateEmbeddedLanguageCompletionProvider.cs (2)
62if (_languageProviders.IsDefault) 116if (_languageProviders.IsDefault)
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (1)
237if (!symbols.IsDefault)
Completion\Providers\SymbolCompletionItem.cs (1)
49if (!properties.IsDefault)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (4)
524Debug.Assert(!newActiveStatementSpans.IsDefault); 791Debug.Assert(!newActiveStatementSpans.IsDefault); 802Contract.ThrowIfFalse(newExceptionRegions[i].IsDefault); 950Debug.Assert(!newActiveStatementSpans.IsDefault);
EditAndContinue\ActiveStatementExceptionRegions.cs (1)
24Contract.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)
638Contract.ThrowIfTrue(analysis.ActiveStatements.IsDefault);
EditAndContinue\ProjectChanges.cs (3)
46Debug.Assert(!semanticEdits.IsDefault); 47Debug.Assert(!lineChanges.IsDefault); 48Debug.Assert(!activeStatementChanges.IsDefault);
EditAndContinue\TraceLog.cs (1)
73=> (!Tokens.IsDefault) ? string.Join(",", Tokens.Select(token => token.ToString("X8"))) :
EmbeddedLanguages\StackFrame\StackFrameNodeDefinitions.cs (1)
352Debug.Assert(!commaTokens.IsDefault);
EmbeddedLanguages\StackFrame\StackFrameParser.cs (1)
479if (!success || arrayIdentifiers.IsDefault)
ExtractMethod\OperationStatus.cs (1)
22Contract.ThrowIfTrue(reasons.IsDefault);
FindUsages\DefinitionItem.cs (2)
233Contract.ThrowIfTrue(sourceSpans.IsDefault); 234Contract.ThrowIfTrue(metadataLocations.IsDefault);
GenerateConstructorFromMembers\AbstractGenerateConstructorFromMembersCodeRefactoringProvider.cs (1)
163if (!actions.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)
98if (parameterNames.IsDefault) 332var updatedDescription = item.DescriptionParts.IsDefault
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerAnalyzer.cs (2)
72if (preMatches.IsDefault || postMatches.IsDefault)
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (3)
212if (matches.IsDefault) 230if (preMatches.IsDefault || postMatches.IsDefault)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (2)
121ParameterTypes = ParameterTypes.IsDefault ? GetParameterTypes(cancellationToken) : ParameterTypes; 278=> _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)
43=> _parameterNames.IsDefault
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
44return _typeParameters.IsDefault
src\Compilers\Core\AnalyzerDriver\DeclarationInfo.cs (1)
18Debug.Assert(!executableCodeBlocks.IsDefault);
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (9)
361if (!groupSizes.IsDefault) 370if (!externAliasStrings.IsDefault) 388if (!externAliasStrings.IsDefault) 396Debug.Assert(!allModuleInfoImportStrings.IsDefault); 413if (groupSizes.IsDefault) 420Debug.Assert(!importStrings.IsDefault); 448if (externAliasStrings.IsDefault) 491Debug.Assert(!importStrings.IsDefault); 510Debug.Assert(!importStrings.IsDefault);
src\Dependencies\CodeAnalysis.Debugging\TupleElementNamesInfo.cs (1)
22Debug.Assert(!elementNames.IsDefault);
UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
358if (formattingRules.IsDefault)
Microsoft.CodeAnalysis.Features.Test.Utilities (4)
EditAndContinue\EditAndContinueTestVerifier.cs (3)
80if (!actualNewExceptionRegions.IsDefault) 171if (!expectedResult.SemanticEdits.IsDefault) 211else if (!expectedResult.LineEdits.IsDefault)
Snippets\AbstractSnippetProviderTests.cs (1)
86if (placeholderLocationsArray[i].IsDefault)
Microsoft.CodeAnalysis.InteractiveHost (4)
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);
Microsoft.CodeAnalysis.LanguageServer.Protocol (9)
Features\CodeFixes\CodeFixService.cs (2)
804lazyConfigurationProviders.Value.IsDefault) 856if (ids.IsDefault)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.ActiveFileState.cs (1)
65Contract.ThrowIfFalse(data.OldItems.IsDefault);
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.AnalysisData.cs (2)
46Debug.Assert(!items.IsDefault); 57Debug.Assert(!oldItems.IsDefault);
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.ProjectState.cs (4)
373if (!diagnostics.IsDefault) 383if (!diagnostics.IsDefault) 393if (!diagnostics.IsDefault) 408if (!diagnostics.IsDefault)
Microsoft.CodeAnalysis.Remote.ServiceHub (4)
Services\DependentTypeFinder\RemoteDependentTypeFinderService.cs (1)
44var projects = projectIdsOpt.IsDefault ? null : projectIdsOpt.Select(id => solution.GetRequiredProject(id)).ToImmutableHashSet();
Services\SemanticClassification\RemoteSemanticClassificationService.Caching.cs (2)
90if (classifiedSpans.IsDefault) 233if (classifiedSpans.IsDefault)
Services\SymbolFinder\RemoteSymbolFinderService.cs (1)
63var documents = documentArgs.IsDefault ? null :
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)
187if (!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\IRuntimeEnvironment.cs (1)
52if (pdb.IsDefault)
Compilation\OperationTreeVerifier.cs (2)
367var suffix = logNullForDefault && list.IsDefault ? ": null" : "(0)"; 887if (argumentRefKinds.IsDefault)
Metadata\ILBuilderVisualizer.cs (1)
153if (!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)
343Debug.Assert(!rawModule.IsDefault);
TargetFrameworkUtil.cs (1)
128if (s_references.IsDefault)
Microsoft.CodeAnalysis.UnitTests (2)
Collections\ImmutableArrayExtensionsTests.cs (1)
55Assert.True(nullOrEmpty.IsDefault);
MetadataReferences\AssemblyIdentityExtensions.cs (1)
36if (!identity.PublicKeyToken.IsDefault)
Microsoft.CodeAnalysis.VisualBasic (422)
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)
276Debug.Assert(Not source.Binders.IsDefault AndAlso source.Binders.Length = 1 AndAlso source.Binders(0) IsNot Nothing) 566Debug.Assert(Not result.Binders.IsDefault AndAlso result.Binders.Length = 2 AndAlso 1857Debug.Assert(itemsRangeVariables.IsDefault) 1891Debug.Assert(Not itemsRangeVariables.IsDefault) 1904Debug.Assert(keysRangeVariables.IsDefault) 2110Debug.Assert(intoRangeVariables.IsDefault) 2691Debug.Assert(declaredRangeVariables.IsDefault) 2738Debug.Assert(selectorSyntax IsNot Nothing AndAlso declaredRangeVariables.IsDefault) 2801Debug.Assert(Not declaredRangeVariables.IsDefault AndAlso selectorSyntax IsNot Nothing) 2936Debug.Assert(declaredRangeVariables.IsDefault) 2970Debug.Assert(Not declaredRangeVariables.IsDefault) 2988Debug.Assert(declaredRangeVariables.IsDefault) 3119Debug.Assert(joinSelectorDeclaredRangeVariables.IsDefault) 3776Debug.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) 1934If _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)
1429Debug.Assert(Not binders.IsDefault OrElse Not ShouldHaveFound(aggregate, guard:=True)) 1430Debug.Assert(binders.IsDefault OrElse (binders.Length > 0 AndAlso binders.Length < 3)) 1450Debug.Assert(Not binders.IsDefault OrElse Not ShouldHaveFound(aggregate, guard:=True)) 1451Debug.Assert(binders.IsDefault OrElse (binders.Length > 0 AndAlso binders.Length < 3 AndAlso binders(0) IsNot Nothing)) 1453If Not binders.IsDefault AndAlso binders.Length = 2 Then 1471Debug.Assert(Not binders.IsDefault OrElse Not ShouldHaveFound(join, guard:=True)) 1472Debug.Assert(binders.IsDefault OrElse binders.Length = 3) 1474If Not binders.IsDefault AndAlso binders.Length = 3 Then 1498Debug.Assert(Not binders.IsDefault OrElse Not ShouldHaveFound(join, guard:=True)) 1499Debug.Assert(binders.IsDefault OrElse (binders.Length > 1 AndAlso binders.Length < 4 AndAlso binders(0) IsNot Nothing)) 1539Debug.Assert(Not binders.IsDefault OrElse Not ShouldHaveFound(item, guard:=True)) 1540Debug.Assert(binders.IsDefault OrElse (binders.Length > 0 AndAlso binders.Length < 3 AndAlso binders(0) IsNot Nothing)) 1564Debug.Assert(Not binders.IsDefault OrElse Not ShouldHaveFound([let], guard:=True)) 1565Debug.Assert(binders.IsDefault OrElse (binders.Length = 1 AndAlso binders(0) IsNot Nothing)) 1587Debug.Assert(Not binders.IsDefault OrElse Not ShouldHaveFound(groupBy, guard:=True)) 1588Debug.Assert(binders.IsDefault OrElse (binders.Length = 2 OrElse binders.Length = 3)) 1625Debug.Assert(Not binders.IsDefault OrElse Not ShouldHaveFound(func, guard:=True)) 1626Debug.Assert(binders.IsDefault OrElse (binders.Length = 1 AndAlso binders(0) IsNot Nothing)) 1644Debug.Assert(Not binders.IsDefault OrElse Not ShouldHaveFound(operatorSyntax, guard:=True)) 1645Debug.Assert(binders.IsDefault OrElse (binders.Length = 1 AndAlso binders(0) IsNot Nothing)) 1842If Not bound.IsDefault Then 1858If bound.IsDefault Then 1863If Not bound.IsDefault Then 1883If bound.IsDefault Then 1891If Not bound.IsDefault Then 2063If 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\BoundMethodGroup.vb (1)
58If _lazyMethods.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) 1126If 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)
306Debug.Assert(Not entryPointAndDiagnostics.Diagnostics.IsDefault)
Compilation\TypeCompilationState.vb (1)
38Debug.Assert(Not stateMachineStatesDebugInfo.IsDefault)
Compilation\VisualBasicCompilation.vb (7)
890If _lazyAllSyntaxTrees.IsDefault Then 2219If _lazyClsComplianceDiagnostics.IsDefault OrElse _lazyClsComplianceDependencies.IsDefault Then 2227Debug.Assert(Not _lazyClsComplianceDependencies.IsDefault) 2228Debug.Assert(Not _lazyClsComplianceDiagnostics.IsDefault) 2933Dim loc = If(memberLocations.IsDefault, Location.None, memberLocations(i)) 2934Dim 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)
241Debug.Assert(Not (arguments.IsDefault), "Field 'arguments' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 249Debug.Assert(Not (arguments.IsDefault), "Field 'arguments' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 589Debug.Assert(Not (symbols.IsDefault), "Field 'symbols' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 590Debug.Assert(Not (childBoundNodes.IsDefault), "Field 'childBoundNodes' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 645Debug.Assert(Not (childBoundNodes.IsDefault), "Field 'childBoundNodes' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 761Debug.Assert(Not (indices.IsDefault), "Field 'indices' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 2223Debug.Assert(Not (elementPlaceholders.IsDefault), "Field 'elementPlaceholders' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 2224Debug.Assert(Not (convertedElements.IsDefault), "Field 'convertedElements' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 2685Debug.Assert(Not (methods.IsDefault), "Field 'methods' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 2743Debug.Assert(Not (properties.IsDefault), "Field 'properties' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 2907Debug.Assert(Not (clauses.IsDefault), "Field 'clauses' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 2942Debug.Assert(Not (indices.IsDefault), "Field 'indices' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 3005Debug.Assert(Not (clauses.IsDefault), "Field 'clauses' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 3040Debug.Assert(Not (arguments.IsDefault), "Field 'arguments' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 3136Debug.Assert(Not (constructorArguments.IsDefault), "Field 'constructorArguments' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 3137Debug.Assert(Not (namedArguments.IsDefault), "Field 'namedArguments' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 3390Debug.Assert(Not (arguments.IsDefault), "Field 'arguments' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 3410Debug.Assert(Not (arguments.IsDefault), "Field 'arguments' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 3460Debug.Assert(Not (arguments.IsDefault), "Field 'arguments' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 3520Debug.Assert(Not (arguments.IsDefault), "Field 'arguments' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 3618Debug.Assert(Not (declarations.IsDefault), "Field 'declarations' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 3619Debug.Assert(Not (arguments.IsDefault), "Field 'arguments' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 3763Debug.Assert(Not (initializers.IsDefault), "Field 'initializers' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 3791Debug.Assert(Not (initializers.IsDefault), "Field 'initializers' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 3830Debug.Assert(Not (initializers.IsDefault), "Field 'initializers' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 3959Debug.Assert(Not (bounds.IsDefault), "Field 'bounds' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 4032Debug.Assert(Not (bounds.IsDefault), "Field 'bounds' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 4108Debug.Assert(Not (initializers.IsDefault), "Field 'initializers' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 4215Debug.Assert(Not (arguments.IsDefault), "Field 'arguments' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 4354Debug.Assert(Not (locals.IsDefault), "Field 'locals' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 4355Debug.Assert(Not (statements.IsDefault), "Field 'statements' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 4405Debug.Assert(Not (fields.IsDefault), "Field 'fields' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 4524Debug.Assert(Not (localDeclarations.IsDefault), "Field 'localDeclarations' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 4576Debug.Assert(Not (localDeclarations.IsDefault), "Field 'localDeclarations' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 4680Debug.Assert(Not (initializedFields.IsDefault), "Field 'initializedFields' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 4715Debug.Assert(Not (initializedProperties.IsDefault), "Field 'initializedProperties' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 4827Debug.Assert(Not (locals.IsDefault), "Field 'locals' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 4828Debug.Assert(Not (sideEffects.IsDefault), "Field 'sideEffects' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 4970Debug.Assert(Not (caseBlocks.IsDefault), "Field 'caseBlocks' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 5080Debug.Assert(Not (caseClauses.IsDefault), "Field 'caseClauses' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 5771Debug.Assert(Not (catchBlocks.IsDefault), "Field 'catchBlocks' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 6652Debug.Assert(Not (statements.IsDefault), "Field 'statements' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 6790Debug.Assert(Not (parameters.IsDefault), "Field 'parameters' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 6809Debug.Assert(Not (parameters.IsDefault), "Field 'parameters' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7082Debug.Assert(Not (rangeVariables.IsDefault), "Field 'rangeVariables' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7084Debug.Assert(Not (binders.IsDefault), "Field 'binders' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7095Debug.Assert(Not (rangeVariables.IsDefault), "Field 'rangeVariables' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7097Debug.Assert(Not (binders.IsDefault), "Field 'binders' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7135Debug.Assert(Not (rangeVariables.IsDefault), "Field 'rangeVariables' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7137Debug.Assert(Not (binders.IsDefault), "Field 'binders' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7186Debug.Assert(Not (rangeVariables.IsDefault), "Field 'rangeVariables' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7188Debug.Assert(Not (binders.IsDefault), "Field 'binders' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7259Debug.Assert(Not (rangeVariables.IsDefault), "Field 'rangeVariables' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7363Debug.Assert(Not (parameters.IsDefault), "Field 'parameters' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7375Debug.Assert(Not (parameters.IsDefault), "Field 'parameters' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7427Debug.Assert(Not (rangeVariables.IsDefault), "Field 'rangeVariables' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7429Debug.Assert(Not (binders.IsDefault), "Field 'binders' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7687Debug.Assert(Not (locals.IsDefault), "Field 'locals' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 7894Debug.Assert(Not (childNodes.IsDefault), "Field 'childNodes' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 8169Debug.Assert(Not (childNodes.IsDefault), "Field 'childNodes' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 8560Debug.Assert(Not (jumps.IsDefault), "Field 'jumps' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 8610Debug.Assert(Not (jumps.IsDefault), "Field 'jumps' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 8758Debug.Assert(Not (locals.IsDefault), "Field 'locals' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 8759Debug.Assert(Not (spillFields.IsDefault), "Field 'spillFields' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 8760Debug.Assert(Not (statements.IsDefault), "Field 'statements' cannot be null (use Null=""allow"" in BoundNodes.xml to remove this check)") 9245Debug.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 (37)
707Return Not OptionalArguments.IsDefault 887If typeArguments.IsDefault Then 891If arguments.IsDefault Then 902If Not methods.IsDefault Then 1012If arguments.IsDefault Then 1076Debug.Assert(argumentNames.IsDefault OrElse argumentNames.Length = arguments.Length) 1129ShadowBasedOnInferenceLevel(candidates, arguments, Not argumentNames.IsDefault, delegateReturnType, binder, 1938Debug.Assert(left.ArgsToParamsOpt.IsDefault = right.ArgsToParamsOpt.IsDefault) 1940If left.ArgsToParamsOpt.IsDefault Then 1949If right.ArgsToParamsOpt.IsDefault Then 2241Debug.Assert(left.ArgsToParamsOpt.IsDefault = right.ArgsToParamsOpt.IsDefault) 2243If left.ArgsToParamsOpt.IsDefault Then 2252If right.ArgsToParamsOpt.IsDefault Then 2678Debug.Assert(Not arguments.IsDefault) 2679Debug.Assert(argumentNames.IsDefault OrElse (argumentNames.Length > 0 AndAlso argumentNames.Length = arguments.Length)) 2687If Not argumentNames.IsDefault Then 2709If Not argumentNames.IsDefault AndAlso argumentNames(i) IsNot Nothing Then 2863Debug.Assert(Not arguments.IsDefault) 2864Debug.Assert(argumentNames.IsDefault OrElse (argumentNames.Length > 0 AndAlso argumentNames.Length = arguments.Length)) 3502Debug.Assert(argumentNames.IsDefault OrElse (argumentNames.Length > 0 AndAlso argumentNames.Length = arguments.Length)) 3923Debug.Assert(argumentNames.IsDefault OrElse argumentNames.Length > 0) 3924Debug.Assert(Not operatorResolution OrElse argumentNames.IsDefault) 3983If argumentNames.IsDefault Then 4044If Not argumentNames.IsDefault AndAlso Not signatureMatch Then 4050Debug.Assert(argumentNames.IsDefault) 4070Debug.Assert(argumentNames.IsDefault OrElse signatureMatch) 4076If argumentNames.IsDefault OrElse 4258Debug.Assert(left.ArgsToParamsOpt.IsDefault = right.ArgsToParamsOpt.IsDefault) 4260If left.ArgsToParamsOpt.IsDefault Then 4270If right.ArgsToParamsOpt.IsDefault Then 4438Debug.Assert(left.ArgsToParamsOpt.IsDefault = right.ArgsToParamsOpt.IsDefault) 4440If left.ArgsToParamsOpt.IsDefault Then 4450If 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)
632Debug.Assert(Not attributeData.IsDefault) 646Return If(attributeData.IsDefault, 774If Me._lazyTypeParameters.IsDefault Then 1010_lazyTypeParameters.IsDefault Then 1081If Not typeParams.IsDefault Then 1119If Not _lazyExplicitMethodImplementations.IsDefault Then 1289Debug.Assert(Not conditionalSymbols.IsDefault) 1303Return If(result.IsDefault,
Symbols\Metadata\PE\PEModuleSymbol.vb (2)
142If _lazyCustomAttributes.IsDefault Then 150If _lazyAssemblyAttributes.IsDefault Then
Symbols\Metadata\PE\PENamedTypeSymbol.vb (4)
413If _lazyCustomAttributes.IsDefault Then 851If _lazyTypeParameters.IsDefault Then 1448If Me._lazyConditionalAttributeSymbols.IsDefault Then 1450Debug.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)
335If _lazyCustomAttributes.IsDefault Then
Symbols\Metadata\PE\PETypeParameterSymbol.vb (3)
144If _lazyCustomAttributes.IsDefault Then 315If _lazyConstraintTypes.IsDefault Then 327If _lazyConstraintTypes.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)
71If _lazyModules.IsDefault Then
Symbols\NamedTypeSymbol.vb (4)
780Debug.Assert(Not value.IsDefault) 800If _lazyDeclaredInterfaces.IsDefault Then 889If Me._lazyInterfaces.IsDefault Then 929If 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 454If _lazyExplicitInterfaceImplementations.IsDefault Then
Symbols\Retargeting\RetargetingNamedTypeSymbol.vb (1)
89If _lazyTypeParameters.IsDefault Then
Symbols\Retargeting\RetargetingPropertySymbol.vb (2)
201If _lazyParameters.IsDefault Then 270If _lazyExplicitInterfaceImplementations.IsDefault Then
Symbols\Retargeting\RetargetingSymbolTranslator.vb (3)
632If lazyCustomModifiers.IsDefault Then 705If Not constructorArguments.IsDefault AndAlso constructorArguments.Any() Then 788If 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)
84Debug.Assert(Not netModules.IsDefault) 1202If _lazyAssemblyLevelDeclarationErrors.IsDefault OrElse _lazyAssemblyLevelDeclarationDependencies.IsDefault Then 1283Debug.Assert(Not _lazyAssemblyLevelDeclarationErrors.IsDefault) 1284Debug.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)
2363If Not fieldOrPropertyArray.IsDefault Then 3143If _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)
835If _lazyLocations.IsDefault Then 1248Debug.Assert(Not TypeParameters.IsDefault) 1832Debug.Assert(Not boundAttributes.IsDefault) 1833Debug.Assert(Not allAttributeSyntaxNodes.IsDefault) 2049If Not Me._lazyParameters.IsDefault Then 2082If _lazyParameters.IsDefault Then
Symbols\Source\SourceModuleSymbol.vb (9)
206If _locations.IsDefault Then 281If _lazyAssembliesToEmbedTypesFrom.IsDefault Then 294Debug.Assert(Not _lazyAssembliesToEmbedTypesFrom.IsDefault) 499If Not memberImports.IsDefault Then 511If Not aliasImports.IsDefault Then 765If _lazyLinkedAssemblyDiagnostics.IsDefault Then 935Debug.Assert(Not value.IsDefault) 941If variable.IsDefault Then 963Debug.Assert(Not attributesToStore.IsDefault)
Symbols\Source\SourceNamedTypeSymbol.vb (5)
764Return Not Me.Constraints.IsDefault 771If _lazyTypeParameters.IsDefault Then 953If Not typeParameters.IsDefault Then 2383Debug.Assert(Not boundAttributes.IsDefault) 2384Debug.Assert(Not allAttributeSyntaxNodes.IsDefault)
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (5)
66Debug.Assert(Not _syntheticInterfaces.IsDefault) 74Debug.Assert(Not _syntheticInterfaces.IsDefault) 84Debug.Assert(Not _syntheticInterfaces.IsDefault) 94Debug.Assert(Not _syntheticInterfaces.IsDefault) 117If 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)
737If _lazyParameters.IsDefault Then 811If Not Me._lazyParameters.IsDefault Then 868If _lazyImplementedProperties.IsDefault Then 895Debug.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)
601Debug.Assert(Not typeParameters.IsDefault AndAlso typeParameters.Length = DirectCast(substitution.TargetGenericDefinition, MethodSymbol).Arity) 664If typeArguments.IsDefault Then
Symbols\SubstitutedNamedType.vb (2)
706Debug.Assert(Not typeParameters.IsDefault AndAlso typeParameters.Length = DirectCast(substitution.TargetGenericDefinition, NamedTypeSymbol).Arity) 770If 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) 328If Not _parameters.IsDefault Then
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (1)
52If 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)
92If _providedElementNames.IsDefault Then 96If _lazyActualElementNames.IsDefault Then 115Dim isDefault As Boolean = Me._lazyFields.IsDefault 345Debug.Assert(elementLocations.IsDefault OrElse elementLocations.Length = elementTypes.Length) 346Debug.Assert(elementNames.IsDefault OrElse elementNames.Length = elementTypes.Length) 370Debug.Assert(elementNames.IsDefault OrElse elementTypes.Length = elementNames.Length) 484Debug.Assert(newElementNames.IsDefault OrElse Me._elementTypes.Length = newElementNames.Length) 486If Me._providedElementNames.IsDefault Then 487If newElementNames.IsDefault Then 491If Not newElementNames.IsDefault AndAlso Me._providedElementNames.SequenceEqual(newElementNames) Then 685Dim isDefault As Boolean = Me._lazyMembers.IsDefault 726Dim providedName = If(_providedElementNames.IsDefault, Nothing, _providedElementNames(tupleFieldIndex)) 727Dim location = If(_elementLocations.IsDefault, Nothing, _elementLocations(tupleFieldIndex)) 763Dim isError = If(_errorPositions.IsDefault, False, _errorPositions(tupleFieldIndex)) 836Dim providedName = If(_providedElementNames.IsDefault, Nothing, _providedElementNames(i)) 837Dim location = If(_elementLocations.IsDefault, Nothing, _elementLocations(i)) 993If myNames.IsDefault Then 994Return otherNames.IsDefault 997If otherNames.IsDefault Then 1108If sourceNames.IsDefault Then 1113Dim noInferredNames As Boolean = inferredNames.IsDefault 1116Dim 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)
443If _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 (83)
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 (5)
77Debug.Assert(!others.IsDefault); 78Debug.Assert(!syntaxLocals.Values.Any(item => item.IsDefault)); 79Debug.Assert(!semanticLocals.Values.Any(item => item.IsDefault)); 80Debug.Assert(!nonLocals.Values.Any(item => item.IsDefault)); 222Contract.ThrowIfTrue(_others.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)
145if (_lazyOuterTypesAndBases.IsDefault) 157if (_lazyEnclosingTypeBases.IsDefault)
Recommendations\AbstractRecommendationServiceRunner.cs (1)
52return symbols.IsDefault
Rename\ConflictEngine\ConflictResolver.Session.cs (3)
293if (!documentIdErrorStateLookup[documentId] && _nonConflictSymbolKeys.IsDefault) 474if (_nonConflictSymbolKeys.IsDefault) 663if (!invocationReferencedSymbols.IsDefault)
Rename\LightweightRenameLocations.cs (3)
40Contract.ThrowIfTrue(locations.IsDefault); 41Contract.ThrowIfTrue(implicitLocations.IsDefault); 42Contract.ThrowIfTrue(referencedSymbols.IsDefault);
Rename\SymbolicRenameLocations.cs (3)
43Contract.ThrowIfTrue(locations.IsDefault); 44Contract.ThrowIfTrue(implicitLocations.IsDefault); 45Contract.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\Collections\ImmutableArrayExtensions.cs (11)
479Debug.Assert(!array.IsDefault); 685if (array1.IsDefault) 687return array2.IsDefault; 689else if (array2.IsDefault) 726return array.IsDefault ? ImmutableArray<T>.Empty : array; 735null or { IsDefault: true } => ImmutableArray<T>.Empty, 745Debug.Assert(!array.IsDefault); 772if (!array.IsDefault && array.Length >= 2) 1169if (!membersAsNamedTypes.IsDefault) 1198if (array1.IsDefault) 1203if (array2.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\OneOrMany.cs (3)
40if (many.IsDefault) 62=> _many.IsDefault; 65=> _one == null && _many.IsDefault;
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
20if (numerals.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); 115if (leading && !LeadingTrivia.IsDefault) 125if (trailing && !TrailingTrivia.IsDefault)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
50if (rules.IsDefault)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
310Debug.Assert(!array.IsDefault);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
1069if (!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\Core\Utilities\ICollectionExtensions.cs (1)
73if (!values.IsDefault)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (2)
77Debug.Assert(!x.IsDefault && !y.IsDefault);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (1)
373explicitInterfaceImplementations.IsDefault ? accessor.ExplicitInterfaceImplementations : explicitInterfaceImplementations,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
127if (reducers.IsDefault)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (1)
152if (localLanguages.IsDefault)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (2)
99folders: folders.IsDefault ? null : folders, 612Contract.ThrowIfTrue(folders.IsDefault);
Workspace\Solution\DocumentState.cs (1)
106if (_contentHash.IsDefault)
Workspace\Solution\ProjectDependencyGraph.cs (2)
351if (_lazyTopologicallySortedProjects.IsDefault) 364if (_lazyTopologicallySortedProjects.IsDefault)
Workspace\Solution\ProjectDependencyGraph_AddProject.cs (2)
21if (!newTopologicallySortedProjects.IsDefault) 28if (!newDependencySets.IsDefault)
Workspace\Solution\Solution.cs (3)
1752if (documentIds.IsDefault) 1778if (documentIds.IsDefault) 1804if (documentIds.IsDefault)
Workspace\Solution\SolutionCompilationState.cs (1)
1639if (documentInfos.IsDefault)
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\GlobalAssemblyCacheLocation.cs (1)
36if (s_rootLocations.IsDefault)
src\Workspaces\Core\MSBuild.BuildHost\Rpc\Contracts\ProjectFileReference.cs (1)
38Debug.Assert(!aliases.IsDefault);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (20)
Rpc\Contracts\ProjectFileReference.cs (1)
38Debug.Assert(!aliases.IsDefault);
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (11)
479Debug.Assert(!array.IsDefault); 685if (array1.IsDefault) 687return array2.IsDefault; 689else if (array2.IsDefault) 726return array.IsDefault ? ImmutableArray<T>.Empty : array; 735null or { IsDefault: true } => ImmutableArray<T>.Empty, 745Debug.Assert(!array.IsDefault); 772if (!array.IsDefault && array.Length >= 2) 1169if (!membersAsNamedTypes.IsDefault) 1198if (array1.IsDefault) 1203if (array2.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\OneOrMany.cs (3)
40if (many.IsDefault) 62=> _many.IsDefault; 65=> _one == null && _many.IsDefault;
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
20if (numerals.IsDefault)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
191!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)
114Debug.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.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)
123if (_argumentProviders.IsDefault)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\GlobalAssemblyCacheLocation.cs (1)
36if (s_rootLocations.IsDefault)
Roslyn.Test.PdbUtilities (3)
Reader\MockSymUnmanagedReader.cs (2)
392numRead = source.IsDefault ? 0 : source.Length; 396Assert.False(source.IsDefault);
Reader\SymReaderFactory.cs (1)
75return CreateReader(new MemoryStream(pdbImage.ToArray()), (peImageOpt.IsDefault) ? null : new PEReader(peImageOpt));
RunTests (1)
ITestExecutor.cs (1)
91ProcessResults = processResults.IsDefault ? ImmutableArray<ProcessResult>.Empty : processResults;
System.Collections.Immutable (14)
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\Runtime.InteropServices\ImmutableCollectionsMarshal.cs (2)
28/// will be uninitialized (ie. its <see cref="ImmutableArray{T}.IsDefault"/> property will be <see langword="true"/>). 49/// If <paramref name="array"/> is uninitialized (ie. its <see cref="ImmutableArray{T}.IsDefault"/> property is
System.Reflection.Metadata (21)
System\Reflection\Internal\MemoryBlocks\ByteArrayMemoryProvider.cs (1)
19Debug.Assert(!array.IsDefault);
System\Reflection\Internal\Utilities\ImmutableMemoryStream.cs (1)
17Debug.Assert(!array.IsDefault);
System\Reflection\Metadata\AssemblyNameInfo.cs (2)
121!PublicKeyOrToken.IsDefault ? Runtime.InteropServices.ImmutableCollectionsMarshal.AsArray(PublicKeyOrToken) : null; 167if (!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)
232if (peImage.IsDefault)