Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Razor.Language API polish #1510

Closed
26 tasks done
NTaylorMullen opened this issue Jul 6, 2017 · 3 comments
Closed
26 tasks done

Razor.Language API polish #1510

NTaylorMullen opened this issue Jul 6, 2017 · 3 comments
Assignees
Milestone

Comments

@NTaylorMullen
Copy link
Contributor

NTaylorMullen commented Jul 6, 2017

General

  • Make DocumentClassifierPassBase.TargetExtensions private. - @NTaylorMullen
  • IRazorEngineBuilder.DesignTime should be getter only. - @NTaylorMullen
  • RazorCSharpDocument.GeneratedCode should be renamed to Code. - @NTaylorMullen - Unimportant/too cross-cutting for repos.
  • Rename RazorEngineFeatureBase.ThrowForMissingEngineDependency to ThrowForMissingFeatureDependency - @NTaylorMullen
  • Rename RazorEnginePhaseBase.ThrowForMissingEngineDependency to ThrowForMissingFeatureDependency - @NTaylorMullen
  • Find all instances of base / path and rename them to FilePath / BasePath - @ajaybhargavb
  • Abstractify ICodeTargetBuilder. - @ajaybhargavb
  • IntermediateNodeWalker should be indexable - @ajaybhargavb
  • Do a pass on all IntermediateNodes and cross-check the verbosity of their properties. They should be consistent which may mean having more verbose properties. - @ajaybhargavb
  • Unnest IntermediateToken.TokenKind - @ajaybhargavb
  • Make TagHelperIntermediateNode.TagHelpers an IList - @ajaybhargavb

HtmlConventions.InvalidNonWhitespaceHtmlCharacters - @ajaybhargavb

  • Make internal.
  • Make non-hashset.

LineMapping - @NTaylorMullen

  • Rename to SourceMapping.
  • Remove == and != operators.

RazorParserOptions - @NTaylorMullen

  • Add CreateDesignTime method
  • Rename ParseOnlyLeadingDirectives => ParseLeadingDirectives

RazorParserOptionsBuilder - @NTaylorMullen

  • DesignTime should be getter only.
  • Rename ParseOnlyLeadingDirectives => ParseLeadingDirectives

TagHelperBinding - @NTaylorMullen

  • Attributes should be IReadOnlyList if it makes sense.
  • GetBoundRules should return IReadOnlyList if it makes sense.

TagHelper descriptors in general - @NTaylorMullen

  • See if TagHelperDescriptor.AllowedChildTags can be IReadOnlyList
  • See if TagHelperDescriptor.BoundAttributes can be IReadOnlyList
  • See if TagHelperDescriptor.TagMatchingRules can be IReadOnlyList
  • See if TagMatchingRuleDescriptor.Attributes can be IReadOnlyList
  • See if TagMatchingRuleDescriptor.Attributes can be IReadOnlyList
@NTaylorMullen
Copy link
Contributor Author

When working on one of these lets put our name next to the items or item header so we don't duplicate work.

NTaylorMullen added a commit that referenced this issue Jul 6, 2017
- Also removed the == and `!=` operators for `SourceMapping`.

#1510
NTaylorMullen added a commit that referenced this issue Jul 6, 2017
- Also removed the == and `!=` operators for `SourceMapping`.

#1510
@NTaylorMullen
Copy link
Contributor Author

NTaylorMullen commented Jul 6, 2017

@ajaybhargavb
Copy link
Contributor

ajaybhargavb commented Jul 6, 2017

NTaylorMullen added a commit that referenced this issue Jul 6, 2017
- Renamed `IRazorParserOptionsFeature` to `IConfigureRazorParserOptionsFeature`, the original interface was re-purposed to get the options rather than configure them.
- This involved re-designing how we set design time on the `RazorParserOptions` object. The indicator of `DesignTime` is now configured at the RazorEngine level via a parser options provider feature.
- Moved options construction from the phase into an `IRazorParserOptionsFeature` type.

#1510
NTaylorMullen added a commit that referenced this issue Jul 6, 2017
- Renamed `IRazorParserOptionsFeature` to `IConfigureRazorParserOptionsFeature`, the original interface was re-purposed to get the options rather than configure them.
- This involved re-designing how we set design time on the `RazorParserOptions` object. The indicator of `DesignTime` is now configured at the RazorEngine level via a parser options provider feature.
- Moved options construction from the phase into an `IRazorParserOptionsFeature` type.

#1510
NTaylorMullen added a commit that referenced this issue Jul 6, 2017
- Removed verbose `Create` methods in favor of the `RazorParserOptionsBuilder`. This is similar to how the `RazorEngine` functions.
- Added a `CreateDesignTime` method.
- Updated existing tests to use new Create syntax.

#1510
NTaylorMullen added a commit that referenced this issue Jul 6, 2017
- Was renamed to `ParseLeadingDirectives`.

#1510
NTaylorMullen added a commit to aspnet/Mvc that referenced this issue Jul 6, 2017
NTaylorMullen added a commit to aspnet/Mvc that referenced this issue Jul 6, 2017
NTaylorMullen added a commit that referenced this issue Jul 6, 2017
- Renamed `IRazorParserOptionsFeature` to `IConfigureRazorParserOptionsFeature`, the original interface was re-purposed to get the options rather than configure them.
- This involved re-designing how we set design time on the `RazorParserOptions` object. The indicator of `DesignTime` is now configured at the RazorEngine level via a parser options provider feature.
- Moved options construction from the phase into an `IRazorParserOptionsFeature` type.

#1510
NTaylorMullen added a commit that referenced this issue Jul 6, 2017
- Removed verbose `Create` methods in favor of the `RazorParserOptionsBuilder`. This is similar to how the `RazorEngine` functions.
- Added a `CreateDesignTime` method.
- Updated existing tests to use new Create syntax.

#1510
NTaylorMullen added a commit that referenced this issue Jul 6, 2017
- Was renamed to `ParseLeadingDirectives`.

#1510
NTaylorMullen added a commit that referenced this issue Jul 6, 2017
- Changed `Attributes` to return `IReadOnlyList<KeyValuePair<string, string>>`.
- Changed `GetBoundRules` to return `IReadOnlyList<TagMatchingRuleDescriptor>`.

#1510
NTaylorMullen added a commit that referenced this issue Jul 6, 2017
- Changed `Attributes` to return `IReadOnlyList<KeyValuePair<string, string>>`.
- Changed `GetBoundRules` to return `IReadOnlyList<TagMatchingRuleDescriptor>`.
- Updated tests to react to new signature.

#1510
NTaylorMullen added a commit that referenced this issue Jul 6, 2017
- Changed `Attributes` to return `IReadOnlyList<KeyValuePair<string, string>>`.
- Changed `GetBoundRules` to return `IReadOnlyList<TagMatchingRuleDescriptor>`.
- Updated tests to react to new signature.

#1510
NTaylorMullen added a commit that referenced this issue Jul 6, 2017
- Changed `Attributes` to return `IReadOnlyList<KeyValuePair<string, string>>`.
- Changed `GetBoundRules` to return `IReadOnlyList<TagMatchingRuleDescriptor>`.
- Updated tests to react to new signature.

#1510
NTaylorMullen added a commit that referenced this issue Jul 6, 2017
- Change `TagHelperDescriptor.AllowedChildTags` to be `IReadOnlyList`.
- Change `TagHelperDescriptor.BoundAttributes` to be `IReadOnlyList`.
- Change `TagHelperDescriptor.TagMatchingRules` to be `IReadOnlyList`.
- Change `TagMatchingRuleDescriptor.Attributes` to be `IReadOnlyList`.

#1510
NTaylorMullen added a commit that referenced this issue Jul 6, 2017
- Change `TagHelperDescriptor.AllowedChildTags` to be `IReadOnlyList`.
- Change `TagHelperDescriptor.BoundAttributes` to be `IReadOnlyList`.
- Change `TagHelperDescriptor.TagMatchingRules` to be `IReadOnlyList`.
- Change `TagMatchingRuleDescriptor.Attributes` to be `IReadOnlyList`.

#1510
NTaylorMullen added a commit that referenced this issue Jul 6, 2017
- Rename `RazorCSharpDocument.GeneratedCode` to `Code`.
- Rename `RazorEngineFeatureBase.ThrowForMissingEngineDependency` to `ThrowForMissingFeatureDependency`
- Rename `RazorEnginePhaseBase.ThrowForMissingEngineDependency` to `ThrowForMissingFeatureDependency`

#1510
NTaylorMullen added a commit that referenced this issue Jul 6, 2017
- Change `DefaultRazorEngineBuilder.DesignTime` to be getter only
- Make `DocumentClassifierPassBase.TargetExtensions` private.

#1510
NTaylorMullen added a commit that referenced this issue Jul 6, 2017
- Rename `RazorEngineFeatureBase.ThrowForMissingEngineDependency` to `ThrowForMissingFeatureDependency`
- Rename `RazorEnginePhaseBase.ThrowForMissingEngineDependency` to `ThrowForMissingFeatureDependency`

#1510
NTaylorMullen added a commit that referenced this issue Jul 6, 2017
- Change `DefaultRazorEngineBuilder.DesignTime` to be getter only
- Make `DocumentClassifierPassBase.TargetExtensions` private.

#1510
NTaylorMullen added a commit that referenced this issue Jul 6, 2017
- Rename `RazorEngineFeatureBase.ThrowForMissingEngineDependency` to `ThrowForMissingFeatureDependency`
- Rename `RazorEnginePhaseBase.ThrowForMissingEngineDependency` to `ThrowForMissingFeatureDependency`

#1510
NTaylorMullen added a commit that referenced this issue Jul 6, 2017
- Change `DefaultRazorEngineBuilder.DesignTime` to be getter only
- Make `DocumentClassifierPassBase.TargetExtensions` private.

#1510
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants