module

Noir::PhpClassMembers

Public members of a PHP class body, as PhpBlockParser reads them off the masked text (strings and comments blanked), so a public $x or { inside a string or comment cannot fake a member or end the body early. Members of an anonymous class inside a method are that class's, not the outer one's.

prelude is the source between the previous member and this one with //, # and /* */ comments blanked: attributes (#[Locked], #[ApiRoute(...)]) and the docblock, which is where annotation-style markers (@PublicPage) live. A commented-out attribute is not one.

Constants

ARG_RE = /\$([A-Za-z_]\w*)/

Class methods

each(parser : PhpBlockParser, open : Int32, & : Member -> ) : Nil

The members of the class whose body opens at the { at open.

Source
each(parser : PhpBlockParser, klass : PhpBlockParser::Node, & : Member -> ) : Nil
Source

Nested types