aspnetcore/test/Microsoft.AspNetCore.Razor..../Legacy
N. Taylor Mullen 8f9ff1abd9 Clean up TagHelperDescriptor APIs.
- Removed all design time descriptors and put their API surface into their corresponding descriptor. Part of removing the design time API surface was removing the tracking of `<Remarks>`, it wasn't used so there's on need to track it until we need it.
- Removed the Type requirement from `TagHelperDescriptor`. With this separation we'll be able to have abstract `TagHelper`s that aren't based on a class implementation.
- Removed Prefix from the `TagHelperDescriptor` API surface. It was a legacy requirement based on how the Razor parser was put together. We can work around this now.
- Stripped correlation information from the immediate `TagHelperDescriptor` API surface. Instead this information is now tracked in `TagMatchingRule`s. This change means that you will not have multiple `TagHelperDescriptor`s per `TagHelper`; instead it's all tracked in a single descriptor. A side effect of this change was the transformation of `IsIndexer` => 3 new properties.
- Renamed many descriptor types and property names.
- Added builder APIs to construct TagHelpers since they're inherently immutable in their API surface.
- Added `ITagHelperDescriptorBuilder` to represent `TagHelper`s that are built from an `ITagHelper` implementing class. It re-introduces the `TypeName` association of a `TagHelper`.
- Added `ITagHelperBoundAttributeDescriptorBuilder` to represent that an attribute was associated with a property.
- Added validation methods to the descriptor builders to enable consumers to validate the current state of the builder and add diagnostics as necessary.
- Moved descriptors away from RazorError.
- Updated the various comparers to understand the descriptors new API.
- Added a new `RazorDiagnosticFactory` abstraction to handle `RazorDiagnostic`s and their corresponding errors/ids etc. This new API should allow for easy addition of new `RazorDiagnostic` errors.
- Updated the `DefaultTagHelperDescriptorFactory` to construct `TagHelperDescriptor`s using the new builder APIs and in the new descriptor format (1 descriptor per type).
- Updated `ViewComponentTagHelperDescriptorFactory` to construct `TagHelperDescriptor`s with the builder API.
- With both factory implementations code was duplicated because the ViewComponent work will be moving outside of Razor once we have the proper hooks.
- Updated `TagHelper` binding bits to capture a binding result in order to query which rules appy to a given tag name.
Addressed feedback
- Update tests to react to new `TagHelperDescriptor` API.
- Remove case sensitive comparers and some cleanup
- Added TagHelperDescriptorJsonConverter, RazorDiagnosticJsonConverter and added serialization tests
2017-03-17 12:18:05 -07:00
..
BaselineWriter.cs
BlockExtensions.cs
BlockFactory.cs
BlockTest.cs
BlockTypes.cs
CSharpAutoCompleteTest.cs
CSharpBlockTest.cs Add a test for using with trailing newline 2016-12-30 16:06:18 -08:00
CSharpCodeWriterTest.cs Make SourceSpan public 2017-01-03 12:46:56 -08:00
CSharpDirectivesTest.cs Replace RazorError with RazorDiagnostics in public API 2017-02-17 15:44:37 -08:00
CSharpErrorTest.cs
CSharpExplicitExpressionTest.cs
CSharpImplicitExpressionTest.cs
CSharpLanguageCharacteristicsTest.cs [Fixes #924] Correct RightShiftAssign operator 2017-02-15 16:31:40 -08:00
CSharpNestedStatementsTest.cs
CSharpRazorCommentsTest.cs Adds stronger verification for spans 2016-12-28 21:56:35 -08:00
CSharpReservedWordsTest.cs
CSharpSectionTest.cs Adds stronger verification for spans 2016-12-28 21:56:35 -08:00
CSharpSpecialBlockTest.cs
CSharpStatementTest.cs Adds stronger verification for spans 2016-12-28 21:56:35 -08:00
CSharpTemplateTest.cs Adds stronger verification for spans 2016-12-28 21:56:35 -08:00
CSharpToMarkupSwitchTest.cs Adds stronger verification for spans 2016-12-28 21:56:35 -08:00
CSharpTokenizerCommentTest.cs
CSharpTokenizerIdentifierTest.cs
CSharpTokenizerLiteralTest.cs
CSharpTokenizerOperatorsTest.cs
CSharpTokenizerTest.cs
CSharpTokenizerTestBase.cs
CSharpVerbatimBlockTest.cs
CSharpWhitespaceHandlingTest.cs
CodeParserTestBase.cs
CodeWriterTest.cs
CsHtmlCodeParserTestBase.cs
CsHtmlMarkupParserTestBase.cs
DisposableActionTest.cs
ErrorCollector.cs
ExceptionHelpers.cs
HtmlAttributeTest.cs Clean up SourceLocation 2017-01-03 10:01:48 -08:00
HtmlBlockTest.cs Adds stronger verification for spans 2016-12-28 21:56:35 -08:00
HtmlDocumentTest.cs Adds stronger verification for spans 2016-12-28 21:56:35 -08:00
HtmlErrorTest.cs
HtmlParserTestUtils.cs
HtmlTagsTest.cs
HtmlToCodeSwitchTest.cs
HtmlTokenizerTest.cs
HtmlTokenizerTestBase.cs
LineTrackingStringBufferTest.cs
MarkupParserTestBase.cs
MiscUtils.cs
ParserTestBase.cs Replace RazorError with RazorDiagnostics in public API 2017-02-17 15:44:37 -08:00
RawTextSymbol.cs Clean up SourceLocation 2017-01-03 10:01:48 -08:00
RazorEditorParserTest.cs Clean up TagHelperDescriptor APIs. 2017-03-17 12:18:05 -07:00
RazorErrorTest.cs
RazorParserTest.cs Add parsing of includes and imports 2017-01-13 11:25:20 -08:00
SourceLocationTrackerTest.cs Clean up SourceLocation 2017-01-03 10:01:48 -08:00
StringTextBuffer.cs
TagHelperBlockRewriterTest.cs Clean up TagHelperDescriptor APIs. 2017-03-17 12:18:05 -07:00
TagHelperBlockTest.cs
TagHelperDescriptorProviderTest.cs Clean up TagHelperDescriptor APIs. 2017-03-17 12:18:05 -07:00
TagHelperParseTreeRewriterTest.cs Clean up TagHelperDescriptor APIs. 2017-03-17 12:18:05 -07:00
TagHelperRewritingTestBase.cs Clean up TagHelperDescriptor APIs. 2017-03-17 12:18:05 -07:00
TestSpanBuilder.cs
TextChangeTest.cs
TextReaderExtensionsTest.cs
TokenizerLookaheadTest.cs
TokenizerTestBase.cs
WhiteSpaceRewriterTest.cs