47 references to Create
Microsoft.AspNetCore.Razor.Language.UnitTests (20)
CodeGeneration\CodeRenderingContextTest.cs (4)
79var alwaysOn = RazorDiagnostic.Create( 82var level11 = RazorDiagnostic.Create( 85var level12 = RazorDiagnostic.Create( 88var level13 = RazorDiagnostic.Create(
DefaultRazorCSharpLoweringPhaseTest.cs (1)
71var expectedDiagnostic = RazorDiagnostic.Create(
DefaultRazorTagHelperBinderPhaseTest.cs (1)
476var initialError = RazorDiagnostic.Create(
RazorDiagnosticTest.cs (14)
20var diagnostic = RazorDiagnostic.Create(descriptor, span); 84var diagnostic = RazorDiagnostic.Create(descriptor, span); 116var diagnostic1 = RazorDiagnostic.Create(descriptor, span); 117var diagnostic2 = RazorDiagnostic.Create(descriptor, span); 134var diagnostic1 = RazorDiagnostic.Create(descriptor, span1); 135var diagnostic2 = RazorDiagnostic.Create(descriptor, span2); 152var diagnostic1 = RazorDiagnostic.Create(descriptor1, span); 153var diagnostic2 = RazorDiagnostic.Create(descriptor2, span); 169var diagnostic1 = RazorDiagnostic.Create(descriptor, span); 170var diagnostic2 = RazorDiagnostic.Create(descriptor, span); 187var diagnostic1 = RazorDiagnostic.Create(descriptor, span1); 188var diagnostic2 = RazorDiagnostic.Create(descriptor, span2); 205var diagnostic1 = RazorDiagnostic.Create(descriptor1, span); 206var diagnostic2 = RazorDiagnostic.Create(descriptor2, span);
Microsoft.CodeAnalysis.Razor.Compiler (26)
Language\Components\ComponentDiagnosticFactory.cs (6)
24=> RazorDiagnostic.Create(UnsupportedTagHelperDirective, source); 121=> RazorDiagnostic.Create(PageDirective_MustSpecifyRoute, source); 165=> RazorDiagnostic.Create(DisallowedScriptTag, source); 173=> RazorDiagnostic.Create(TemplateInvalidLocation, source); 286=> RazorDiagnostic.Create(UnsupportedComponentImportContent, source); 426=> RazorDiagnostic.Create(FormName_NotAForm, source);
Language\RazorDiagnosticFactory.cs (20)
37=> RazorDiagnostic.Create(Parsing_UnterminatedStringLiteral, location); 45=> RazorDiagnostic.Create(Parsing_BlockCommentNotTerminated, location); 61=> RazorDiagnostic.Create(Parsing_UnexpectedWhiteSpaceAtStartOfCodeBlock, location); 69=> RazorDiagnostic.Create(Parsing_UnexpectedEndOfFileAtStartOfCodeBlock, location); 101=> RazorDiagnostic.Create(Parsing_SingleLineControlFlowStatementsNotAllowed, location); 109=> RazorDiagnostic.Create(Parsing_AtInCodeMustBeFollowedByColonParenOrIdentifierStart, location); 117=> RazorDiagnostic.Create(Parsing_UnexpectedNestedCodeBlock, location); 205=> RazorDiagnostic.Create(Parsing_MarkupBlockMustStartWithTag, location); 213=> RazorDiagnostic.Create(Parsing_OuterTagMissingName, location); 221=> RazorDiagnostic.Create(Parsing_TextTagCannotContainAttributes, location); 261=> RazorDiagnostic.Create(Parsing_RazorCommentNotTerminated, location); 277=> RazorDiagnostic.Create(Parsing_TagHelperAttributeListMustBeWellFormed, location); 381=> RazorDiagnostic.Create(Parsing_PreprocessorDirectivesMustBeAtTheStartOfLine, location); 389=> RazorDiagnostic.Create(Parsing_PossibleMisplacedPreprocessorDirective, location); 397=> RazorDiagnostic.Create(Parsing_DefineAndUndefNotAllowed, location); 435=> RazorDiagnostic.Create(Parsing_InlineMarkupBlocksCannotBeNested, location); 443=> RazorDiagnostic.Create(Parsing_NamespaceImportAndTypeAliasCannotExistWithinCodeBlock, location); 459=> RazorDiagnostic.Create(TagHelper_CodeBlocksNotSupportedInAttributes, location); 676=> RazorDiagnostic.Create(Rewriter_InsufficientStack, location); 690=> RazorDiagnostic.Create(CssRewriting_ImportNotAllowed, location);
Microsoft.NET.Sdk.Razor.SourceGenerators.UnitTests (1)
RazorDiagnosticTest.cs (1)
33var diagnostics = RazorDiagnostic.Create(new RazorDiagnosticDescriptor("RZC1001", "Some message", RazorDiagnosticSeverity.Error), span);