Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Compiler Warning for Unknown Attributes in Razor Components #9144

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Commits on Aug 21, 2023

  1. Introduced a new Warning diagnostic "RZ10021"

    This diagnostic will be added to Razor component attributes that cannot be mapped to a Property in the underlying Component
    SparkyTD committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    32e864a View commit details
    Browse the repository at this point in the history
  2. Introduced ComponentUnknownAttributeDiagnosticPass

    This new intermediate pass will check for any component attributes that cannot be mapped to a valid property in the underlying component type, for the purpose of issuing a warning diagnostic.
    SparkyTD committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    c8754b6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6fa6f0b View commit details
    Browse the repository at this point in the history
  4. Completed the integration of ComponentUnknownAttributeDiagnosticPass …

    …into the Razor Compiler
    SparkyTD committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    47e0d3a View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2023

  1. Added support for CaptureUnmatchedValues

    This commit attempts to solve the issues regarding the handling of 'CaptureUnmatchedValues' in the diagnostic pass. It does this by storing the value of this attribute parameter in 'BoundAttributeDescriptor.Metadata', where it can be later retrieved by the diagnostic analyzer.
    SparkyTD committed Sep 11, 2023
    Configuration menu
    Copy the full SHA
    179eeee View commit details
    Browse the repository at this point in the history