Skip to content

Commit

Permalink
RakuAST: tweaks needed for further =table development
Browse files Browse the repository at this point in the history
- call interpret-as-table on the instance, not the type object
- make sure Fixups are done *before* Deparse, Raku and Podify,
  to allow *all* of the fixups to be seen by them.
  • Loading branch information
lizmat committed May 11, 2023
1 parent 8bb54bf commit 74d021c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/core.c/RakuAST/Fixups.pm6
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
my class RakuAST::LegacyPodify { ... }

# This file contains augmentations to classes that are created in the
# RakuAST bootstrap to allow a lot of logic (which will **NOT** be
Expand Down Expand Up @@ -343,7 +344,7 @@ augment class RakuAST::Doc::Block {
}

elsif $type eq 'table' {
self.interpret-as-table($spaces, @paragraphs);
$block.interpret-as-table($spaces, @paragraphs);
}

# potentially need introspection
Expand Down
2 changes: 1 addition & 1 deletion tools/templates/6.c/core_sources
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ src/core.c/Rakudo/Internals/PostcircumfixAdverbs.pm6
src/core.c/unicodey.pm6
src/core.c/Unicode.pm6
src/core.c/RakuAST/HTML/Entities.pm6
src/core.c/RakuAST/Fixups.pm6
src/core.c/RakuAST/Deparse.pm6
src/core.c/RakuAST/Raku.pm6
src/core.c/RakuAST/LegacyPodify.pm6
src/core.c/RakuAST/Fixups.pm6
src/core.c/core_epilogue.pm6

0 comments on commit 74d021c

Please sign in to comment.