Custom pragma of function argument is not in AST
### Description

```nim
# test.nim
import macros
template attr*() {.pragma.}
proc foo(a {.attr.}: int) = discard
macro showImpl(a: typed) =
  echo treeRepr getImpl(a)
showImpl(foo)
```
```
nim c test.nim
```


### Nim Version

Nim Compiler Version 2.3.1 [Linux: amd64]
Compiled at 2025-01-21
Copyright (c) 2006-2025 by Andreas Rumpf

git hash: 793baf34ff72cb8c5485ce209af086e27f656853
active boot switches: -d:release

### Current Output

```text
ProcDef
  Sym "foo"
  Empty
  Empty
  FormalParams
    Empty
    IdentDefs
      Sym "a"
      Sym "int"
      Empty
  Empty
  Empty
  DiscardStmt
    Empty
```

### Expected Output

```text
ProcDef
  Ident "foo"
  Empty
  Empty
  FormalParams
    Empty
    IdentDefs
      PragmaExpr
        Ident "a"
        Pragma
          Ident "attr"
      Ident "int"
      Empty
  Empty
  Empty
  StmtList
    DiscardStmt
      Empty
```

### Known Workarounds

_No response_

### Additional Information

The following code behaves as expected.
```nim
dumpTree:
    proc foo(a {.attr.}: int) = discard
```
But `getImpl` returns AST without the pragma.