36 references to NullToEmpty
Microsoft.AspNetCore.Razor.Test.Common (2)
Language\IntegrationTests\RazorIntegrationTestBase.cs (1)
486Diagnostics = diagnostics.NullToEmpty();
Language\Legacy\ParserTestBase.cs (1)
213directives = directives.NullToEmpty();
Microsoft.CodeAnalysis.Razor.Compiler (26)
Language\BoundAttributeDescriptor.cs (1)
75Parameters = parameters.NullToEmpty();
Language\DocumentClassifierPassBase.cs (1)
20=> _targetExtensions.NullToEmpty();
Language\Intermediate\ClassDeclarationIntermediateNode.cs (3)
13public ImmutableArray<string> Modifiers { get; set => field = value.NullToEmpty(); } = []; 14public ImmutableArray<IntermediateToken> Interfaces { get; set => field = value.NullToEmpty(); } = []; 15public ImmutableArray<TypeParameter> TypeParameters { get; set => field = value.NullToEmpty(); } = [];
Language\Intermediate\FieldDeclarationIntermediateNode.cs (2)
12public ImmutableArray<string> Modifiers { get; init => field = value.NullToEmpty(); } = []; 13public ImmutableArray<string> SuppressWarnings { get; init => field = value.NullToEmpty(); } = [];
Language\Intermediate\MethodDeclarationIntermediateNode.cs (2)
15public ImmutableArray<string> Modifiers { get; set => field = value.NullToEmpty(); } = []; 16public ImmutableArray<MethodParameter> Parameters { get; set => field = value.NullToEmpty(); } = [];
Language\Intermediate\MethodParameter.cs (1)
13public ImmutableArray<string> Modifiers { get; } = modifiers.NullToEmpty();
Language\Intermediate\PropertyDeclarationIntermediateNode.cs (1)
13public ImmutableArray<string> Modifiers { get; init => field = value.NullToEmpty(); } = [];
Language\Legacy\CSharpCodeParser.cs (1)
132directives = directives.NullToEmpty();
Language\RazorCodeDocument.cs (2)
56Imports = imports.NullToEmpty(); 69_directiveTagHelperContributions = directiveTagHelperContributions.NullToEmpty();
Language\RazorConfiguration.cs (2)
25init => field = value.NullToEmpty(); 26} = PreprocessorSymbols.NullToEmpty();
Language\RazorCSharpDocument.cs (3)
33Diagnostics = diagnostics.NullToEmpty(); 34SourceMappingsSortedByGenerated = sourceMappings.NullToEmpty(); 49LinePragmas = linePragmas.NullToEmpty();
Language\RazorParserOptions.Builder.cs (1)
19public ImmutableArray<DirectiveDescriptor> Directives { get; set => field = value.NullToEmpty(); }
Language\RazorSyntaxTree.cs (1)
33_diagnostics = diagnostics.NullToEmpty();
Language\TagHelperDescriptor.cs (3)
81TagMatchingRules = tagMatchingRules.NullToEmpty(); 82BoundAttributes = attributeDescriptors.NullToEmpty(); 83AllowedChildTags = allowedChildTags.NullToEmpty();
Language\TagHelperObject`1.cs (1)
23Diagnostics = diagnostics.NullToEmpty();
Language\TagMatchingRuleDescriptor.cs (1)
37Attributes = attributes.NullToEmpty();
Microsoft.CodeAnalysis.Razor.Workspaces (4)
Completion\DirectiveAttributeCompletionContext.cs (1)
13public ImmutableArray<string> ExistingAttributes { get; init => field = value.NullToEmpty(); } = [];
Completion\DirectiveAttributeCompletionItemProvider.AttributeCompletionDetails.cs (2)
18public ImmutableArray<BoundAttributeDescriptionInfo> Descriptions => descriptions.NullToEmpty(); 19public ImmutableArray<RazorCommitCharacter> CommitCharacters => commitCharacters.NullToEmpty();
Completion\RazorCompletionItem.cs (1)
62CommitCharacters = commitCharacters.NullToEmpty();
Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests (2)
Completion\LanguageServerTagHelperCompletionServiceTest.cs (2)
1315attributes = attributes.NullToEmpty(); 1338attributes = attributes.NullToEmpty();
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (1)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostFoldingRangeEndpointTest.cs (1)
376var htmlSpans = spans.GetValueOrDefault("html").NullToEmpty();
Microsoft.VisualStudioCode.RazorExtension.UnitTests (1)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostFoldingRangeEndpointTest.cs (1)
376var htmlSpans = spans.GetValueOrDefault("html").NullToEmpty();