473 references to IsDefaultOrEmpty
Aspire.Dashboard (1)
Components\Pages\Resources.razor.cs (1)
399var argumentsString = arguments.IsDefaultOrEmpty ? "" : string.Join(" ", arguments);
BuildActionTelemetryTable (1)
src\Compilers\Core\Portable\InternalUtilities\Hash.cs (1)
116if (values.IsDefaultOrEmpty)
BuildValidator (1)
CompilationDiff.cs (1)
402if (!info.CompressedHash.IsDefaultOrEmpty)
Microsoft.AspNetCore.App.Analyzers.Test (1)
RouteEmbeddedLanguage\RoutePatternBraceMatcherTests.cs (1)
192if (spans.IsDefaultOrEmpty)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
RequestDelegateGenerator.cs (1)
277if (endpointsCode.IsDefaultOrEmpty)
Microsoft.CodeAnalysis (67)
Binding\BindingDiagnosticBag.cs (2)
110Debug.Assert(allowMismatchInDependencyAccumulation || other.Dependencies.IsDefaultOrEmpty || this.AccumulatesDependencies || !this.AccumulatesDiagnostics); 175if (!dependencies.IsDefaultOrEmpty && DependenciesBag is object)
Binding\UseSiteInfo.cs (2)
313if (!diagnostics.IsDefaultOrEmpty) 381if (!_hasErrors && AccumulatesDependencies && !dependencies.IsDefaultOrEmpty &&
CodeGen\LocalDefinition.cs (1)
96if (!locations.IsDefaultOrEmpty)
CodeGen\StateMachineStateDebugInfo.cs (1)
62if (!stateInfos.IsDefaultOrEmpty)
Collections\CachingDictionary.cs (1)
189if (elements.IsDefaultOrEmpty)
CommandLine\CommandLineArguments.cs (2)
407if (!references.IsDefaultOrEmpty) 442if (references.IsDefaultOrEmpty && diagnosticsOpt != null)
Diagnostic\DiagnosticBag.cs (1)
125if (!diagnostics.IsDefaultOrEmpty)
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
408if (!_externalResolvers.IsDefaultOrEmpty)
DiagnosticAnalyzer\AnalyzerDriver.GroupedAnalyzerActions.cs (1)
56Debug.Assert(!analyzers.IsDefaultOrEmpty);
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
266if (result.IsDefaultOrEmpty)
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (2)
300if (!supportedDiagnosticsLocal.IsDefaultOrEmpty) 380if (!descriptorsLocal.IsDefaultOrEmpty)
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
130if (analyzers.IsDefaultOrEmpty)
Emit\EditAndContinue\DefinitionMap.cs (3)
308if (debugInfo.Lambdas.IsDefaultOrEmpty) 323if (!debugInfo.StateMachineStates.IsDefaultOrEmpty) 700if (provider.Lambdas.IsDefaultOrEmpty)
Emit\EditAndContinue\EmitBaseline.cs (1)
422Debug.Assert(customAttributesAdded.All(entry => !entry.Value.IsDefaultOrEmpty && entry.Value.IsSorted()));
Emit\EditAndContinueMethodDebugInformation.cs (3)
94if (compressedSlotMap.IsDefaultOrEmpty) 207if (compressedLambdaMap.IsDefaultOrEmpty) 311if (compressedStateMachineStates.IsDefaultOrEmpty)
FileSystem\PathUtilities.cs (1)
704if (pathMap.IsDefaultOrEmpty)
InternalUtilities\EnumerableExtensions.cs (1)
90return array.IsDefaultOrEmpty ? SpecializedCollections.EmptyBoxedImmutableArray<T>() : (IReadOnlyList<T>)items;
InternalUtilities\Hash.cs (1)
116if (values.IsDefaultOrEmpty)
MetadataReader\MetadataDecoder.cs (2)
40return !modifiers.IsDefaultOrEmpty && modifiers.Any(static m => !m.IsOptional); 1151if (signature.IsDefaultOrEmpty)
MetadataReference\AssemblyIdentity.cs (3)
136if (!publicKeyOrToken.IsDefaultOrEmpty && publicKeyOrToken.Length != PublicKeyTokenSize) 167Debug.Assert((hasPublicKey && MetadataHelpers.IsValidPublicKey(publicKeyOrToken)) || (!hasPublicKey && (publicKeyOrToken.IsDefaultOrEmpty || publicKeyOrToken.Length == PublicKeyTokenSize))); 189Debug.Assert((hasPublicKey && MetadataHelpers.IsValidPublicKey(publicKeyOrToken)) || (!hasPublicKey && (publicKeyOrToken.IsDefaultOrEmpty || publicKeyOrToken.Length == PublicKeyTokenSize)));
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
65if (key.IsDefaultOrEmpty)
MetadataReference\AssemblyMetadata.cs (3)
36Debug.Assert(!modules.IsDefaultOrEmpty && assembly != null); 93Debug.Assert(!modules.IsDefaultOrEmpty); 200if (modules.IsDefaultOrEmpty)
MetadataReference\MetadataReferenceProperties.cs (2)
52if (!aliases.IsDefaultOrEmpty) 58if (!aliases.IsDefaultOrEmpty)
Operations\ControlFlowGraphBuilder.cs (2)
4169((value.Type!.Equals(iDisposable) || (!value.Type.IsReferenceType && !ITypeSymbolHelpers.IsNullableType(value.Type))) && disposeArguments.IsDefaultOrEmpty)); 4712if (!arguments.IsDefaultOrEmpty)
Operations\ControlFlowGraphBuilder.RegionBuilder.cs (1)
33Debug.Assert(!isStackSpillRegion || (kind == ControlFlowRegionKind.LocalLifetime && locals.IsDefaultOrEmpty));
Operations\OperationExtensions.cs (3)
235if (dynamicOperation.Arguments.IsDefaultOrEmpty) 246return argumentNames.IsDefaultOrEmpty ? null : argumentNames[index]; 302if (dynamicOperation.Arguments.IsDefaultOrEmpty)
PEWriter\CustomDebugInfoWriter.cs (3)
139if (!debugInfo.LocalSlots.IsDefaultOrEmpty) 147if (!debugInfo.Lambdas.IsDefaultOrEmpty) 155if (!debugInfo.StateMachineStates.IsDefaultOrEmpty)
PEWriter\MetadataVisitor.cs (2)
106Debug.Assert((marshalling != null || !fieldDefinition.MarshallingDescriptor.IsDefaultOrEmpty) == fieldDefinition.IsMarshalledExplicitly); 437Debug.Assert((marshalling != null || !parameterDefinition.MarshallingDescriptor.IsDefaultOrEmpty) == parameterDefinition.IsMarshalledExplicitly);
PEWriter\MetadataWriter.cs (2)
1457return symbolOpt != null && !symbolOpt.Locations.IsDefaultOrEmpty ? symbolOpt.Locations[0] : Location.None; 1983if (!sourceAssembly.Identity.PublicKey.IsDefaultOrEmpty)
PEWriter\MetadataWriter.PortablePdb.cs (4)
603if (scopes.IsDefaultOrEmpty) 810if (!encInfo.LocalSlots.IsDefaultOrEmpty) 822if (!encInfo.Lambdas.IsDefaultOrEmpty) 834if (!encInfo.StateMachineStates.IsDefaultOrEmpty)
ReferenceManager\CommonReferenceManager.Resolution.cs (1)
877if (references.IsDefaultOrEmpty)
SourceFileResolver.cs (2)
60if (!pathMap.IsDefaultOrEmpty) 99return (normalizedPath == null || _pathMap.IsDefaultOrEmpty) ? normalizedPath : PathUtilities.NormalizePathPrefix(normalizedPath, _pathMap);
SourceGeneration\RunResults.cs (2)
51ImmutableInterlocked.InterlockedInitialize(ref _lazyDiagnostics, Results.Where(r => !r.Diagnostics.IsDefaultOrEmpty).SelectMany(r => r.Diagnostics).ToImmutableArray()); 69ImmutableInterlocked.InterlockedInitialize(ref _lazyGeneratedTrees, Results.Where(r => !r.GeneratedSources.IsDefaultOrEmpty).SelectMany(r => r.GeneratedSources.Select(g => g.SyntaxTree)).ToImmutableArray());
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoEncoder.cs (1)
112if (scopes.IsDefaultOrEmpty)
StrongName\StrongNameKeys.cs (1)
90Debug.Assert(!publicKey.IsDefaultOrEmpty);
Symbols\Attributes\UnmanagedCallersOnlyAttributeData.cs (1)
38&& (value.Values.IsDefaultOrEmpty || value.Values.All(v => v.Kind == TypedConstantKind.Type));
Symbols\CustomModifiersTuple.cs (2)
23if (typeCustomModifiers.IsDefaultOrEmpty && refCustomModifiers.IsDefaultOrEmpty)
Symbols\ISymbolExtensions_PerformIVTCheck.cs (2)
83bool q2 = !grantedToPublicKey.IsDefaultOrEmpty; 84bool q3 = !assemblyWantingAccessKey.IsDefaultOrEmpty;
Text\CompositeText.cs (1)
31Debug.Assert(!segments.IsDefaultOrEmpty);
Microsoft.CodeAnalysis.CodeStyle (10)
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (1)
248if (additionalUnnecessaryLocations.IsDefaultOrEmpty)
src\Analyzers\Core\Analyzers\UseObjectInitializer\AbstractUseObjectInitializerDiagnosticAnalyzer.cs (1)
109if (matches.IsDefaultOrEmpty)
src\Analyzers\Core\Analyzers\UseSystemHashCode\UseSystemHashCodeDiagnosticAnalyzer.cs (1)
52var elementCount = (accessesBase ? 1 : 0) + (hashedMembers.IsDefaultOrEmpty ? 0 : hashedMembers.Length);
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
704if (pathMap.IsDefaultOrEmpty)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
90return array.IsDefaultOrEmpty ? SpecializedCollections.EmptyBoxedImmutableArray<T>() : (IReadOnlyList<T>)items;
src\Compilers\Core\Portable\InternalUtilities\Hash.cs (1)
116if (values.IsDefaultOrEmpty)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (3)
348if (symbols.IsDefaultOrEmpty) 446if (accessibilities.IsDefaultOrEmpty) 505if (modifiers.IsDefaultOrEmpty)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
38if (parts.IsDefaultOrEmpty)
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberCodeFixProvider.cs (1)
48if (codeActions.IsDefaultOrEmpty)
src\Analyzers\Core\CodeFixes\MatchFolderAndNamespace\AbstractChangeNamespaceToMatchFolderCodeFixProvider.CustomFixAllProvider.cs (1)
38if (diagnostics.IsDefaultOrEmpty)
src\Analyzers\Core\CodeFixes\UseSystemHashCode\UseSystemHashCodeCodeFixProvider.cs (1)
67if (accessesBase || !members.IsDefaultOrEmpty)
Microsoft.CodeAnalysis.CSharp (153)
Binder\Binder.ValueChecks.cs (3)
419if (!indexerAccess.ArgumentRefKindsOpt.IsDefaultOrEmpty) 449if (!argumentNamesOpt.IsDefaultOrEmpty) 2983if (parameters.IsDefaultOrEmpty) return true;
Binder\Binder_Expressions.cs (6)
6105if (initializers.IsDefaultOrEmpty) 9246else if (convertedIndex is BoundObjectCreationExpression { Constructor: MethodSymbol constructor, Arguments: { Length: 2 } arguments, ArgsToParamsOpt: { IsDefaultOrEmpty: true }, InitializerExpressionOpt: null } && 10579int n = node.TypeArgumentsOpt.IsDefaultOrEmpty ? 0 : node.TypeArgumentsOpt.Length; 10643int arity = typeArguments.IsDefaultOrEmpty ? 0 : typeArguments.Length; 10651var substituted = typeArguments.IsDefaultOrEmpty ? memberMethod : memberMethod.Construct(typeArguments); 10695var substituted = typeArguments.IsDefaultOrEmpty ? extensionMethod : extensionMethod.Construct(typeArguments);
Binder\Binder_Invocation.cs (4)
894if (boundMethodGroup.TypeArgumentsOpt.IsDefaultOrEmpty && singleCandidate.IsGenericMethod) 1299Debug.Assert(args.IsDefaultOrEmpty || (object)receiver != (object)args[0]); 1925if (!typeArgumentsWithAnnotations.IsDefaultOrEmpty) 2230if (!methodGroup.TypeArgumentsOpt.IsDefaultOrEmpty)
Binder\Binder_NameConflicts.cs (2)
34if (!typeParameters.IsDefaultOrEmpty) 57if (!parameters.IsDefaultOrEmpty)
Binder\Binder_Patterns.cs (3)
1038properties.IsDefaultOrEmpty && 1066bool isError = hasErrors || outPlaceholders.IsDefaultOrEmpty || i >= outPlaceholders.Length; 1421bool isError = outPlaceholders.IsDefaultOrEmpty || i >= outPlaceholders.Length;
Binder\DecisionDagBuilder.cs (1)
1036return bindings.IsDefaultOrEmpty ? final : uniqifyDagNode(new BoundWhenDecisionDagNode(syntax, bindings, null, final, null));
Binder\ForEachLoopBinder.cs (2)
1020Debug.Assert(!(viaExtensionMethod && builder.GetEnumeratorInfo.Method.Parameters.IsDefaultOrEmpty)); 1202Debug.Assert(patternDisposeMethod.ParameterRefKinds.IsDefaultOrEmpty ||
Binder\LocalBinderFactory.cs (1)
320return parameters.IsDefaultOrEmpty
Binder\LockBinder.cs (1)
70Debug.Assert(this.Locals.IsDefaultOrEmpty);
Binder\Semantics\Conversions\Conversion.cs (5)
98Debug.Assert(!deconstructConversionInfo.IsDefaultOrEmpty); 423if (!underlyingConversions.IsDefaultOrEmpty) 462if (!underlyingConversions.IsDefaultOrEmpty) 1059if (conversionResult.Results.IsDefaultOrEmpty) 1238if (!underlyingConversions.IsDefaultOrEmpty)
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (1)
250if (!interfaces.IsDefaultOrEmpty)
Binder\Semantics\Operators\BinaryOperatorSignature.cs (2)
100if (!Method.ParameterRefKinds.IsDefaultOrEmpty) 120if (!Method.ParameterRefKinds.IsDefaultOrEmpty)
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (1)
429if (!interfaces.IsDefaultOrEmpty)
Binder\Semantics\Operators\UnaryOperatorSignature.cs (1)
54if (!Method.ParameterRefKinds.IsDefaultOrEmpty)
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
1002if (parameters.IsDefaultOrEmpty)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (3)
2668if (argsToParamsOpt.IsDefaultOrEmpty || !argsToParamsOpt.Contains(declaredParameterCount - 1)) 3809if (argumentCount == parameterCount && argToParamMap.IsDefaultOrEmpty) 3812if (parameterRefKinds.IsDefaultOrEmpty)
Binder\SwitchBinder_Patterns.cs (1)
220else if (boundStatement is BoundMultipleLocalDeclarationsBase boundMultiple && !boundMultiple.LocalDeclarations.IsDefaultOrEmpty)
Binder\WithLambdaParametersBinder.cs (1)
29if (!parameters.IsDefaultOrEmpty)
Binder\WithParametersBinder.cs (1)
27Debug.Assert(!parameters.IsDefaultOrEmpty);
BoundTree\BoundNodeExtensions.cs (1)
45if (expression.Kind == BoundKind.Sequence && ((BoundSequence)expression).SideEffects.IsDefaultOrEmpty)
BoundTree\Constructors.cs (2)
137Debug.Assert(arguments.IsDefaultOrEmpty || (object)receiverOpt != (object)arguments[0]); 234if (!result.IsDefaultOrEmpty && result.Contains(RefKind.RefReadOnlyParameter))
BoundTree\NullabilityRewriter.cs (1)
230if (symbols.IsDefaultOrEmpty)
CodeGen\EmitExpression.cs (2)
710RefKind refKind = expression.ArgumentRefKindsOpt.IsDefaultOrEmpty ? RefKind.None : expression.ArgumentRefKindsOpt[i]; 937if (!sideEffects.IsDefaultOrEmpty)
CodeGen\EmitStatement.cs (1)
1138Debug.Assert(seq.Locals.IsDefaultOrEmpty);
CodeGen\Optimizer.cs (2)
693if (!locals.IsDefaultOrEmpty) 1300RefKind refKind = argRefKindsOpt.IsDefaultOrEmpty ? RefKind.None : argRefKindsOpt[i];
Compilation\CSharpCompilation.cs (5)
1887Debug.Assert(!this.Options.Errors.IsDefaultOrEmpty); 2651if (!dependencies.IsDefaultOrEmpty) 2950if (!syntaxTree.Options.Errors.IsDefaultOrEmpty && parseOptionsReported.Add(syntaxTree.Options)) 4057if (callingConvention != SignatureCallingConvention.Unmanaged && !callingConventionTypes.IsDefaultOrEmpty) 4071var conventionModifiers = internalCallingConvention == CallingConvention.Unmanaged && !callingConventionTypes.IsDefaultOrEmpty
Compilation\CSharpSemanticModel.cs (5)
3807Debug.Assert((object)unaryOperator.MethodOpt == null && unaryOperator.OriginalUserDefinedOperatorsOpt.IsDefaultOrEmpty); 3830Debug.Assert((object)increment.MethodOpt == null && increment.OriginalUserDefinedOperatorsOpt.IsDefaultOrEmpty); 3855Debug.Assert((object)binaryOperator.Method == null && binaryOperator.OriginalUserDefinedOperatorsOpt.IsDefaultOrEmpty); 3928Debug.Assert((object)compoundAssignment.Operator.Method == null && compoundAssignment.OriginalUserDefinedOperatorsOpt.IsDefaultOrEmpty); 4664if (!typeArguments.IsDefaultOrEmpty && method.Arity == typeArguments.Length)
Compiler\DocumentationCommentCompiler.cs (2)
354if (!includeElementNodes.IsDefaultOrEmpty) 501Debug.Assert(!docCommentNodes.IsDefaultOrEmpty);
Compiler\MethodCompiler.cs (4)
595if (_moduleBeingBuiltOpt != null && !processedStaticInitializers.BoundInitializers.IsDefaultOrEmpty) 616if (processedStaticInitializers.BoundInitializers.IsDefaultOrEmpty && 996includeNonEmptyInitializersInBody = includeInitializersInBody && !processedInitializers.BoundInitializers.IsDefaultOrEmpty; 1083Debug.Assert(processedInitializers.BoundInitializers.IsDefaultOrEmpty || processedInitializers.FirstImportChain != null);
CSharpParseOptions.cs (1)
243if (!PreprocessorSymbols.IsDefaultOrEmpty)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
742Debug.Assert(type.CustomModifiers.IsDefaultOrEmpty); 743Debug.Assert(other.CustomModifiers.IsDefaultOrEmpty);
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
877if (!modifiers.IsDefaultOrEmpty)
Emitter\Model\PEModuleBuilder.cs (1)
1228!optArgList.ArgumentRefKindsOpt.IsDefaultOrEmpty && optArgList.ArgumentRefKindsOpt[i] != RefKind.None,
Errors\CSDiagnosticInfo.cs (1)
42_additionalLocations = additionalLocations.IsDefaultOrEmpty ? SpecializedCollections.EmptyReadOnlyList<Location>() : additionalLocations;
FlowAnalysis\AbstractFlowPass.cs (1)
3581if (!arguments.IsDefaultOrEmpty)
FlowAnalysis\DefiniteAssignment.cs (5)
1908if (boundAttributes.IsDefaultOrEmpty) 2021if (!pat.Deconstruction.IsDefaultOrEmpty) 2028if (!pat.Properties.IsDefaultOrEmpty) 2162if (!TrackingRegions && !block.LocalFunctions.IsDefaultOrEmpty) 2257if (!localsOpt.IsDefaultOrEmpty)
FlowAnalysis\NullableWalker.cs (7)
3065if (!block.LocalFunctions.IsDefaultOrEmpty) 4116if (!objectInitializer.Arguments.IsDefaultOrEmpty) 6778Debug.Assert(refKindsOpt.IsDefaultOrEmpty || refKindsOpt.Length == arguments.Length); 6877if (node is BoundCall { HasErrors: true, ArgumentNamesOpt.IsDefaultOrEmpty: false, ArgsToParamsOpt.IsDefault: true } && 7029if (!refKindsOpt.IsDefaultOrEmpty) 7053if (!refKindsOpt.IsDefaultOrEmpty) 7225if (n == 0 && parameterAnnotationsOpt.IsDefaultOrEmpty)
FlowAnalysis\NullableWalker.SnapshotManager.cs (1)
42Debug.Assert(!incrementalSnapshots.IsDefaultOrEmpty);
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (1)
466if (catches.IsDefaultOrEmpty)
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
81if (!structEnvironments.IsDefaultOrEmpty && typeParameters.Length != 0)
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
335else if (!argumentNamesOpt.IsDefaultOrEmpty) 437if (_inExpressionLambda && !node.Arguments.IsDefaultOrEmpty)
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
557if (refKinds.IsDefaultOrEmpty)
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
510if (!temps.IsDefaultOrEmpty)
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (1)
729else if (unloweredExpr is BoundObjectCreationExpression { Constructor: MethodSymbol constructor, Arguments: { Length: 2 } arguments, ArgsToParamsOpt: { IsDefaultOrEmpty: true }, InitializerExpressionOpt: null } &&
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (1)
301if (!memberInit.Arguments.IsDefaultOrEmpty)
Lowering\LocalRewriter\LocalRewriter_PropertyAccess.cs (1)
84Debug.Assert(argumentRefKindsOpt.IsDefaultOrEmpty);
Lowering\LocalRewriter\LocalRewriter_TryStatement.cs (1)
37return (catchBlocks.IsDefaultOrEmpty && finallyBlockOpt == null)
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (1)
507Debug.Assert(method.ParameterRefKinds.IsDefaultOrEmpty || method.ParameterRefKinds.All(static refKind => refKind is RefKind.In or RefKind.RefReadOnlyParameter or RefKind.None));
Lowering\LocalRewriter\LoweredDynamicOperation.cs (2)
63Debug.Assert(SiteInitialization == null && SiteInvocation is BoundBadExpression && _temps.IsDefaultOrEmpty); 69if (_temps.IsDefaultOrEmpty)
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (5)
247typeArgumentsWithAnnotations.IsDefaultOrEmpty ? 569Debug.Assert(argumentNames.IsDefaultOrEmpty || loweredArguments.Length == argumentNames.Length); 585argumentNames.IsDefaultOrEmpty ? NoName : argumentNames[i], 726Debug.Assert(refKinds.IsDefaultOrEmpty || refKinds.Length == loweredArguments.Length); 736bool hasByRefs = receiverRefKind != RefKind.None || !refKinds.IsDefaultOrEmpty;
Lowering\MethodToClassRewriter.cs (1)
129if (!node.Locals.IsDefaultOrEmpty)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
294if (locals.IsDefaultOrEmpty)
Lowering\SynthesizedMethodBaseSymbol.cs (1)
150if (!extraSynthed.IsDefaultOrEmpty)
Lowering\SyntheticBoundNodeFactory.cs (6)
862if (!result.IsDefaultOrEmpty && (result.Contains(RefKind.RefReadOnlyParameter) || 949if (!locals.IsDefaultOrEmpty) 963if (!locals.IsDefaultOrEmpty) 1008if (locals.IsDefaultOrEmpty && builder.Count == 0) 1028locals.IsDefaultOrEmpty && sideEffects.IsDefaultOrEmpty
Operations\CSharpOperationFactory.cs (1)
376if (children.IsDefaultOrEmpty)
Operations\CSharpOperationFactory_Methods.cs (2)
274if (methodOrIndexer.GetParameters().IsDefaultOrEmpty && boundArguments.IsDefaultOrEmpty)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
606Debug.Assert(!conventionTypes.IsDefaultOrEmpty);
Symbols\AbstractTypeMap.cs (1)
135if (customModifiers.IsDefaultOrEmpty)
Symbols\ArrayTypeSymbol.cs (3)
57if (sizes.IsDefaultOrEmpty && lowerBounds.IsDefault) 638Debug.Assert(!sizes.IsDefaultOrEmpty || !lowerBounds.IsDefault); 639Debug.Assert(lowerBounds.IsDefaultOrEmpty || (!lowerBounds.IsEmpty && (lowerBounds.Length != rank || !lowerBounds.All(b => b == 0))));
Symbols\Compilation_WellKnownMembers.cs (1)
864if (type.TupleElementNames.IsDefaultOrEmpty)
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (2)
278if (!callingConventionModifiers.IsDefaultOrEmpty) 497Debug.Assert(refCustomModifiers.IsDefaultOrEmpty || refKind != RefKind.None);
Symbols\Metadata\PE\PEParameterSymbol.cs (2)
392PEParameterSymbol parameter = customModifiers.IsDefaultOrEmpty && refCustomModifiers.IsDefaultOrEmpty
Symbols\Metadata\PE\PETypeParameterSymbol.cs (4)
269if (!modifiers.IsDefaultOrEmpty && modifiers.Length > 1) 276if (!modifiers.IsDefaultOrEmpty) 296else if (!modifiers.IsDefaultOrEmpty) 381Debug.Assert(!constraintTypes.IsDefaultOrEmpty);
Symbols\Metadata\PE\SymbolFactory.cs (2)
107if (!linkedAssemblies.IsDefaultOrEmpty || moduleSymbol.Module.ContainsNoPiaLocalTypes()) 130(!linkedAssemblies.IsDefaultOrEmpty &&
Symbols\Metadata\PE\TupleTypeDecoder.cs (3)
92if (hasTupleElementNamesAttribute && elementNames.IsDefaultOrEmpty) 112if (hasTupleElementNamesAttribute && elementNames.IsDefaultOrEmpty) 128return DecodeTupleTypesInternal(metadataType, elementNames, hasTupleElementNamesAttribute: !elementNames.IsDefaultOrEmpty);
Symbols\MethodSymbol.cs (1)
1003if (value.Values.IsDefaultOrEmpty)
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
625if (!linkedAssemblies.IsDefaultOrEmpty)
Symbols\Source\SourceAssemblySymbol.cs (1)
741if (oneKey.Key.IsDefaultOrEmpty)
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1593Debug.Assert(!addMethods.IsDefaultOrEmpty);
Symbols\Source\SourceMemberContainerSymbol.cs (4)
1908predicate: (t, a, b) => !t.TupleElementNames.IsDefaultOrEmpty && !t.IsErrorType(), 2991Debug.Assert(!group.IsDefaultOrEmpty); 5444if (forwardingMethods.IsDefaultOrEmpty && methodImpls.IsDefaultOrEmpty)
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1431if (attribute.CommonNamedArguments is { IsDefaultOrEmpty: false } namedArgs)
Symbols\Source\SourceNamedTypeSymbol.cs (2)
1595if (!initializers.IsDefaultOrEmpty) 1611if (!initializers.IsDefaultOrEmpty)
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (1)
1161if (!Diagnostics.IsDefaultOrEmpty)
Symbols\Source\SourceParameterSymbol.cs (1)
61if (!inModifiers.IsDefaultOrEmpty)
Symbols\SubstitutedNamedTypeSymbol.cs (1)
338if (originalMembers.IsDefaultOrEmpty)
Symbols\Symbol_Attributes.cs (1)
446if (!boundAttributes.IsDefaultOrEmpty &&
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
269&& refCustomModifiers.IsDefaultOrEmpty
Symbols\TypeParameterSymbol.cs (1)
450Debug.Assert(!constraintTypes.IsDefaultOrEmpty);
Symbols\TypeUnification.cs (2)
199if (t1.CustomModifiers.IsDefaultOrEmpty) 224if (t2.CustomModifiers.IsDefaultOrEmpty)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderDiagnosticAnalyzer.cs (1)
84if (additionalUnnecessaryLocations.IsDefaultOrEmpty)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
430return semanticModel.GetMemberGroup(name, cancellationToken).IsDefaultOrEmpty;
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
StringCopyPaste\StringCopyPasteCommandHandler.cs (2)
141if (textChanges.IsDefaultOrEmpty) 194if (!edits.IsDefaultOrEmpty)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\PatternMatchingTests.cs (1)
3269Assert.True(symbolInfo.CandidateSymbols.IsDefaultOrEmpty);
Microsoft.CodeAnalysis.CSharp.Features (5)
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (1)
382Debug.Assert(!names.IsDefaultOrEmpty);
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
113var requiresBlock = !operation.SemanticModel.AnalyzeDataFlow(node).VariablesDeclared.IsDefaultOrEmpty;
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (1)
41Contract.ThrowIfTrue(statementsOrFieldToInsert.IsDefaultOrEmpty);
SignatureHelp\GenericNameSignatureHelpProvider.cs (1)
311return !typeParam.ConstraintTypes.IsDefaultOrEmpty || typeParam.HasConstructorConstraint ||
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderDiagnosticAnalyzer.cs (1)
84if (additionalUnnecessaryLocations.IsDefaultOrEmpty)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\NativeIntegerTests.cs (1)
523Assert.False(members.IsDefaultOrEmpty);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (3)
CSharpTestBase.cs (1)
1412if (trees.IsDefaultOrEmpty)
MockCSharpCompiler.cs (2)
51if (!_analyzers.IsDefaultOrEmpty) 55if (!_generators.IsDefaultOrEmpty)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
430return semanticModel.GetMemberGroup(name, cancellationToken).IsDefaultOrEmpty;
Microsoft.CodeAnalysis.Debugging.Package (1)
CustomDebugInfoEncoder.cs (1)
112if (scopes.IsDefaultOrEmpty)
Microsoft.CodeAnalysis.EditorFeatures (5)
CodeActions\CodeActionEditHandlerService.cs (2)
45if (operations.IsDefaultOrEmpty) 106if (operations.IsDefaultOrEmpty)
EditAndContinue\ActiveStatementTrackingService.cs (1)
327if (_trackingSpans.TryGetValue(filePath, out var documentSpans) && !documentSpans.IsDefaultOrEmpty)
Host\IStreamingFindReferencesPresenter.cs (1)
92if (items.IsDefaultOrEmpty)
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (1)
835if (_snapshotData.Defaults.IsDefaultOrEmpty || itemSelection.SelectedItemIndex == SuggestionItemIndex)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (6)
EmbeddedLanguages\StackFrame\StackFrameSyntaxFactory.cs (2)
24leadingTrivia.IsDefaultOrEmpty ? ImmutableArray<StackFrameTrivia>.Empty : leadingTrivia, 26trailingTrivia.IsDefaultOrEmpty ? ImmutableArray<StackFrameTrivia>.Empty : trailingTrivia,
Utilities\StackFrameUtils.cs (4)
144if (!expected.IsDefaultOrEmpty) 151if (expected.IsDefaultOrEmpty) 162if (!actual.IsDefaultOrEmpty) 169if (!actual.IsDefaultOrEmpty)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Suggestions\SuggestedActionWithNestedActions.cs (1)
38Debug.Assert(!nestedActionSets.IsDefaultOrEmpty);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Simplification\AbstractSimplificationTests.vb (1)
118If Not explicitSpansToSimplifyWithin.IsDefaultOrEmpty Then
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
PDB\MethodDebugInfo.cs (1)
84if (HoistedLocalScopeRecords.IsDefaultOrEmpty)
Microsoft.CodeAnalysis.Features (36)
AddImport\References\SymbolReference.cs (1)
103if (tags.IsDefaultOrEmpty)
Common\TaggedText.cs (1)
126if (values.IsDefaultOrEmpty)
Completion\CompletionItemRules.cs (2)
135if (filterCharacterRules.IsDefaultOrEmpty && 136commitCharacterRules.IsDefaultOrEmpty &&
Completion\CompletionService_GetCompletions.cs (1)
258Debug.Assert(!completionContexts.IsDefaultOrEmpty);
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (1)
96if (sections.IsDefaultOrEmpty)
DocumentHighlighting\AbstractDocumentHighlightsService.cs (2)
70if (!result.IsDefaultOrEmpty) 104if (!result.IsDefaultOrEmpty)
EditAndContinue\DocumentAnalysisResults.cs (2)
186=> HasChanges && (!SemanticEdits.IsDefaultOrEmpty || !LineEdits.IsDefaultOrEmpty);
EmbeddedLanguages\AbstractEmbeddedLanguageFeatureService.cs (1)
118Contract.ThrowIfTrue(services.IsDefaultOrEmpty);
EmbeddedLanguages\StackFrame\StackFrameNodeDefinitions.cs (1)
325Debug.Assert(!arrayRankSpecifiers.IsDefaultOrEmpty);
EncapsulateField\AbstractEncapsulateFieldService.cs (2)
47if (fields.IsDefaultOrEmpty) 60if (fields.IsDefaultOrEmpty)
ExtractMethod\MethodExtractor.Analyzer.cs (2)
774if (constraintTypes.IsDefaultOrEmpty) 833if (constraintTypes.IsDefaultOrEmpty)
FindUsages\DefinitionItem.cs (1)
129NameDisplayParts = nameDisplayParts.IsDefaultOrEmpty ? displayParts : nameDisplayParts;
GenerateConstructorFromMembers\AbstractGenerateConstructorFromMembersCodeRefactoringProvider.cs (1)
168if (actions.IsDefaultOrEmpty && textSpan.IsEmpty)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (3)
191if (!parts.IsDefaultOrEmpty) 562if (!initializerParts.IsDefaultOrEmpty) 651if (!initializerParts.IsDefaultOrEmpty)
NameTupleElement\AbstractNameTupleElementCodeRefactoringProvider.cs (1)
67if (elements.IsDefaultOrEmpty || argumentIndex >= elements.Length)
QuickInfo\IndentationHelper.cs (1)
32if (classifiedSpans.IsDefaultOrEmpty)
QuickInfo\QuickInfoUtilities.cs (5)
72if (groups.TryGetValue(SymbolDescriptionGroups.Documentation, out var docParts) && !docParts.IsDefaultOrEmpty) 86if (!docParts.IsDefaultOrEmpty) 94!returnsDocumentation.IsDefaultOrEmpty) 103!valueDocumentation.IsDefaultOrEmpty) 162=> groups.TryGetValue(group, out taggedParts) && !taggedParts.IsDefaultOrEmpty;
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (1)
248if (additionalUnnecessaryLocations.IsDefaultOrEmpty)
src\Analyzers\Core\Analyzers\UseObjectInitializer\AbstractUseObjectInitializerDiagnosticAnalyzer.cs (1)
109if (matches.IsDefaultOrEmpty)
src\Analyzers\Core\Analyzers\UseSystemHashCode\UseSystemHashCodeDiagnosticAnalyzer.cs (1)
52var elementCount = (accessesBase ? 1 : 0) + (hashedMembers.IsDefaultOrEmpty ? 0 : hashedMembers.Length);
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberCodeFixProvider.cs (1)
48if (codeActions.IsDefaultOrEmpty)
src\Analyzers\Core\CodeFixes\MatchFolderAndNamespace\AbstractChangeNamespaceToMatchFolderCodeFixProvider.CustomFixAllProvider.cs (1)
38if (diagnostics.IsDefaultOrEmpty)
src\Analyzers\Core\CodeFixes\UseObjectInitializer\AbstractUseObjectInitializerCodeFixProvider.cs (1)
73if (matches.IsDefaultOrEmpty)
src\Analyzers\Core\CodeFixes\UseSystemHashCode\UseSystemHashCodeCodeFixProvider.cs (1)
67if (accessesBase || !members.IsDefaultOrEmpty)
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoEncoder.cs (1)
112if (scopes.IsDefaultOrEmpty)
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueTestVerifier.cs (1)
208Assert.True(expectedResult.LineEdits.IsDefaultOrEmpty);
Microsoft.CodeAnalysis.InteractiveHost (4)
Interactive\Core\InteractiveHost.Service.cs (2)
321if (!resolvedReferences.IsDefaultOrEmpty) 555if (!resolvedReferences.IsDefaultOrEmpty)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
704if (pathMap.IsDefaultOrEmpty)
src\Compilers\Core\Portable\InternalUtilities\Hash.cs (1)
116if (values.IsDefaultOrEmpty)
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Handler\CodeActions\CodeActionHelpers.cs (2)
41if (actionSets.IsDefaultOrEmpty) 314if (actionSets.IsDefaultOrEmpty)
Microsoft.CodeAnalysis.Test.Utilities (3)
Compilation\IRuntimeEnvironment.cs (1)
352if (!module.Pdb.IsDefaultOrEmpty)
Compilation\OperationTreeVerifier.cs (2)
353if (!list.IsDefaultOrEmpty) 867if (argumentNames.IsDefaultOrEmpty)
Microsoft.CodeAnalysis.UnitTests (1)
Collections\ImmutableArrayExtensionsTests.cs (1)
56Assert.True(nullOrEmpty.IsDefaultOrEmpty);
Microsoft.CodeAnalysis.VisualBasic (87)
Analysis\FlowAnalysis\DataFlowPass.vb (1)
1875If node.ResourceList.IsDefaultOrEmpty Then
Binding\Binder_Delegates.vb (3)
817Not bestResult.ConversionsOpt.IsDefaultOrEmpty AndAlso 871If Not bestResult.ConversionsOpt.IsDefaultOrEmpty Then 882If Not bestResult.ConversionsBackOpt.IsDefaultOrEmpty Then
Binding\Binder_Initializers.vb (1)
92If initializers.IsDefaultOrEmpty Then
Binding\Binder_Invocation.vb (6)
2000Debug.Assert(argumentNames.IsDefaultOrEmpty OrElse (argumentNames.Length > 0 AndAlso argumentNames.Length = arguments.Length)) 2653If candidate.ArgsToParamsOpt.IsDefaultOrEmpty Then 2709If(candidate.ConversionsOpt.IsDefaultOrEmpty, 2731If Not candidate.ConversionsOpt.IsDefaultOrEmpty Then 2735If Not candidate.ConversionsBackOpt.IsDefaultOrEmpty Then 3013If arguments.IsDefaultOrEmpty Then
Binding\Binder_Lookup.vb (2)
1875If Not interfaces.IsDefaultOrEmpty Then 2108If Not members.IsDefaultOrEmpty Then
Binding\Binder_ObjectInitializer.vb (1)
547If Not initializers.IsDefaultOrEmpty Then
Binding\MemberSemanticModel.vb (2)
1628If Not binders.IsDefaultOrEmpty Then 1647If Not binders.IsDefaultOrEmpty Then
CodeGen\EmitExpression.vb (1)
536If Not sideEffects.IsDefaultOrEmpty Then
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (2)
637If bindResult.IsDefaultOrEmpty Then 773If bindResult.IsDefaultOrEmpty Then
Compilation\MethodCompiler.vb (3)
334Debug.Assert(entryPoint IsNot Nothing OrElse entryPointAndDiagnostics.Diagnostics.HasAnyErrors() OrElse Not compilation.Options.Errors.IsDefaultOrEmpty) 464If Not initializers.IsDefaultOrEmpty Then 1994diagnostics.Add(If(locations.IsDefaultOrEmpty, Location.None, locations(0)), useSiteInfo)
Compilation\SyntaxTreeSemanticModel.vb (5)
279If Not allSymbols.IsDefaultOrEmpty Then 478If result.IsDefaultOrEmpty Then 479If typeParameters.IsDefaultOrEmpty Then 512If result.IsDefaultOrEmpty Then 514If result.IsDefaultOrEmpty Then
Compilation\VisualBasicCompilation.vb (3)
1503Debug.Assert(Not Me.Options.Errors.IsDefaultOrEmpty) 1821If Not dependencies.IsDefaultOrEmpty Then 2178If Not tree.Options.Errors.IsDefaultOrEmpty AndAlso parseOptionsReported.Add(tree.Options) Then
Emit\NamedTypeSymbolAdapter.vb (2)
498If sourceNamedType IsNot Nothing AndAlso Not sourceNamedType.StaticInitializers.IsDefaultOrEmpty Then 844If Not modifiers.IsDefaultOrEmpty Then
Lowering\LocalRewriter\LocalRewriter.vb (1)
780If Not sideEffects.IsDefaultOrEmpty Then
Lowering\LocalRewriter\LocalRewriter_DoLoop.vb (1)
122If Not conditionResumeTarget.IsDefaultOrEmpty Then
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (2)
229If Not loopResumeTarget.IsDefaultOrEmpty Then 577If Not loopResumeTarget.IsDefaultOrEmpty Then
Lowering\LocalRewriter\LocalRewriter_ForTo.vb (1)
187If Not loopResumeTarget.IsDefaultOrEmpty Then
Lowering\LocalRewriter\LocalRewriter_If.vb (3)
119Debug.Assert(unstructuredExceptionHandlingResumeTarget.IsDefaultOrEmpty OrElse instrumentationTargetOpt IsNot Nothing) 140If Not unstructuredExceptionHandlingResumeTarget.IsDefaultOrEmpty Then 185If Not unstructuredExceptionHandlingResumeTarget.IsDefaultOrEmpty Then
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (15)
66If flags.IsDefaultOrEmpty Then 89If argumentNames.IsDefaultOrEmpty Then 108Debug.Assert(Not rewrittenArguments.IsDefaultOrEmpty) 175If argumentNames.IsDefaultOrEmpty Then 176If rewrittenArguments.IsDefaultOrEmpty Then 178ElseIf argumentNames.IsDefaultOrEmpty Then 197Debug.Assert(Not rewrittenArguments.IsDefaultOrEmpty) 271If rewrittenArguments.IsDefaultOrEmpty Then 309If argumentNames.IsDefaultOrEmpty Then 666Debug.Assert((assignmentArguments.IsDefaultOrEmpty AndAlso argExpressions.IsDefaultOrEmpty) OrElse 670Debug.Assert(argNames.IsDefaultOrEmpty OrElse argNames.Length = argExpressions.Length, 715If Not assignmentArguments.IsDefaultOrEmpty Then 719If Not argNames.IsDefaultOrEmpty Then 864If Not arguments.IsDefaultOrEmpty Then
Lowering\LocalRewriter\LocalRewriter_Try.vb (1)
86If catchBlocks.IsDefaultOrEmpty AndAlso finallyBlockOpt Is Nothing Then
Lowering\LocalRewriter\LocalRewriter_While.vb (1)
97If Not conditionResumeTargetOpt.IsDefaultOrEmpty Then
Lowering\SyntheticBoundNodeFactory.vb (1)
1044Dim arrayInitialization As BoundArrayInitialization = If(Not elements.IsDefaultOrEmpty, New BoundArrayInitialization(_syntax, elements, arrayType), Nothing)
Operations\VisualBasicOperationFactory.vb (4)
342If boundNodeWithChildren.Children.IsDefaultOrEmpty Then 1217If(getEnumeratorArguments.IsDefaultOrEmpty, Nothing, 1223If(moveNextArguments.IsDefaultOrEmpty, Nothing, 1229If(currentArguments.IsDefaultOrEmpty, Nothing,
Scanner\Scanner.vb (1)
151If options.PreprocessorSymbols.IsDefaultOrEmpty Then
Symbols\ArrayTypeSymbol.vb (3)
52If sizes.IsDefaultOrEmpty AndAlso lowerBounds.IsDefault Then 662Debug.Assert(Not sizes.IsDefaultOrEmpty OrElse Not lowerBounds.IsDefault) 663Debug.Assert(lowerBounds.IsDefaultOrEmpty OrElse (Not lowerBounds.IsEmpty AndAlso (lowerBounds.Length <> rank OrElse Not lowerBounds.All(Function(b) b = 0))))
Symbols\Metadata\PE\PEParameterSymbol.vb (2)
145If customModifiers.IsDefaultOrEmpty AndAlso refCustomModifiers.IsDefaultOrEmpty Then
Symbols\Metadata\PE\PETypeParameterSymbol.vb (3)
251If Not modifiers.IsDefaultOrEmpty AndAlso modifiers.Length > 1 Then 255If Not modifiers.IsDefaultOrEmpty Then 264ElseIf Not modifiers.IsDefaultOrEmpty Then
Symbols\Metadata\PE\SymbolFactory.vb (2)
94If Not linkedAssemblies.IsDefaultOrEmpty OrElse moduleSymbol.Module.ContainsNoPiaLocalTypes() Then 110(Not linkedAssemblies.IsDefaultOrEmpty AndAlso
Symbols\Metadata\PE\TupleTypeDecoder.vb (2)
85If hasTupleElementNamesAttribute AndAlso elementNames.IsDefaultOrEmpty Then 96Return DecodeTupleTypesInternal(metadataType, elementNames, hasTupleElementNamesAttribute:=Not elementNames.IsDefaultOrEmpty)
Symbols\Retargeting\RetargetingSymbolTranslator.vb (1)
530If Not linkedAssemblies.IsDefaultOrEmpty Then
Symbols\Source\SourceAssemblySymbol.vb (1)
1437If oneKey.Key.IsDefaultOrEmpty Then
Symbols\Source\SourceMemberContainerTypeSymbol.vb (3)
1521Debug.Assert(staticInitializersSyntaxLength = If(staticInitializers.IsDefaultOrEmpty, 0, staticInitializers.Sum(Function(s) s.Sum(Function(i) If(Not i.IsMetadataConstant, i.Syntax.Span.Length, 0))))) 1522Debug.Assert(instanceInitializersSyntaxLength = If(instanceInitializers.IsDefaultOrEmpty, 0, instanceInitializers.Sum(Function(s) s.Sum(Function(i) i.Syntax.Span.Length)))) 3177If Not staticInitializers.IsDefaultOrEmpty Then
Symbols\TypeSubstitution.vb (5)
167If Not p.Value.CustomModifiers.IsDefaultOrEmpty Then 220If Not p.Value.CustomModifiers.IsDefaultOrEmpty Then 649If argument.CustomModifiers.IsDefaultOrEmpty Then 675If typeParameter.Ordinal = i AndAlso typeParameter.ContainingSymbol Is targetMethod AndAlso argument.CustomModifiers.IsDefaultOrEmpty Then 871If customModifiers.IsDefaultOrEmpty Then
VisualBasicParseOptions.vb (2)
80If s_defaultPreprocessorSymbols.IsDefaultOrEmpty Then 253If Not PreprocessorSymbols.IsDefaultOrEmpty Then
Microsoft.CodeAnalysis.VisualBasic.Features (3)
CodeRefactorings\SyncNamespace\VisualBasicChangeNamespaceService.vb (1)
29If nameRef Is Nothing Or newNamespaceParts.IsDefaultOrEmpty Then
Completion\CompletionProviders\ObjectInitializerCompletionProvider.vb (1)
125Return [property].Parameters.IsDefaultOrEmpty OrElse [property].Parameters.All(Function(p) p.IsOptional OrElse p.IsParams)
SignatureHelp\CollectionInitializerSignatureHelpProvider.vb (1)
57If addMethods.IsDefaultOrEmpty Then
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Semantics\OverloadResolution.vb (3)
38If instanceMethods.IsDefaultOrEmpty Then 40ElseIf extensionMethods.IsDefaultOrEmpty Then 47If(typeArguments.IsDefaultOrEmpty,
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
MockVisualBasicCompiler.vb (2)
60If Not _analyzers.IsDefaultOrEmpty Then 64If Not _generators.IsDefaultOrEmpty Then
Microsoft.CodeAnalysis.Workspaces (22)
CodeFixes\CodeFix.cs (1)
52Debug.Assert(!diagnostics.IsDefaultOrEmpty);
CodeFixes\CodeFixContext.cs (1)
240if (diagnostics.IsDefaultOrEmpty)
CodeFixes\FixAllOccurrences\DocumentBasedFixAllProvider.cs (1)
91if (documentDiagnostics.IsDefaultOrEmpty)
CodeFixes\FixAllOccurrences\FixAllContext.DiagnosticProvider.cs (1)
48return result.Where(kvp => !kvp.Value.IsDefaultOrEmpty).ToImmutableDictionary();
Diagnostics\AbstractDiagnosticPropertiesService.cs (2)
24if (assemblyIds.IsDefaultOrEmpty && requiredVersion == null) 30if (!assemblyIds.IsDefaultOrEmpty)
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (2)
251if (!aliasSymbols.IsDefaultOrEmpty) 263if (!aliasSymbols.IsDefaultOrEmpty)
FindSymbols\IStreamingFindReferencesProgress.cs (1)
36Contract.ThrowIfTrue(symbols.IsDefaultOrEmpty, "Symbols should be non empty");
Shared\Extensions\AnalyzerReferenceExtensions.cs (2)
12=> !analyzerFileReference.GetAnalyzers(language).IsDefaultOrEmpty || 13!analyzerFileReference.GetGenerators(language).IsDefaultOrEmpty;
Shared\Extensions\SyntaxGeneratorExtensions.cs (1)
263typeParams.IsDefaultOrEmpty
src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
408if (!_externalResolvers.IsDefaultOrEmpty)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
704if (pathMap.IsDefaultOrEmpty)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
90return array.IsDefaultOrEmpty ? SpecializedCollections.EmptyBoxedImmutableArray<T>() : (IReadOnlyList<T>)items;
src\Compilers\Core\Portable\InternalUtilities\Hash.cs (1)
116if (values.IsDefaultOrEmpty)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (3)
348if (symbols.IsDefaultOrEmpty) 446if (accessibilities.IsDefaultOrEmpty) 505if (modifiers.IsDefaultOrEmpty)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PathMetadataUtilities.cs (1)
38if (parts.IsDefaultOrEmpty)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
877if (!result.Diagnostics.IsDefaultOrEmpty)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (1)
285runResult.Results.Sum(r => r.GeneratedSources.IsDefaultOrEmpty ? 0 : r.GeneratedSources.Length);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
MSBuild\ProjectFile\CommandLineArgumentReader.cs (1)
251if (aliases.IsDefaultOrEmpty)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
704if (pathMap.IsDefaultOrEmpty)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
90return array.IsDefaultOrEmpty ? SpecializedCollections.EmptyBoxedImmutableArray<T>() : (IReadOnlyList<T>)items;
src\Compilers\Core\Portable\InternalUtilities\Hash.cs (1)
116if (values.IsDefaultOrEmpty)
Microsoft.DotNet.SignTool (1)
src\Hash.cs (1)
95if (values.IsDefaultOrEmpty)
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Roslyn4.0.cs (1)
42if (classes.IsDefaultOrEmpty)
Microsoft.Extensions.Options.SourceGeneration (1)
ParserUtilities.cs (1)
47return symbol.Locations.IsDefaultOrEmpty
Microsoft.Gen.ComplianceReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
77if (nodes.IsDefaultOrEmpty)
Microsoft.Gen.ContextualOptions (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
77if (nodes.IsDefaultOrEmpty)
Microsoft.Gen.Logging (8)
LoggingGenerator.cs (1)
33if (types.IsDefaultOrEmpty)
Parsing\Parser.cs (1)
521if (!paramSymbol.DeclaringSyntaxReferences.IsDefaultOrEmpty)
Parsing\Parser.LogProperties.cs (3)
99if (members.IsDefaultOrEmpty) 106if (namedType.IsRecord && !namedType.InstanceConstructors.IsDefaultOrEmpty) 210if (!property.DeclaringSyntaxReferences.IsDefaultOrEmpty)
Parsing\Parser.Records.cs (1)
48if (members.IsDefaultOrEmpty)
src\Generators\Shared\GeneratorUtilities.cs (1)
77if (nodes.IsDefaultOrEmpty)
src\Generators\Shared\ParserUtilities.cs (1)
52return symbol.Locations.IsDefaultOrEmpty
Microsoft.Gen.Metrics (8)
Parser.cs (6)
213=> symbol.TypeArguments.IsDefaultOrEmpty 260&& !attributeData.ConstructorArguments.IsDefaultOrEmpty 283if (!attribute.NamedArguments.IsDefaultOrEmpty) 296if (!attribute.ConstructorArguments.IsDefaultOrEmpty) 422if (!methodAttribute.ConstructorArguments.IsDefaultOrEmpty 428if (!methodAttribute.NamedArguments.IsDefaultOrEmpty)
src\Generators\Shared\GeneratorUtilities.cs (1)
77if (nodes.IsDefaultOrEmpty)
src\Generators\Shared\ParserUtilities.cs (1)
52return symbol.Locations.IsDefaultOrEmpty
Microsoft.Gen.MetricsReports (8)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (6)
213=> symbol.TypeArguments.IsDefaultOrEmpty 260&& !attributeData.ConstructorArguments.IsDefaultOrEmpty 283if (!attribute.NamedArguments.IsDefaultOrEmpty) 296if (!attribute.ConstructorArguments.IsDefaultOrEmpty) 422if (!methodAttribute.ConstructorArguments.IsDefaultOrEmpty 428if (!methodAttribute.NamedArguments.IsDefaultOrEmpty)
src\Generators\Shared\GeneratorUtilities.cs (1)
77if (nodes.IsDefaultOrEmpty)
src\Generators\Shared\ParserUtilities.cs (1)
52return symbol.Locations.IsDefaultOrEmpty
Microsoft.VisualStudio.LanguageServices (5)
CommonControls\MemberSelectionViewModel.cs (1)
63if (!oldMembers.IsDefaultOrEmpty)
ProjectSystem\VisualStudioWorkspaceImpl.OpenFileTracker.cs (2)
276if (documentIds.IsDefaultOrEmpty || documentIds.Length == 1) 318if (documentIds.IsDefaultOrEmpty)
ValueTracking\TreeItemViewModel.cs (2)
69if (!children.IsDefaultOrEmpty) 104if (ClassifiedSpans.IsDefaultOrEmpty)
SemanticSearch.BuildTask (1)
src\Compilers\Core\Portable\InternalUtilities\Hash.cs (1)
116if (values.IsDefaultOrEmpty)
StackDepthTest (1)
Program.cs (1)
83if (!diag.IsDefaultOrEmpty)
System.Reflection.Metadata (1)
System\Reflection\PortableExecutable\DebugDirectory\PdbChecksumDebugDirectoryData.cs (1)
24Debug.Assert(!checksum.IsDefaultOrEmpty);