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