dmd icon indicating copy to clipboard operation
dmd copied to clipboard

move apply from apply to aggregate

Open thewilsonator opened this issue 4 years ago • 4 comments

apply is only used by aggregate.d and dclass.d and doesn't really belong in apply which should probably be named postorderVisitor

thewilsonator avatar May 27 '21 08:05 thewilsonator

Thanks for your pull request and interest in making D better, @thewilsonator! We are looking forward to reviewing it, and you should be hearing from a maintainer soon. Please verify that your PR follows this checklist:

  • My PR is fully covered with tests (you can see the coverage diff by visiting the details link of the codecov check)
  • My PR is as minimal as possible (smaller, focused PRs are easier to review than big ones)
  • I have provided a detailed rationale explaining my changes
  • New or modified functions have Ddoc comments (with Params: and Returns:)

Please see CONTRIBUTING.md for more information.


If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment.

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + dmd#12596"

dlang-bot avatar May 27 '21 08:05 dlang-bot

urgh

src\dmd\tocvdebug.d(561): Error: function `dmd.aggregate.apply(Dsymbol symbol, int function(Dsymbol s, AggregateDeclaration agg) fp, AggregateDeclaration agg)` is not callable using argument types `(Dsymbol, extern (C++) int function(Dsymbol s, CvFieldList* pmc), CvFieldList*)`
src\dmd\tocvdebug.d(561):        cannot pass argument `& cv_mem_count` of type `extern (C++) int function(Dsymbol s, CvFieldList* pmc)` to parameter `int function(Dsymbol s, AggregateDeclaration agg) fp`
src\dmd\tocvdebug.d(572): Error: function `dmd.aggregate.apply(Dsymbol symbol, int function(Dsymbol s, AggregateDeclaration agg) fp, AggregateDeclaration agg)` is not callable using argument types `(Dsymbol, extern (C++) int function(Dsymbol s, CvFieldList* pmc), CvFieldList*)`
src\dmd\tocvdebug.d(572):        cannot pass argument `& cv_mem_p` of type `extern (C++) int function(Dsymbol s, CvFieldList* pmc)` to parameter `int function(Dsymbol s, AggregateDeclaration agg) fp`
src\dmd\tocvdebug.d(724): Error: function `dmd.aggregate.apply(Dsymbol symbol, int function(Dsymbol s, AggregateDeclaration agg) fp, AggregateDeclaration agg)` is not callable using argument types `(Dsymbol, extern (C++) int function(Dsymbol s, CvFieldList* pmc), CvFieldList*)`
src\dmd\tocvdebug.d(724):        cannot pass argument `& cv_mem_count` of type `extern (C++) int function(Dsymbol s, CvFieldList* pmc)` to parameter `int function(Dsymbol s, AggregateDeclaration agg) fp`
src\dmd\tocvdebug.d(775): Error: function `dmd.aggregate.apply(Dsymbol symbol, int function(Dsymbol s, AggregateDeclaration agg) fp, AggregateDeclaration agg)` is not callable using argument types `(Dsymbol, extern (C++) int function(Dsymbol s, CvFieldList* pmc), CvFieldList*)`
src\dmd\tocvdebug.d(775):        cannot pass argument `& cv_mem_p` of type `extern (C++) int function(Dsymbol s, CvFieldList* pmc)` to parameter `int function(Dsymbol s, AggregateDeclaration agg) fp`

thewilsonator avatar May 27 '21 08:05 thewilsonator

ping @thewilsonator

RazvanN7 avatar May 06 '22 12:05 RazvanN7

@RazvanN7 pong. Apologies for the late response.

thewilsonator avatar May 26 '22 08:05 thewilsonator

Thanks!

thewilsonator avatar May 12 '23 02:05 thewilsonator