Module: Ibex::Runtime::EmbeddedSource
- Defined in:
- lib/ibex/runtime/embedded_source.rb,
sig/ibex/runtime/embedded_source.rbs
Overview
Assembles the installed runtime into one dependency-free Ruby source.
Constant Summary collapse
- FILES =
%w[ version.rb table_format.rb location_span.rb cst/kind.rb cst/annotation.rb cst/green/trivia.rb cst/green/token.rb cst/green/node.rb cst/green/cache.rb cst/green/builder.rb cst/source_text.rb cst/syntax_token.rb cst/syntax_node.rb cst/cursor.rb cst/typed_node.rb cst/parse_result.rb cst/editing.rb cst/text_edit.rb cst/rewriter.rb cst/editor.rb cst/diff.rb cst/serialized_tree.rb cst/validator.rb cst/serialize.rb cst/incremental/token_memo.rb cst/incremental/relexer.rb cst/incremental/parse_memo.rb cst/incremental/lexed_syntax.rb cst/incremental/blender.rb cst/incremental/session.rb cst.rb ast_data.rb resource_limits.rb event_sanitizer.rb syntax_session.rb event.rb observation.rb repair.rb repair_priority_queue.rb repair_search.rb syntax_repair.rb parser_sync_recovery.rb parser.rb lexer_input.rb generated_lexer.rb event_jsonl_tracer.rb ../tables/compact.rb ../tables/compact_actions.rb ../tables/compact_productions.rb ].freeze
- REQUIRE_RELATIVE =
/^\s*require_relative\s+["']([^"']+)["']/
Class Method Summary collapse
Class Method Details
.render ⇒ String
63 64 65 66 67 |
# File 'lib/ibex/runtime/embedded_source.rb', line 63 def self.render paths = FILES.map { |relative_path| File.(relative_path, File.dirname(__FILE__)) } validate_manifest!(paths) paths.map { |path| source(path) }.join("\n") end |