https://issues.dlang.org/show_bug.cgi?id=23520

--- Comment #4 from RazvanN <razvan.nitu1...@gmail.com> ---

> 
> That is true, but in your original bug report you want to apply the pragma
> to the declarations inside the body, right? To be able to do that you need
> to create a PragmaDeclaration and attach it to the the scope of the pragma
> statement body (struct Scope has a field inlining of type PragmaDeclaration).

Of course we can implement a suboptimal algorithm where we go through the
members of the body and simply update the inlining field for functions. But
then the members will be reiterated for semantic analysis. I guess in the
general case this should not be a problem as I do not expect large
pragma(inline) blocks inside function bodies.

--

Reply via email to