Skip to content

Conversation

timholy
Copy link
Member

@timholy timholy commented Feb 4, 2023

Closes #80

@codecov
Copy link

codecov bot commented Feb 4, 2023

Codecov Report

Base: 61.57% // Head: 95.25% // Increases project coverage by +33.68% 🎉

Coverage data is based on head (236dadc) compared to base (c3195cd).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #102       +/-   ##
===========================================
+ Coverage   61.57%   95.25%   +33.68%     
===========================================
  Files           3        3               
  Lines         229      232        +3     
===========================================
+ Hits          141      221       +80     
+ Misses         88       11       -77     
Impacted Files Coverage Δ
src/utils.jl 97.61% <100.00%> (+37.12%) ⬆️
src/CodeTracking.jl 93.07% <0.00%> (+36.15%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@timholy timholy merged commit 8c02260 into master Feb 4, 2023
@timholy timholy deleted the teh/anonymous branch February 4, 2023 14:59
timholy added a commit that referenced this pull request Feb 25, 2023
Keyword dispatch methods went away in Julia 1.9, replaced by the
generic `kwcall`. In #102 I disabled the corresponding test.
That was misguided because we still want to be able to recover the
source definition, regardless of the details of the underlying
implementation.
@timholy timholy mentioned this pull request Feb 25, 2023
timholy added a commit that referenced this pull request Feb 25, 2023
Keyword dispatch methods went away in Julia 1.9, replaced by the
generic `kwcall`. In #102 I disabled the corresponding test.
That was misguided because we still want to be able to recover the
source definition, regardless of the details of the underlying
implementation.
timholy added a commit that referenced this pull request Mar 19, 2023
While working on TypedSyntax.jl it became apparent that CodeTracking
sometimes returns spurious results. At least some of these arise from
the recent support of anonymous functions, #102, which might in
retrospect have been ill-considered. Rather than back that change
out, this adopts a different resolution: validate the hits more
carefully.  The primary mechanism introduced here is to match not just
the function name, but also the argument names. This can work even for
anonymous functions, so we do not need to drop support for them.

This also adds quite a few new tests. These additions would have
passed before, but they proved valuable to ensure that the new
argname-matching works sufficiently well.

On TypedSyntax's "exhaustive.jl" test, this brings the
number of failed cases (specifically, the `badmis`) from
either 460 or 94 (depending on whether you include a few fixes
in TypedSyntax) to just 2.
timholy added a commit that referenced this pull request Mar 31, 2023
While working on TypedSyntax.jl it became apparent that CodeTracking
sometimes returns spurious results. At least some of these arise from
the recent support of anonymous functions, #102, which might in
retrospect have been ill-considered. Rather than back that change
out, this adopts a different resolution: validate the hits more
carefully.  The primary mechanism introduced here is to match not just
the function name, but also the argument names. This can work even for
anonymous functions, so we do not need to drop support for them.

This also adds quite a few new tests. These additions would have
passed before, but they proved valuable to ensure that the new
argname-matching works sufficiently well.

On TypedSyntax's "exhaustive.jl" test, this brings the
number of failed cases (specifically, the `badmis`) from
either 460 or 94 (depending on whether you include a few fixes
in TypedSyntax) to just 2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Docs] Getting Started

1 participant