22 references to IsNullOrEmpty
Microsoft.CodeAnalysis.Razor.Compiler (13)
Language\CodeGeneration\CodeRenderingContextExtensions.cs (2)
18
return span is SourceSpan spanValue && !spanValue.FilePath.
IsNullOrEmpty
()
27
return span is SourceSpan spanValue && !spanValue.FilePath.
IsNullOrEmpty
()
Language\CodeGeneration\CodeWriterExtensions.cs (2)
429
expression = expression.
IsNullOrEmpty
() ? "null" : expression;
660
if (name.
IsNullOrEmpty
())
Language\Components\ComponentHelpers.cs (1)
16
if (className.
IsNullOrEmpty
())
Language\Components\ComponentMarkupEncodingPass.cs (2)
98
if (child is not HtmlIntermediateToken token || token.Content.
IsNullOrEmpty
())
134
if (child is not HtmlIntermediateToken token || token.Content.
IsNullOrEmpty
())
Language\DefaultRazorTagHelperContextDiscoveryPhase.cs (1)
412
if (!tagHelperPrefix.DirectiveText.
IsNullOrEmpty
())
Language\NamespaceComputer.cs (2)
65
if (!rootNamespace.
IsNullOrEmpty
() || codeDocument.FileKind.IsComponent())
234
if (_lastNamespaceName.
IsNullOrEmpty
())
Language\RazorCodeDocumentExtensions.cs (1)
19
if (filePath.
IsNullOrEmpty
())
Language\TagHelperMatchingConventions.cs (1)
222
if (descriptor == null || name.
IsNullOrEmpty
())
Mvc\ViewComponentTagHelperPass.cs (1)
165
var fullyQualifiedName = !Namespace.Name.
IsNullOrEmpty
()
Microsoft.CodeAnalysis.Razor.Workspaces (8)
Completion\DirectiveAttributeCompletionItemProvider.cs (3)
154
if (attribute.IsDirectiveAttribute && !attribute.IndexerNamePrefix.
IsNullOrEmpty
())
195
if (!attribute.IndexerNamePrefix.
IsNullOrEmpty
())
208
if (completionContext.InAttributeName && !attribute.IndexerNamePrefix.
IsNullOrEmpty
())
Completion\TagHelperCompletionService.cs (2)
83
if (!attributeDescriptor.Name.
IsNullOrEmpty
())
104
if (!attributeDescriptor.IndexerNamePrefix.
IsNullOrEmpty
())
Utilities\FilePathNormalizer.cs (3)
22
if (directoryFilePath.
IsNullOrEmpty
() || directoryFilePath == "/")
53
if (filePath.
IsNullOrEmpty
())
79
if (filePath.
IsNullOrEmpty
() || filePath == "/")
Microsoft.CodeAnalysis.Remote.Razor (1)
NestedFiles\RemoteAddNestedFileService.cs (1)
136
if (!codeDocument.TryGetNamespace(fallbackToRootNamespace: true, out var ns) || ns.
IsNullOrEmpty
())