File: phpdoc-param.peg

package info (click to toggle)
php-phpstan-phpdoc-parser 2.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,476 kB
  • sloc: php: 21,156; makefile: 50; xml: 42; sh: 17
file content (17 lines) | stat: -rw-r--r-- 292 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
PhpDocParam
  = AnnotationName Type? IsReference? IsVariadic? ParameterName Description?

AnnotationName
  = '@param'

IsReference
  = '&'

IsVariadic
  = '...'

ParameterName
  = '$' [a-zA-Z_\127-\255][a-zA-Z0-9_\127-\255]*

Description
  = .+ # TODO: exclude EOL or another PhpDocTag start