From 39a43d9cd09f8c880d0a70d9cb8ede6d7e6ef583 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Mon, 19 Aug 2019 13:51:00 +0800 Subject: Make it as clear as possible that RubyVM is MRI-specific and only exists on MRI (#2113) [ci skip] * Make it clear as possible that RubyVM is MRI-specific and only exists on MRI * See [Bug #15743]. * Use "CRuby VM" instead of "Ruby VM" for clarity. * Use YARV rather than "CRuby VM" for documenting RubyVM::InstructionSequence * Avoid introducing a new "CRuby VM" term in documentation --- ast.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ast.c') diff --git a/ast.c b/ast.c index 4c6477d3c9..91659a9110 100644 --- a/ast.c +++ b/ast.c @@ -776,11 +776,16 @@ Init_ast(void) * AbstractSyntaxTree provides methods to parse Ruby code into * abstract syntax trees. The nodes in the tree * are instances of RubyVM::AbstractSyntaxTree::Node. + * + * This class is MRI specific as it exposes implementation details + * of the MRI abstract syntax tree. */ rb_mAST = rb_define_module_under(rb_cRubyVM, "AbstractSyntaxTree"); /* * RubyVM::AbstractSyntaxTree::Node instances are created by parse methods in * RubyVM::AbstractSyntaxTree. + * + * This class is MRI specific. */ rb_cNode = rb_define_class_under(rb_mAST, "Node", rb_cObject); -- cgit v1.2.1