86 references to AsRef
Microsoft.AspNetCore.Mvc.Razor.Extensions.UnitTests (3)
MvcImportProjectFeatureTest.cs (3)
19
MvcImportProjectFeature.AddDefaultDirectivesImport(ref imports.
AsRef
());
45
mvcImportFeature.AddHierarchicalImports(projectItem, ref imports.
AsRef
());
66
mvcImportFeature.AddHierarchicalImports(projectItem, ref imports.
AsRef
());
Microsoft.AspNetCore.Razor.Test.Common (1)
Language\IntegrationTests\IntegrationTestBase.cs (1)
780
_innerFeature.CollectImports(projectItem, ref innerImports.
AsRef
());
Microsoft.CodeAnalysis.Razor.Compiler (60)
CSharp\DefaultTagHelperDescriptorFactory.cs (1)
127
CollectAccessibleProperties(type, ref accessibleProperties.
AsRef
());
Language\Components\ComponentBindLoweringPass.cs (10)
50
ref var referencesRef = ref references.
AsRef
();
51
ref var parameterReferencesRef = ref parameterReferences.
AsRef
();
492
ref valueExpressionTokens.
AsRef
(),
493
ref changeExpressionTokens.
AsRef
());
499
ref valueExpressionTokens.
AsRef
(),
500
ref changeExpressionTokens.
AsRef
());
506
ref valueExpressionTokens.
AsRef
(),
507
ref changeExpressionTokens.
AsRef
());
639
ref var builderRef = ref builder.
AsRef
();
1016
node.CollectDescendantNodes(ref nodes.
AsRef
());
Language\Components\ComponentDesignTimeNodeWriter.cs (1)
1038
node.CollectDescendantNodes(ref tokens.
AsRef
());
Language\Components\ComponentRuntimeNodeWriter.cs (1)
931
node.CollectDescendantNodes(ref tokens.
AsRef
());
Language\DefaultTagHelperResolutionPhase.ComponentTagHelperResolver.cs (3)
146
TagHelperMatchingConventions.GetAttributeMatches(binding.TagHelpers, attributeName, ref matches.
AsRef
());
497
ConvertHtmlTokensToCSharp(child.Children, ref newChildren.
AsRef
(), child.Source, wrapLiteralsInCSharpExpression);
850
TagHelperMatchingConventions.GetAttributeMatches(binding.TagHelpers, attributeName, ref matches.
AsRef
());
Language\DefaultTagHelperResolutionPhase.cs (1)
79
descriptor.AppendAllDiagnostics(ref descriptorDiagnostics.
AsRef
());
Language\DefaultTagHelperResolutionPhase.LegacyTagHelperResolver.cs (4)
121
TagHelperMatchingConventions.GetAttributeMatches(binding.TagHelpers, attributeName, ref matches.
AsRef
());
271
TagHelperMatchingConventions.GetAttributeMatches(binding.TagHelpers, attributeName, ref matches.
AsRef
());
1530
FlushPendingLiterals(target, ref pendingLiteralParts.
AsRef
(), ref pendingFirstSpan, ref pendingLastSpan);
1556
FlushPendingLiterals(target, ref pendingLiteralParts.
AsRef
(), ref pendingFirstSpan, ref pendingLastSpan);
Language\Extensions\FunctionsDirectivePass.cs (2)
29
documentNode.CollectDirectiveReferences(FunctionsDirective.Directive, ref directiveNodes.
AsRef
());
33
documentNode.CollectDirectiveReferences(ComponentCodeDirective.Directive, ref directiveNodes.
AsRef
());
Language\Intermediate\DocumentIntermediateNodeExtensions.cs (2)
66
node.CollectDirectiveReferences(directive, ref results.
AsRef
());
106
document.CollectDescendantReferences(ref results.
AsRef
());
Language\Intermediate\IntermediateNodeExtensions.cs (2)
45
node.CollectDescendantNodes(ref results.
AsRef
());
54
ref var stackRef = ref stack.
AsRef
();
Language\Legacy\CSharpCodeParser.cs (10)
290
ReadWhile(IsSpacingTokenIncludingNewLinesAndCommentsAndCSharpDirectives, ref precedingWhitespace.
AsRef
());
783
ReadWhile(IsSpacingTokenIncludingNewLinesAndCommentsAndCSharpDirectives, ref tokens.
AsRef
());
1002
ref read.
AsRef
());
1988
ref tokens.
AsRef
());
2301
SkipToNextImportantToken(builder, ref whitespace.
AsRef
());
2364
SkipToNextImportantToken(builder, ref whitespace.
AsRef
());
2445
SkipToNextImportantToken(builder, ref whitespace.
AsRef
());
2472
ReadWhile(IsSpacingTokenIncludingComments, ref whitespaceOrComments.
AsRef
());
2576
ReadWhile(IsSpacingTokenIncludingNewLinesAndCommentsAndCSharpDirectives, ref whitespace.
AsRef
());
2779
ReadWhile(static token => token.Kind == SyntaxKind.Whitespace, ref whitespace.
AsRef
());
Language\Legacy\HtmlMarkupParser.cs (7)
368
ref tokens.
AsRef
());
1115
ref attributePrefixWhitespace.
AsRef
());
1120
var nameParsingResult = TryParseAttributeName(out SyntaxToken? ephemeralToken, ref nameTokens.
AsRef
());
1263
ref whitespaceAfterEquals.
AsRef
());
1371
ref prefixTokens.
AsRef
());
1450
ref valueTokens.
AsRef
());
1897
FastReadWhitespaceAndNewLines(ref whitespace.
AsRef
());
Language\Legacy\TagHelperParseTreeRewriter.cs (1)
46
descriptor.AppendAllDiagnostics(ref builder.
AsRef
());
Language\Legacy\TokenizerBackedParser.cs (3)
278
ref whitespace.
AsRef
());
503
ReadWhile(condition, ref tokens.
AsRef
());
510
ReadWhile(condition, arg, ref tokens.
AsRef
());
Language\RazorProjectEngine.cs (3)
464
CollectImports(projectItem, ref imports.
AsRef
());
472
CollectImports(projectItem, ref imports.
AsRef
());
495
CollectImports(projectItem, ref importItems.
AsRef
());
Language\Syntax\BaseMarkupEndTagSyntax.cs (1)
34
ref var tokens = ref tokensBuilder.
AsRef
();
Language\Syntax\BaseMarkupStartTagSyntax.cs (1)
49
ref var tokens = ref tokensBuilder.
AsRef
();
Language\TagHelperBinder.cs (4)
165
ref resultsBuilder.
AsRef
(), ref tempRulesBuilder.
AsRef
(), distinctSet);
172
ref resultsBuilder.
AsRef
(), ref tempRulesBuilder.
AsRef
(), distinctSet);
Language\TagHelperDescriptor.cs (1)
170
AppendAllDiagnostics(ref diagnostics.
AsRef
());
SourceGenerators\RazorSourceGenerator.RazorProviders.cs (2)
35
var razorLanguageVersion = ParseRazorLanguageVersion(globalOptions, ref diagnostics.
AsRef
());
36
var razorWarningLevel = ParseRazorWarningLevel(globalOptions, razorLanguageVersion, ref diagnostics.
AsRef
());
Microsoft.CodeAnalysis.Razor.Workspaces (20)
CodeActions\Razor\CreateComponentCodeActionResolver.cs (1)
47
TryAddNamespaceDirective(codeDocument, newComponentUri, ref documentChanges.
AsRef
());
Completion\CompletionListMerger.cs (1)
105
Split(data, ref collector.
AsRef
());
Completion\TagHelperCompletionProvider.cs (2)
307
ref completionItems.
AsRef
(),
314
AddCompletionItemWithUsingDirective(ref completionItems.
AsRef
(), context, commitChars, displayText, descriptionInfo);
DocumentMapping\RazorEditService.cs (2)
46
AddDirectlyMappedEdits(ref edits.
AsRef
(), textChanges, codeDocument, cancellationToken, out var skippedEdits);
64
AddCSharpLanguageFeatureChanges(ref edits.
AsRef
(), codeDocument, originalCSharpSyntaxRoot, originalCSharpSourceText, newCSharpSyntaxRoot, newCSharpSourceText, options, cancellationToken);
Extensions\LspExtensions_WorkspaceEdit.cs (2)
68
AddEdits(ref builder.
AsRef
(), first);
69
AddEdits(ref builder.
AsRef
(), second);
Formatting\Passes\CSharpFormattingPass.cs (1)
60
FormattingUtilities.GetOriginalDocumentChangesFromLineInfo(context, changedText, generatedDocument.LineInfo, formattedCSharpText, _logger, shouldKeepInsertedNewlineAtPosition: null, ref formattingChanges.
AsRef
(), out var lastFormattedTextLine);
Formatting\Passes\CSharpOnTypeFormattingPass.cs (2)
300
CleanupSourceMappingStart(context, mappingLinePositionSpan, ref changes.
AsRef
(), out var newLineAdded);
302
CleanupSourceMappingEnd(context, mappingLinePositionSpan, ref changes.
AsRef
(), newLineAdded);
Formatting\Passes\HtmlFormattingPass.cs (1)
124
FormattingUtilities.GetOriginalDocumentChangesFromLineInfo(context, originalText, lineInfo, formattedText, _logger, ShouldKeepInsertedNewLine, ref formattingChanges.
AsRef
(), out _);
Formatting\Passes\RazorFormattingPass.cs (3)
64
TryFormatCSharpBlockStructure(context, ref changes.
AsRef
(), source, node);
65
TryFormatSingleLineDirective(ref changes.
AsRef
(), node);
66
TryFormatBlocks(context, ref changes.
AsRef
(), source, node);
Formatting\UsingDirectiveHelper.cs (1)
81
CollectUsingDirectives(codeDocument, ref usingDirectives.
AsRef
());
Rename\RenameService.cs (2)
74
AddAdditionalFileRenames(ref documentChanges.
AsRef
(), originComponentDocumentFilePath, newPath);
101
AddAdditionalFileRenames(ref documentChanges.
AsRef
(), oldPath, newPath);
SpellCheck\SpellCheckService.cs (2)
28
AddRazorSpellCheckRanges(ref builder.
AsRef
(), syntaxTree);
35
AddCSharpSpellCheckRanges(ref builder.
AsRef
(), csharpRanges, codeDocument);
Microsoft.VisualStudio.LanguageServices.Razor (1)
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\Completion\CohostDocumentCompletionEndpoint.cs (1)
313
ref builder.
AsRef
(),
Microsoft.VisualStudioCode.RazorExtension (1)
src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.CohostingShared\Completion\CohostDocumentCompletionEndpoint.cs (1)
313
ref builder.
AsRef
(),