46 references to AsRef
Microsoft.CodeAnalysis.CSharp.Features (7)
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.NameGenerator.cs (2)
27StringBreaker.AddWordParts(baseName, ref parts.AsRef()); 44StringBreaker.AddWordParts(name, ref breaks.AsRef());
SignatureHelp\LightweightOverloadResolution.cs (3)
73if (!TryPrepareArgumentToParameterMap(method, ref argumentToParameterMap.AsRef())) 100foundParameterIndex = FirstUnspecifiedParameter(ref argumentToParameterMap.AsRef()); 158specified.AsRef()[parameterIndex] = true;
StringIndentation\CSharpStringIndentationService.cs (2)
46ProcessInterpolatedStringExpression(text, interpolatedString, ref result.AsRef(), cancellationToken); 68ProcessMultiLineRawStringLiteralToken(text, child.AsToken(), ref result.AsRef(), cancellationToken);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (2)
203FlattenDeconstructionMethods(semanticModel.GetDeconstructionInfo(assignment), ref builder.AsRef()); 215FlattenDeconstructionMethods(semanticModel.GetDeconstructionInfo(@foreach), ref builder.AsRef());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
903AddVariables(declarationExpression.Designation, ref variables.AsRef());
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Utilities\PatternMatcherTests.cs (3)
447StringBreaker.AddCharacterParts(identifier, ref parts.AsRef()); 454StringBreaker.AddWordParts(identifier, ref parts.AsRef()); 482PatternMatcher.CreatePatternMatcher(pattern, includeMatchedSpans: true).AddMatches(candidate, ref matches.AsRef());
Microsoft.CodeAnalysis.Features (12)
ConvertNumericLiteral\AbstractConvertNumericLiteralCodeRefactoringProvider.cs (1)
90result.AsRef().AddIfNotNull(kind switch
Copilot\ICopilotChangeAnalysisService.cs (1)
322ref intersectingCollections.AsRef());
EmbeddedLanguages\Classification\AbstractFallbackEmbeddedLanguageClassifier.cs (1)
27array.AsRef().AddIfNotNull(info.SyntaxKinds.Utf8StringLiteralToken);
EmbeddedLanguages\EmbeddedLanguageInfo.cs (2)
35array.AsRef().AddIfNotNull(syntaxFacts.SyntaxKinds.SingleLineRawStringLiteralToken); 36array.AsRef().AddIfNotNull(syntaxFacts.SyntaxKinds.MultiLineRawStringLiteralToken);
Highlighting\Keywords\AbstractKeywordHighlighter.cs (2)
43AddTouchingTokens(root, position, ref touchingTokens.AsRef()); 44if (!ContainsHighlightableToken(ref touchingTokens.AsRef()))
NavigateTo\AbstractNavigateToSearchService.InProcess.cs (2)
103nameMatcher.AddMatches(declaredSymbolInfo.Name, ref nameMatches.AsRef()) && 104containerMatcher?.AddMatches(declaredSymbolInfo.FullyQualifiedContainerName, ref containerMatches.AsRef()) != false)
QuickInfo\Presentation\QuickInfoContentBuilder.cs (1)
41var (descriptionSection, documentationCommentsSection) = ComputeSections(quickInfoItem, ref remainingSections.AsRef());
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_Property.cs (2)
52result.AsRef().AddIfNotNull(getAccessor); 53result.AsRef().AddIfNotNull(setAccessor);
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Host\RemoteWorkspace.InFlightSolution.cs (1)
184solutions.AsRef().AddIfNotNull(_primaryBranchTask);
Microsoft.CodeAnalysis.Workspaces (19)
Classification\ClassifierHelper.cs (1)
268syntacticPartSpan.Start, syntacticPartSpan.Length, ref tempBuffer.AsRef(),
CodeFixes\FixAllOccurrences\TextChangeMerger.cs (2)
90overlappingSpans: ref overlappingSpans.AsRef(), 91intersectingSpans: ref intersectingSpans.AsRef());
FindSymbols\SymbolTree\SymbolTreeInfo.cs (4)
179_spellChecker.FindSimilarWords(ref similarNames.AsRef(), name, substringsAreSimilar: false); 238Bind(index, assemblySymbol.GlobalNamespace, ref results.AsRef(), cancellationToken); 416Bind(node.ParentIndex, rootContainer, ref containerSymbols.AsRef(), cancellationToken); 511Bind(derivedTypeIndex, compilation.GlobalNamespace, ref tempBuilder.AsRef(), cancellationToken);
PatternMatching\ContainerPatternMatcher.cs (1)
82if (!MatchPatternSegment(containerName, ref _patternSegments[i], ref tempContainerMatches.AsRef(), fuzzyMatch))
PatternMatching\PatternMatcher.cs (1)
303StringBreaker.AddWordParts(candidate, ref candidateHumps.AsRef());
PatternMatching\PatternMatcherExtensions.cs (1)
16matcher.AddMatches(candidate, ref matches.AsRef());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeAlgorithms`2.cs (1)
25tree.FillWithIntervalsThatMatch(start, length, ref result.AsRef(), in introspector, in intervalTester, stopAfterFirst: false);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolInfoExtensions.cs (1)
34result.AsRef().AddIfNotNull(symbol);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Naming\IdentifierNameParts.cs (1)
30StringBreaker.AddWordParts(baseName, ref parts.AsRef());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
407StringBreaker.AddParts(name, isWord, ref parts.AsRef());
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\CodeRefactoringContextExtensions.cs (2)
71AddRelevantNodes(document, span, allowEmptyNode, maxCount: 1, ref result.AsRef(), cancellationToken); 96AddRelevantNodes(document, span, allowEmptyNodes, maxCount: int.MaxValue, ref result.AsRef(), cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
369StringBreaker.AddWordParts(name, ref parts.AsRef());
Utilities\SpellChecker.cs (1)
31bKTree.Find(ref result.AsRef(), value, threshold: null);
Workspace\Solution\SolutionState.cs (1)
1207projectState.AddDocumentIdsWithFilePath(ref result.AsRef(), filePath);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
UtilityTest\BKTreeTests.cs (1)
19tree.Find(ref results.AsRef(), value, threshold);