StatementProps
ROLE
Config::BINDish::Grammar::StatementProps - standard statement properties
DESCRIPTION
This role defines properties common to all pre-declarable statements.
ATTRIBUTES
SetHash:D() $.in
Set of block IDs in which a statement can be used.
Bool:D $.autovivified
When True this statement declaration was autovivified by the parser. This can happen, for example, when an option
has a block referenced in its $.in and the block is not explicitly declared.
METHODS
ACCEPTS(Config::BINDish::Grammar::Context:D $ctx)
Checks if this statement can be used in context $ctx by locating the nearest enclosing block context and verifying
if the block is mentioned in statement's $.in set. Always matches if $.in is empty.
Bool()
Coerces a property object into False. See method get in Config::BINDish::AST::Blockish
for details about default values.
SEE ALSO
COPYRIGHT
(c) 2023, Vadim Belman <[email protected]>
LICENSE
Artistic License 2.0
See the LICENSE file in this distribution.