Skip to content
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dotnet/linker
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: dec9a23
Choose a base ref
...
head repository: dotnet/linker
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6ffb647
Choose a head ref
  • 7 commits
  • 49 files changed
  • 5 contributors

Commits on Apr 25, 2022

  1. Share MakeGeneric.. and Expression.Call (#2758)

    Moves the intrinsic handling of `MakeGenericType`, `MakeGenericMethod` and `Expression.Call` into the shared code.
    
    Other changes:
    * Some small refactorings on the shared type system and value system.
    * Expose generic parameters on type system proxies
    * Fix a bug in analyzer when we're recording patterns, the values must be cloned (as they can mutate during analysis after the record is taken)
    * Fix some problems in Nullable<T> handling in MakeGenericType - specifically if we don't know what the T is going to be, we now return just Nullable<> known type (but unknown T).
    * Add couple new tests - update existing ones (mainly due to limitation in the analyzer)
    
    Co-authored-by: Sven Boemer <[email protected]>
    vitek-karas and sbomer authored Apr 25, 2022
    Configuration menu
    Copy the full SHA
    bf4d43b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f6077cb View commit details
    Browse the repository at this point in the history
  3. Move shared dataflow value creation helpers out of HandleCallAction (#…

    …2757)
    
    This builds on the work @jtschuster did in c2fff33 to share code for
    the annotation checks.
    
    I noticed that ReflectionMethodBodyScanner and HandleCallAction
    started accumulating these helpers for creating dataflow values from
    methods and I thought it would make sense for that to be handled as a
    separate concern, so I moved them out to a separate class and adjusted
    some of the callsites in ReflectionMethodBodyScanner to use the shared
    version.
    
    This was motivated in part by some of the factoring I am doing as a
    follow-up to 137b7b9, but isn't directly related. (While working on
    the follow-up, I came across a point where I needed to create a
    dataflow value in shared code from outside HandleCallAction, and there
    wasn't a very clean way to do this).
    sbomer authored Apr 25, 2022
    Configuration menu
    Copy the full SHA
    4418cce View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2022

  1. Add a test for RUC on type with override method (#2764)

    The analyzer produces warning in this case which the linker doesn't.
    
    Test for bug #2763
    vitek-karas authored Apr 26, 2022
    Configuration menu
    Copy the full SHA
    0504b19 View commit details
    Browse the repository at this point in the history
  2. Factor ReflectionMethodBodyScanner to be more similar to analyzer (#2761

    )
    
    Follow-up to #2747. This is a factoring change only and doesn't introduce functional changes.
    
    This does two things to move the method body scanner to be more similar to the trim analysis visitor:
    - Uses `DiagnosticContext` to record diagnostics. Right now, this still happens inline as we run the scanner, but the idea will be to move this out to a driver that runs the analysis, and then records diagnostics from the recorded patterns (like how it is done in the analyzer)
    - Moves reflection-marking helpers out of `ReflectionMethodBodyScanner` to a separate class. This prevents us from having to pass around the scanner to other helpers, and makes it more obvious which parts of the code to scanning only vs other things. The new `ReflectionMarker` is conceptually similar to `ReflectionAccessAnalyzer` in the Roslyn analyzer and could be a candidate for future code sharing.
    sbomer authored Apr 26, 2022
    Configuration menu
    Copy the full SHA
    f26189b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    24e38a5 View commit details
    Browse the repository at this point in the history
  4. Change requires on type checking for mismatch (#2766)

    If a member creates a requirement ask the override/virtual member if it fulfills the requirement and only then warns.
    Fixes #2763
    tlakollo authored Apr 26, 2022
    Configuration menu
    Copy the full SHA
    6ffb647 View commit details
    Browse the repository at this point in the history
Loading