Skip to content

Commit

Permalink
Normalise RakuAST class specifications (4/N)
Browse files Browse the repository at this point in the history
In the sense that all roles are mentioned *under* the class specification,
each on their own line.  This at least makes reading these a lot easier
for *me*.

No functional changes.  Please revert if you think it's a bad idea.
  • Loading branch information
lizmat committed Jan 17, 2023
1 parent be13e51 commit 3c817a1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Raku/ast/compunit.rakumod
@@ -1,7 +1,11 @@
# A compilation unit is the main lexical scope of a program.
class RakuAST::CompUnit is RakuAST::LexicalScope is RakuAST::SinkBoundary
is RakuAST::ImplicitLookups
is RakuAST::ImplicitDeclarations is RakuAST::AttachTarget {
class RakuAST::CompUnit
is RakuAST::LexicalScope
is RakuAST::SinkBoundary
is RakuAST::ImplicitLookups
is RakuAST::ImplicitDeclarations
is RakuAST::AttachTarget
{
has RakuAST::StatementList $.statement-list;
has RakuAST::Block $.mainline;
has Str $.comp-unit-name;
Expand Down

0 comments on commit 3c817a1

Please sign in to comment.