90 references to Create
Microsoft.AspNetCore.Razor.Language.UnitTests (6)
CodeGeneration\CodeRenderingContextTest.cs (2)
21
var diagnostic = RazorDiagnostic.
Create
(descriptor, SourceSpan.Undefined, "param");
52
var diagnostic = RazorDiagnostic.
Create
(descriptor, SourceSpan.Undefined, "param");
RazorDiagnosticTest.cs (4)
36
var diagnostic = RazorDiagnostic.
Create
(descriptor, span, "Hello", "World");
51
var diagnostic = RazorDiagnostic.
Create
(descriptor, span, "error");
67
var diagnostic = RazorDiagnostic.
Create
(descriptor, span, 1.3m);
100
var diagnostic = RazorDiagnostic.
Create
(descriptor, span, 1.3m);
Microsoft.CodeAnalysis.Razor.Compiler (84)
Language\Components\ComponentDiagnosticFactory.cs (37)
34
=> RazorDiagnostic.
Create
(CodeBlockInAttribute, source, expression);
42
=> RazorDiagnostic.
Create
(UnclosedTag, span, tagName);
50
=> RazorDiagnostic.
Create
(UnexpectedClosingTag, span, tagName);
58
=> RazorDiagnostic.
Create
(UnexpectedClosingTagForVoidElement, span, tagName);
66
=> RazorDiagnostic.
Create
(InvalidHtmlContent, span, text);
76
return RazorDiagnostic.
Create
(MultipleComponents, span, tagName, componentNames);
89
return RazorDiagnostic.
Create
(AmbiguousComponentSelection, span, tagName, componentNames);
100
return RazorDiagnostic.
Create
(UnsupportedComplexContent, node.Source, attributeName, content);
112
return RazorDiagnostic.
Create
(PageDirective_CannotBeImported, source, "page", fileName);
130
=> RazorDiagnostic.
Create
(
142
=> RazorDiagnostic.
Create
(
155
=> RazorDiagnostic.
Create
(BindAttribute_InvalidSyntax, source, attribute);
181
=> RazorDiagnostic.
Create
(ChildContentSetByAttributeAndBody, source, attribute);
193
return RazorDiagnostic.
Create
(ChildContentMixedWithExplicitChildContent, source, component.TagName, supportedElements);
202
=> RazorDiagnostic.
Create
(ChildContentHasInvalidAttribute, source, attribute, element);
210
=> RazorDiagnostic.
Create
(ChildContentHasInvalidParameter, source, attribute, element);
229
return RazorDiagnostic.
Create
(
252
return RazorDiagnostic.
Create
(GenericComponentMissingTypeArgument, source, component.TagName, attributesText);
269
return RazorDiagnostic.
Create
(GenericComponentTypeInferenceUnderspecified, source, component.TagName, attributesText);
278
=> RazorDiagnostic.
Create
(ChildContentHasInvalidParameterOnComponent, source, attribute, element);
294
=> RazorDiagnostic.
Create
(
305
=> RazorDiagnostic.
Create
(DuplicateMarkupAttribute, source, attributeName);
314
=> RazorDiagnostic.
Create
(DuplicateMarkupAttributeDirective, source, attributeName, directiveAttributeName);
322
=> RazorDiagnostic.
Create
(DuplicateComponentParameter, source, attributeName);
331
=> RazorDiagnostic.
Create
(DuplicateComponentParameterDirective, source, attributeName, directiveAttributeName);
339
=> RazorDiagnostic.
Create
(ComponentNamesCannotStartWithLowerCase, source, componentName);
347
=> RazorDiagnostic.
Create
(UnexpectedMarkupElement, source, elementName);
355
=> RazorDiagnostic.
Create
(InconsistentStartAndEndTagName, source, startTagName, endTagName);
363
=> RazorDiagnostic.
Create
(
375
=> RazorDiagnostic.
Create
(BindAttributeParameter_UseBindGet, source, attribute);
384
=> RazorDiagnostic.
Create
(BindAttributeParameter_MissingBindGet, source, attribute);
392
=> RazorDiagnostic.
Create
(BindAttribute_MissingBindSet, source, attributeGet, attributeSet);
400
=> RazorDiagnostic.
Create
(BindAttributeParameter_InvalidSyntaxBindAndBindGet, source, attribute);
408
=> RazorDiagnostic.
Create
(BindAttributeParameter_InvalidSyntaxBindSetAfter, source, attribute);
416
=> RazorDiagnostic.
Create
(BindAttributeParameter_UnsupportedSyntaxBindGetSet, source, attribute);
434
=> RazorDiagnostic.
Create
(Attribute_ValidOnlyOnComponent, source, attribute);
443
return RazorDiagnostic.
Create
(RenderModeAttribute_ComponentDeclaredRenderMode, source, component);
Language\RazorDiagnosticFactory.cs (40)
53
=> RazorDiagnostic.
Create
(Parsing_HelperDirectiveNotAvailable, location, SyntaxConstants.CSharp.HelperKeyword);
77
=> RazorDiagnostic.
Create
(Parsing_UnexpectedCharacterAtStartOfCodeBlock, location, content);
85
=> RazorDiagnostic.
Create
(Parsing_ExpectedEndOfBlockBeforeEOF, location, blockName, closeBlock, openBlock);
93
=> RazorDiagnostic.
Create
(Parsing_ReservedWord, location, content);
125
=> RazorDiagnostic.
Create
(Parsing_DirectiveTokensMustBeSeparatedByWhitespace, location, directiveName);
133
=> RazorDiagnostic.
Create
(Parsing_UnexpectedEOFAfterDirective, location, directiveName, expectedToken);
141
=> RazorDiagnostic.
Create
(Parsing_DirectiveExpectsTypeName, location, directiveName);
149
=> RazorDiagnostic.
Create
(Parsing_DirectiveExpectsNamespace, location, directiveName);
157
=> RazorDiagnostic.
Create
(Parsing_DirectiveExpectsIdentifier, location, directiveName);
165
=> RazorDiagnostic.
Create
(Parsing_DirectiveExpectsQuotedStringLiteral, location, directiveName);
173
=> RazorDiagnostic.
Create
(Parsing_UnexpectedDirectiveLiteral, location, directiveName, expected);
181
=> RazorDiagnostic.
Create
(Parsing_DirectiveMustHaveValue, location, directiveName);
189
=> RazorDiagnostic.
Create
(Parsing_IncompleteQuotesAroundDirective, location, directiveName);
197
=> RazorDiagnostic.
Create
(Parsing_InvalidTagHelperPrefixValue, location, directiveName, character, prefix);
229
=> RazorDiagnostic.
Create
(Parsing_UnfinishedTag, location, tagName);
237
=> RazorDiagnostic.
Create
(Parsing_MissingEndTag, location, tagName);
245
=> RazorDiagnostic.
Create
(Parsing_UnexpectedEndTag, location, tagName);
253
=> RazorDiagnostic.
Create
(Parsing_ExpectedCloseBracketBeforeEOF, location, openBrace, closeBrace);
269
=> RazorDiagnostic.
Create
(Parsing_TagHelperIndexerAttributeNameMustIncludeKey, location, attributeName, tagName);
285
=> RazorDiagnostic.
Create
(Parsing_TagHelpersCannotHaveCSharpInTagDeclaration, location, tagName);
293
=> RazorDiagnostic.
Create
(Parsing_TagHelperAttributesMustHaveAName, location, tagName);
301
=> RazorDiagnostic.
Create
(Parsing_TagHelperMustNotHaveAnEndTag, location, tagName, displayName, tagStructure);
309
=> RazorDiagnostic.
Create
(Parsing_TagHelperFoundMalformedTagHelper, location, tagName);
317
=> RazorDiagnostic.
Create
(Parsing_TagHelperMissingCloseAngle, location, tagName);
325
=> RazorDiagnostic.
Create
(Parsing_InvalidTagHelperLookupText, location, lookupText);
333
=> RazorDiagnostic.
Create
(Parsing_DirectiveExpectsCSharpAttribute, location, directiveName);
341
=> RazorDiagnostic.
Create
(Parsing_DirectiveExpectsBooleanLiteral, location, directiveName);
349
=> RazorDiagnostic.
Create
(Parsing_GenericTypeParameterIdentifierMismatch, location, directiveName, constraintIdentifier, originalMember);
357
=> RazorDiagnostic.
Create
(Parsing_UnexpectedIdentifier, location, content, string.Join(", ", options));
365
=> RazorDiagnostic.
Create
(Parsing_DirectiveExpectsIdentifierOrExpression, location, directiveName);
373
=> RazorDiagnostic.
Create
(Parsing_VoidElement, location, tagName);
419
=> RazorDiagnostic.
Create
(Parsing_DuplicateDirective, location, directive);
427
=> RazorDiagnostic.
Create
(Parsing_SectionsCannotBeNested, location, Resources.SectionExample);
451
=> RazorDiagnostic.
Create
(Parsing_DirectiveMustAppearAtStartOfLine, location, directiveName);
467
=> RazorDiagnostic.
Create
(TagHelper_InlineMarkupBlocksNotSupportedInAttributes, location, expectedTypeName);
475
=> RazorDiagnostic.
Create
(TagHelper_EmptyBoundAttribute, location, attributeName, tagName, propertyTypeName);
483
=> RazorDiagnostic.
Create
(TagHelper_CannotHaveNonTagContent, location, tagName, allowedChildren);
491
=> RazorDiagnostic.
Create
(TagHelper_InvalidNestedTag, location, tagName, parent, allowedChildren);
499
=> RazorDiagnostic.
Create
(
513
=> RazorDiagnostic.
Create
(Component_EditorRequiredParameterNotSpecified, location, tagName, parameterName);
Mvc\RazorExtensionsDiagnosticFactory.cs (7)
20
=> RazorDiagnostic.
Create
(
33
=> RazorDiagnostic.
Create
(
46
=> RazorDiagnostic.
Create
(
59
=> RazorDiagnostic.
Create
(
71
=> RazorDiagnostic.
Create
(
87
return RazorDiagnostic.
Create
(PageDirective_CannotBeImported, source, PageDirective.Directive.Directive, fileName);
96
=> RazorDiagnostic.
Create
(PageDirective_MustExistAtTheTopOfFile, source, PageDirective.Directive.Directive);