172 references to Add
AnalyzerRunner (1)
AnalyzerRunnerMefHostServices.cs (1)
32=> MSBuildMefHostServices.DefaultAssemblies.Add(typeof(AnalyzerRunnerMefHostServices).Assembly);
Aspire.Hosting.Tests (5)
ResourceNotificationTests.cs (5)
71await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout(); 73await notificationService.PublishUpdateAsync(resource, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout(); 124await notificationService.PublishUpdateAsync(resource1, state => state with { Properties = state.Properties.Add(new("A", "value")) }).DefaultTimeout(); 126await notificationService.PublishUpdateAsync(resource2, state => state with { Properties = state.Properties.Add(new("B", "value")) }).DefaultTimeout(); 128await notificationService.PublishUpdateAsync(resource1, "replica1", state => state with { Properties = state.Properties.Add(new("C", "value")) }).DefaultTimeout();
IdeCoreBenchmarks (8)
ClassificationBenchmarks.cs (2)
65.Add(typeof(AnalyzerRunnerHelper).Assembly) 66.Add(typeof(FindReferencesBenchmarks).Assembly);
FindReferencesBenchmarks.cs (2)
62.Add(typeof(AnalyzerRunnerHelper).Assembly) 63.Add(typeof(FindReferencesBenchmarks).Assembly);
IncrementalSourceGeneratorBenchmarks.cs (2)
70.Add(typeof(AnalyzerRunnerHelper).Assembly) 71.Add(typeof(FindReferencesBenchmarks).Assembly);
NavigateToBenchmarks.cs (2)
67.Add(typeof(AnalyzerRunnerHelper).Assembly) 68.Add(typeof(FindReferencesBenchmarks).Assembly);
Microsoft.CodeAnalysis (23)
Collections\ImmutableArrayExtensions.cs (2)
1011return first.Add(second); 1023return self.Add(items[0]);
Diagnostic\CustomObsoleteDiagnosticInfo.cs (1)
91customTags = baseDescriptor.ImmutableCustomTags.Add(WellKnownDiagnosticTags.CustomObsolete);
DiagnosticAnalyzer\AnalyzerDriver.GroupedAnalyzerActions.cs (1)
50var groupedActionsAndAnalyzers = ImmutableArray<(DiagnosticAnalyzer, GroupedAnalyzerActionsForAnalyzer)>.Empty.Add((analyzer, groupedActions));
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (15)
865_compilationStartActions = _compilationStartActions.Add(action); 871_compilationEndActions = _compilationEndActions.Add(action); 877_compilationActions = _compilationActions.Add(action); 883_syntaxTreeActions = _syntaxTreeActions.Add(action); 889_additionalFileActions = _additionalFileActions.Add(action); 895_semanticModelActions = _semanticModelActions.Add(action); 901_symbolActions = _symbolActions.Add(action); 907_symbolStartActions = _symbolStartActions.Add(action); 913_symbolEndActions = _symbolEndActions.Add(action); 925_codeBlockEndActions = _codeBlockEndActions.Add(action); 931_codeBlockActions = _codeBlockActions.Add(action); 943_operationBlockStartActions = _operationBlockStartActions.Add(action); 949_operationBlockActions = _operationBlockActions.Add(action); 955_operationBlockEndActions = _operationBlockEndActions.Add(action); 961_operationActions = _operationActions.Add(action);
Emit\CommonPEModuleBuilder.cs (1)
1012builder[hotReloadException.ContainingNamespace] = existingTypes.Add(hotReloadException);
InternalUtilities\OneOrMany.cs (1)
96OneOrMany.Create(_many.Add(item));
Symbols\Attributes\CommonMethodEarlyWellKnownAttributeData.cs (1)
22_lazyConditionalSymbols = _lazyConditionalSymbols.Add(name);
Symbols\Attributes\CommonTypeEarlyWellKnownAttributeData.cs (1)
60_lazyConditionalSymbols = _lazyConditionalSymbols.Add(name);
Microsoft.CodeAnalysis.CodeStyle (7)
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (2)
1011return first.Add(second); 1023return self.Add(items[0]);
src\Compilers\Core\Portable\InternalUtilities\OneOrMany.cs (1)
96OneOrMany.Create(_many.Add(item));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxToken.cs (1)
54=> Diagnostics.Contains(diagnostic) ? this : With(diagnostics: this.Diagnostics.Add(diagnostic));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EventMap.cs (1)
29var newRegistries = registries.Add(new Registry<TEventHandler>(eventHandler));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (2)
128dictionary[key] = existingArray.Add(value); 140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value);
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\OrderModifiers\AbstractOrderModifiersCodeFixProvider.cs (1)
39=> FixableCompilerErrorIds.Add(IDEDiagnosticIds.OrderModifiersDiagnosticId);
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder_Expressions.cs (3)
7049children = children.Add(boundInitializerOpt); 9299var childBoundNodes = BuildArgumentsForErrorRecovery(analyzedArguments).Add(expr); 10851var typeArguments = returnsVoid ? parameterTypes : parameterTypes.Add(returnType);
Binder\Binder_InterpolatedString.cs (1)
726var outConstructorAdditionalArguments = additionalConstructorArguments.Add(trailingConstructorValidityPlaceholder);
Binder\Binder_Invocation.cs (1)
121return BadExpression(node, LookupResultKind.Empty, ImmutableArray.Create(symbol), args.Add(receiver), wasCompilerGenerated: true);
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
1277parameters = parameters.Add(property.SetMethod.Parameters.Last());
BoundTree\Expression.cs (1)
164protected override ImmutableArray<BoundNode?> Children => StaticCast<BoundNode?>.From(this.SideEffects.Add(this.Value));
Compiler\MethodCompiler.cs (1)
1302boundStatements = boundStatements.Add(processedInitializers.LoweredInitializers);
FlowAnalysis\FlowAnalysisPass.cs (2)
85var newStatements = block.Statements.Add(new BoundReturnStatement(trailingExpression.Syntax, RefKind.None, trailingExpression, @checked: false)); 204return body.Update(body.Locals, body.LocalFunctions, body.HasUnsafeModifier, body.Instrumentation, body.Statements.Add(ret));
Lowering\LocalRewriter\LocalRewriter_IsPatternOperator.cs (1)
133return _factory.SpillSequence(_tempAllocator.AllTemps().Add(resultTemp), resultBuilder.ToImmutableAndFree(), _factory.Local(resultTemp));
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (1)
195locals: node.Locals.Add(boundTemp.LocalSymbol),
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
244genericFieldTypes = genericFieldTypes.Add(fields[^1].TypeWithAnnotations);
Symbols\Attributes\WellKnownAttributeData\MethodWellKnownAttributeData.cs (3)
68_memberNotNullAttributeData = _memberNotNullAttributeData.Add(memberName); 96_memberNotNullWhenTrueAttributeData = _memberNotNullWhenTrueAttributeData.Add(memberName); 100_memberNotNullWhenFalseAttributeData = _memberNotNullWhenFalseAttributeData.Add(memberName);
Symbols\Attributes\WellKnownAttributeData\PropertyWellKnownAttributeData.cs (3)
118_memberNotNullAttributeData = _memberNotNullAttributeData.Add(memberName); 146_memberNotNullWhenTrueAttributeData = _memberNotNullWhenTrueAttributeData.Add(memberName); 150_memberNotNullWhenFalseAttributeData = _memberNotNullWhenFalseAttributeData.Add(memberName);
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (1)
315partInterfaces = partInterfaces.Add(baseType);
Symbols\Tuples\TupleTypeSymbol.cs (1)
244var chainedTypes = ImmutableArray.Create(elementTypes, (loop - 1) * (ValueTupleRestPosition - 1), ValueTupleRestPosition - 1).Add(TypeWithAnnotations.Create(currentSymbol));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAboveReturnCodeFixProvider.cs (3)
59var newBody = SyntaxFactory.Block(statements.Add(exprOrStatement).Cast<StatementSyntax>()); 71statements = statements.Add(generator.ReturnStatement(exprOrStatement)); 79var newBody = SyntaxFactory.Block(statements.Add(generator.ReturnStatement(exprOrStatement)).Cast<StatementSyntax>());
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
14237references: TargetFrameworkUtil.NetStandard20References.Add(MetadataReference.CreateFromAssemblyInternal(typeof(ISourceGenerator).Assembly)),
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\CompilationEmitTests.cs (1)
618return base.CreateSections().Add(
Microsoft.CodeAnalysis.CSharp.Features (4)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
175return statements.Add(GetFlowControlStatement());
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AssignOutParametersAboveReturnCodeFixProvider.cs (3)
59var newBody = SyntaxFactory.Block(statements.Add(exprOrStatement).Cast<StatementSyntax>()); 71statements = statements.Add(generator.ReturnStatement(exprOrStatement)); 79var newBody = SyntaxFactory.Block(statements.Add(generator.ReturnStatement(exprOrStatement)).Cast<StatementSyntax>());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\ExtendedPartialMethodsTests.cs (1)
2592var vbComp = CreateVisualBasicCompilation(vb, referencedAssemblies: TargetFrameworkUtil.GetReferences(TargetFramework.Standard).Add(comp.EmitToImageReference()));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
1150var allReferences = TargetFrameworkUtil.GetReferences(targetFramework, references).Add(ilReference);
Microsoft.CodeAnalysis.EditorFeatures (2)
IntelliSense\AsyncCompletion\RecentItemsManager.cs (1)
44RecentItems = items.Add(item.FilterText);
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCommitter.cs (1)
200document.GetLinkedDocumentIds().Add(document.Id).SelectAsArray(id => (id, newFullText)));
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
CodeGeneration\CodeGenerationTests.cs (1)
442: getParameterSymbols.Add(Parameter(type, "value")(testContext.SemanticModel));
Diagnostics\DiagnosticAnalyzerServiceTests.cs (1)
434analyzers = analyzers.Add(analyzer);
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
BackgroundWorkIndicator\BackgroundWorkIndicatorContext.cs (1)
251_scopes = _scopes.Add(scope);
Microsoft.CodeAnalysis.ExternalAccess.Xaml (1)
External\ConversionHelpers.cs (1)
25.SelectMany(section => section.TaggedParts.Add(new TaggedText(TextTags.LineBreak, Environment.NewLine)))
Microsoft.CodeAnalysis.Features (15)
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (1)
360allDocumentIds = linkedDocumentIds.Add(document.Id);
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.MoveFileCodeAction.cs (1)
105var newCurrentFolder = currentFolder.Add(matchingFolderInfo.Name);
Completion\CommonCompletionItem.cs (1)
42tags = tags.Add(WellKnownTags.Warning);
Completion\CommonCompletionProvider.cs (2)
92parts = parts.Add(new TaggedText(TextTags.LineBreak, Environment.NewLine)); 95parts = parts.Add(new TaggedText(TextTags.Text, note));
Completion\CompletionItem.cs (1)
487return With(tags: Tags.Add(tag));
Completion\Providers\AbstractDocCommentCompletionProvider.cs (2)
339commitRules = commitRules.Add(WithoutQuoteRule); 344commitRules = commitRules.Add(WithoutSpaceRule);
Completion\Providers\SymbolCompletionItem.cs (1)
61tags = tags.Add(WellKnownTags.Deprecated);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerRegistrationService.cs (1)
102ImmutableInterlocked.AddOrUpdate(ref _analyzerProviders, metadata.Name, n => [lazyProvider], (n, v) => v.Add(lazyProvider));
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.AbstractUnitTestingPriorityProcessor.cs (1)
58_lazyAnalyzers = new Lazy<ImmutableArray<IUnitTestingIncrementalAnalyzer>>(() => analyzers.Add(analyzer));
ExternalAccess\Watch\Api\WatchHotReloadService.cs (1)
137=> capabilities.Add(nameof(EditAndContinueCapabilities.AddExplicitInterfaceImplementation));
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
441.Add(new TaggedText(TextTags.CodeBlockEnd, string.Empty));
QuickInfo\QuickInfoUtilities.cs (1)
157tags = tags.Add(WellKnownTags.Warning);
src\Analyzers\Core\CodeFixes\OrderModifiers\AbstractOrderModifiersCodeFixProvider.cs (1)
39=> FixableCompilerErrorIds.Add(IDEDiagnosticIds.OrderModifiersDiagnosticId);
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Handler\CodeActions\CodeActionHelpers.cs (2)
159diagnosticsForFix, action, pathOfParentAction.Add(action.OriginalCodeAction.Title))); 234codeActionPathList = codeActionPathList.Add(codeAction.Title);
Handler\Hover\HoverHandler.cs (1)
137.. info.Sections.SelectMany(static s => s.TaggedParts.Add(new TaggedText(TextTags.LineBreak, Environment.NewLine)))
Workspaces\LspWorkspaceRegistrationService.cs (1)
40_registrations = _registrations.Add(workspace);
Microsoft.CodeAnalysis.Remote.ServiceHub (6)
Host\RemoteWorkspaceManager.cs (4)
27.Add(typeof(AspNetCoreEmbeddedLanguageClassifier).Assembly) 28.Add(typeof(BrokeredServiceBase).Assembly) 29.Add(typeof(IRazorLanguageServerTarget).Assembly) 30.Add(typeof(RemoteWorkspacesResources).Assembly);
src\VisualStudio\Core\Def\Watson\FaultReporter.cs (2)
57s_telemetrySessions = s_telemetrySessions.Add(session); 73s_loggers = s_loggers.Add(logger);
Microsoft.CodeAnalysis.Test.Utilities (2)
TargetFrameworkUtil.cs (2)
174public static ImmutableArray<MetadataReference> StandardAndCSharpReferences => StandardReferences.Add(StandardCSharpReference); 175public static ImmutableArray<MetadataReference> StandardAndVBRuntimeReferences => StandardReferences.Add(StandardVisualBasicReference);
Microsoft.CodeAnalysis.VisualBasic (15)
Binding\Binder_ObjectInitializer.vb (2)
186boundChildNodesForError = boundChildNodesForError.Add(objectInitializerExpression) 604Dim children = boundArguments.Add(expr)
Binding\Binder_Statements.vb (1)
359body = body.Update(body.StatementListSyntax, body.Locals, body.Statements.Add(exitLabelStatement))
BoundTree\Expression.vb (1)
119Return StaticCast(Of BoundNode).From(Me.Bounds.Add(Me.Initializer))
Declarations\DeclarationTreeBuilder.vb (1)
221globalChildren = globalChildren.Add(projectNs)
Lowering\LocalRewriter\LocalRewriter_DoLoop.vb (1)
123ifConditionGotoStart = New BoundStatementList(ifConditionGotoStart.Syntax, conditionResumeTarget.Add(ifConditionGotoStart))
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (2)
230boundCollectionAssignment = New BoundStatementList(boundCollectionAssignment.Syntax, loopResumeTarget.Add(boundCollectionAssignment)) 578boundEnumeratorAssignment = New BoundStatementList(boundEnumeratorAssignment.Syntax, loopResumeTarget.Add(boundEnumeratorAssignment))
Lowering\LocalRewriter\LocalRewriter_ForTo.vb (1)
188rewrittenInitializer = New BoundStatementList(rewrittenInitializer.Syntax, loopResumeTarget.Add(rewrittenInitializer))
Lowering\LocalRewriter\LocalRewriter_If.vb (2)
141condGoto = New BoundStatementList(condGoto.Syntax, unstructuredExceptionHandlingResumeTarget.Add(condGoto)) 186condGoto = New BoundStatementList(condGoto.Syntax, unstructuredExceptionHandlingResumeTarget.Add(condGoto))
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (2)
179rewrittenArguments = rewrittenArguments.Add(rewrittenValue) 820callArgs = callArgs.Add(ignoreReturn)
Lowering\LocalRewriter\LocalRewriter_While.vb (1)
98ifConditionGotoStart = New BoundStatementList(ifConditionGotoStart.Syntax, conditionResumeTargetOpt.Add(ifConditionGotoStart))
Symbols\Tuples\TupleTypeSymbol.vb (1)
569Dim typeArguments As ImmutableArray(Of TypeSymbol) = ImmutableArray.Create(Of TypeSymbol)(elementTypes, ([loop] - 1) * (TupleTypeSymbol.RestPosition - 1), TupleTypeSymbol.RestPosition - 1).Add(namedTypeSymbol)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Completion\CompletionProviders\CrefCompletionProvider.vb (1)
271commitRules = commitRules.Add(s_WithoutOpenParen)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
SourceGeneration\GeneratorDriverTests_Attributes_SimpleName.vb (2)
1333compilation.Options.GlobalImports.Add(GlobalImport.Parse("AAttribute = XAttribute"))))) 1372compilation.Options.GlobalImports.Add(GlobalImport.Parse("BAttribute = XAttribute")))))
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (3)
BasicTestBase.vb (3)
820Dim allReferences = TargetFrameworkUtil.Mscorlib45ExtendedReferences.Add( 897Dim allReferences As IEnumerable(Of MetadataReference) = TargetFrameworkUtil.Mscorlib45ExtendedReferences.Add( 917Dim references As IEnumerable(Of MetadataReference) = TargetFrameworkUtil.Mscorlib45ExtendedReferences.Add(
Microsoft.CodeAnalysis.Workspaces (22)
CodeActions\CodeAction.cs (1)
202CustomTags = CustomTags.Add(tag);
ExtensionManager\IExtensionManagerExtensions.cs (2)
105? existing.Add(extension) 129? existing.Add(extension)
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (2)
1011return first.Add(second); 1023return self.Add(items[0]);
src\Compilers\Core\Portable\InternalUtilities\OneOrMany.cs (1)
96OneOrMany.Create(_many.Add(item));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxToken.cs (1)
54=> Diagnostics.Contains(diagnostic) ? this : With(diagnostics: this.Diagnostics.Add(diagnostic));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EventMap.cs (1)
29var newRegistries = registries.Add(new Registry<TEventHandler>(eventHandler));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (2)
128dictionary[key] = existingArray.Add(value); 140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value);
Storage\SQLite\v2\SQLitePersistentStorage.Accessor.cs (3)
58_primaryKeyColumns = primaryKeysArray.ToImmutableArray().Add((DataNameIdColumnName, SQLiteIntegerType)); 59_allColumns = _primaryKeyColumns.Add((ChecksumColumnName, SQLiteBlobType)).Add((DataColumnName, SQLiteBlobType));
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
500OutputPaths = projectReferenceInformation.OutputPaths.Add(outputPath)
Workspace\ProjectSystem\ProjectSystemProjectFactory.ProjectUpdateState.cs (6)
87return map.SetItem(path, projects.Add(projectId)); 119=> this with { RemovedMetadataReferences = RemovedMetadataReferences.Add(reference) }; 122=> this with { AddedMetadataReferences = AddedMetadataReferences.Add(reference) }; 125=> this with { RemovedAnalyzerReferences = RemovedAnalyzerReferences.Add(reference) }; 131=> this with { AddedAnalyzerReferences = AddedAnalyzerReferences.Add(reference) }; 155ConvertedProjectReferences = ConvertedProjectReferences.Add((path, projectReference))
Workspace\Solution\ProjectDependencyGraph_AddProject.cs (1)
23newTopologicallySortedProjects = newTopologicallySortedProjects.Add(projectId);
Workspace\Solution\Solution_SemanticModelCaching.cs (1)
44localArray = localArray.Add((documentId, semanticModel));
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\ProjectMap.cs (1)
117projectInfos = projectInfos.Add(projectInfo);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (2)
1011return first.Add(second); 1023return self.Add(items[0]);
src\Compilers\Core\Portable\InternalUtilities\OneOrMany.cs (1)
96OneOrMany.Create(_many.Add(item));
Microsoft.Interop.ComInterfaceGenerator (1)
ComInterfaceGenerator.cs (1)
328ElementTypeInformation = returnSwappedSignatureElements.Add(
Microsoft.Interop.SourceGeneration (7)
DiagnosticOr.cs (2)
69Diag d => new Diag(d.Diagnostics.Add(diagnostic)), 71ValueAndDiagnostic vad => new ValueAndDiagnostic(vad.Value, vad.Diagnostics.Add(diagnostic)),
Marshalling\BreakingChangeDetector.cs (1)
31gen.Diagnostics.Add(
Marshalling\ByValueContentsMarshalKindValidator.cs (3)
42ByValueMarshalKindSupport.NotSupported => ResolvedGenerator.ResolvedWithDiagnostics(s_forwarder.Bind(generator.Generator.TypeInfo, context), generator.Diagnostics.Add(diagnostic!)), 43ByValueMarshalKindSupport.Unnecessary => generator with { Diagnostics = generator.Diagnostics.Add(diagnostic!) }, 44ByValueMarshalKindSupport.NotRecommended => generator with { Diagnostics = generator.Diagnostics.Add(diagnostic!) },
SequenceEqualImmutableArray.cs (1)
27return new SequenceEqualImmutableArray<T>(Array.Add(value));
Microsoft.ML.Transforms (1)
MissingValueIndicatorTransform.cs (1)
145types[iinfo] = new VectorDataViewType(NumberDataViewType.Single, vectorType.Dimensions.Add(2));
Microsoft.VisualStudio.LanguageServices (4)
Progression\GraphQueryManager.cs (1)
70_trackedQueries = _trackedQueries.Add((new WeakReference<IGraphContext>(context), graphQueries));
ProjectSystem\OpenTextBufferProvider.cs (1)
110public void AddListener(IOpenTextBufferEventListener listener) => ImmutableInterlocked.Update(ref _listeners, static (array, listener) => array.Add(listener), listener);
Watson\FaultReporter.cs (2)
57s_telemetrySessions = s_telemetrySessions.Add(session); 73s_loggers = s_loggers.Add(logger);
System.Collections.Immutable (1)
System\Collections\Immutable\ImmutableArray_1.cs (1)
1085return self.Add(value);
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\General\Ecma\EcmaWrappedTypeProvider.cs (1)
47filteredTypeArguments = filteredTypeArguments.Add(typeArguments[i].SkipTypeWrappers());