diff options
author | metagn <metagngn@gmail.com> | 2024-09-26 07:34:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-26 06:34:50 +0200 |
commit | a27542195c9ba760d58e9d1e977313bc322a1ede (patch) | |
tree | 7ecf9c2c3386306c99f8393289769b3d1548b5a4 /tests/views | |
parent | 69b2a6effc9b0fd2c9de76bbea5b2dba87781a52 (diff) | |
download | Nim-a27542195c9ba760d58e9d1e977313bc322a1ede.tar.gz |
only merge valid implicit pragmas to routine AST, include templates (#24171)
fixes #19277, refs #24169, refs #18124 When pragmas are pushed to a routine, if the routine symbol AST isn't nil by the time the pushed pragmas are being processed, the pragmas are implicitly added to the symbol AST. However this is done without restriction on the pragma, if the pushed pragma isn't supposed to apply to the routine, it's still added to the routine. This is why the symbol AST for templates wasn't set before the pushed pragma processing in #18124. Now, the pragmas added to the AST are restricted to ones that apply to the given routine. This means we can set the template symbol AST earlier so that the pragmas get added to the template AST.
Diffstat (limited to 'tests/views')
0 files changed, 0 insertions, 0 deletions