Created
January 10, 2023 14:32
-
-
Save lizmat/18b0cc12644a2c7e228430d4faf55863 to your computer and use it in GitHub Desktop.
codegenning stubs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
method IMPL-EXPR-QAST(RakuAST::IMPL::QASTContext $context) { | |
my $call := QAST::Op.new( :op('call') ); | |
$call.name(self.IMPL-FUNC-NAME); | |
(self.args // RakuAST::ArgList.new( | |
RakuAST::StrLiteral.new('Stub code executed') | |
) | |
).IMPL-ADD-QAST-ARGS($context, $call); | |
$call | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment