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