herb 0.10.4 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Makefile +16 -6
- data/README.md +36 -119
- data/Rakefile +2 -11
- data/config/action_view_helpers/actioncable/action_cable_helper/action_cable_meta_tag.yml +12 -8
- data/config/action_view_helpers/actionpack/content_security_policy/content_security_policy?.yml +9 -6
- data/config/action_view_helpers/actionpack/content_security_policy/content_security_policy_nonce.yml +9 -6
- data/config/action_view_helpers/actionpack/polymorphic_routes/polymorphic_path.yml +20 -12
- data/config/action_view_helpers/actionpack/polymorphic_routes/polymorphic_url.yml +30 -18
- data/config/action_view_helpers/actionpack/request_forgery_protection/form_authenticity_token.yml +15 -9
- data/config/action_view_helpers/actionpack/request_forgery_protection/protect_against_forgery?.yml +9 -6
- data/config/action_view_helpers/actiontext/content_helper/render_action_text_content.yml +15 -9
- data/config/action_view_helpers/actiontext/content_helper/sanitize_action_text_content.yml +15 -9
- data/config/action_view_helpers/actiontext/tag_helper/rich_textarea_tag.yml +34 -22
- data/config/action_view_helpers/actionview/active_model_helper/error_message.yml +9 -6
- data/config/action_view_helpers/actionview/active_model_helper/error_wrapping.yml +9 -6
- data/config/action_view_helpers/actionview/active_model_helper/object.yml +9 -6
- data/config/action_view_helpers/actionview/asset_tag_helper/apply_stylesheet_media_default.yml +9 -6
- data/config/action_view_helpers/actionview/asset_tag_helper/audio_tag.yml +40 -27
- data/config/action_view_helpers/actionview/asset_tag_helper/auto_discovery_link_tag.yml +37 -23
- data/config/action_view_helpers/actionview/asset_tag_helper/auto_include_nonce.yml +9 -6
- data/config/action_view_helpers/actionview/asset_tag_helper/auto_include_nonce_for_scripts.yml +9 -6
- data/config/action_view_helpers/actionview/asset_tag_helper/auto_include_nonce_for_styles.yml +9 -6
- data/config/action_view_helpers/actionview/asset_tag_helper/favicon_link_tag.yml +32 -22
- data/config/action_view_helpers/actionview/asset_tag_helper/image_decoding.yml +9 -6
- data/config/action_view_helpers/actionview/asset_tag_helper/image_loading.yml +9 -6
- data/config/action_view_helpers/actionview/asset_tag_helper/image_tag.yml +67 -46
- data/config/action_view_helpers/actionview/asset_tag_helper/javascript_include_tag.yml +58 -39
- data/config/action_view_helpers/actionview/asset_tag_helper/picture_tag.yml +22 -14
- data/config/action_view_helpers/actionview/asset_tag_helper/preload_link_tag.yml +45 -30
- data/config/action_view_helpers/actionview/asset_tag_helper/preload_links_header.yml +9 -6
- data/config/action_view_helpers/actionview/asset_tag_helper/stylesheet_link_tag.yml +49 -30
- data/config/action_view_helpers/actionview/asset_tag_helper/video_tag.yml +53 -35
- data/config/action_view_helpers/actionview/asset_url_helper/asset_path.yml +16 -10
- data/config/action_view_helpers/actionview/asset_url_helper/asset_url.yml +16 -10
- data/config/action_view_helpers/actionview/asset_url_helper/audio_path.yml +16 -10
- data/config/action_view_helpers/actionview/asset_url_helper/audio_url.yml +16 -10
- data/config/action_view_helpers/actionview/asset_url_helper/compute_asset_extname.yml +9 -6
- data/config/action_view_helpers/actionview/asset_url_helper/compute_asset_host.yml +9 -6
- data/config/action_view_helpers/actionview/asset_url_helper/compute_asset_path.yml +9 -6
- data/config/action_view_helpers/actionview/asset_url_helper/font_path.yml +16 -10
- data/config/action_view_helpers/actionview/asset_url_helper/font_url.yml +16 -10
- data/config/action_view_helpers/actionview/asset_url_helper/image_path.yml +16 -10
- data/config/action_view_helpers/actionview/asset_url_helper/image_url.yml +16 -10
- data/config/action_view_helpers/actionview/asset_url_helper/javascript_path.yml +16 -10
- data/config/action_view_helpers/actionview/asset_url_helper/javascript_url.yml +16 -10
- data/config/action_view_helpers/actionview/asset_url_helper/public_compute_asset_path.yml +9 -6
- data/config/action_view_helpers/actionview/asset_url_helper/stylesheet_path.yml +16 -10
- data/config/action_view_helpers/actionview/asset_url_helper/stylesheet_url.yml +16 -10
- data/config/action_view_helpers/actionview/asset_url_helper/video_path.yml +16 -10
- data/config/action_view_helpers/actionview/asset_url_helper/video_url.yml +16 -10
- data/config/action_view_helpers/actionview/atom_feed_helper/atom_feed.yml +52 -27
- data/config/action_view_helpers/actionview/cache_helper/cache.yml +25 -15
- data/config/action_view_helpers/actionview/cache_helper/cache_fragment_name.yml +9 -6
- data/config/action_view_helpers/actionview/cache_helper/cache_if.yml +20 -12
- data/config/action_view_helpers/actionview/cache_helper/cache_unless.yml +20 -12
- data/config/action_view_helpers/actionview/cache_helper/caching_predicate.yml +9 -6
- data/config/action_view_helpers/actionview/cache_helper/digest_path_from_template.yml +9 -6
- data/config/action_view_helpers/actionview/cache_helper/fragment_for.yml +9 -6
- data/config/action_view_helpers/actionview/cache_helper/fragment_name_with_digest.yml +9 -6
- data/config/action_view_helpers/actionview/cache_helper/read_fragment_for.yml +9 -6
- data/config/action_view_helpers/actionview/cache_helper/uncacheable.yml +9 -6
- data/config/action_view_helpers/actionview/cache_helper/write_fragment_for.yml +9 -6
- data/config/action_view_helpers/actionview/capture_helper/capture.yml +9 -6
- data/config/action_view_helpers/actionview/capture_helper/content_for.yml +20 -12
- data/config/action_view_helpers/actionview/capture_helper/content_for_predicate.yml +15 -9
- data/config/action_view_helpers/actionview/capture_helper/provide.yml +15 -9
- data/config/action_view_helpers/actionview/capture_helper/with_output_buffer.yml +9 -6
- data/config/action_view_helpers/actionview/content_exfiltration_prevention_helper/prepend_content_exfiltration_prevention.yml +9 -6
- data/config/action_view_helpers/actionview/content_exfiltration_prevention_helper/prevent_content_exfiltration.yml +9 -6
- data/config/action_view_helpers/actionview/controller_helper/action_name.yml +9 -6
- data/config/action_view_helpers/actionview/controller_helper/assign_controller.yml +9 -6
- data/config/action_view_helpers/actionview/controller_helper/controller.yml +9 -6
- data/config/action_view_helpers/actionview/controller_helper/controller_name.yml +9 -6
- data/config/action_view_helpers/actionview/controller_helper/controller_path.yml +9 -6
- data/config/action_view_helpers/actionview/controller_helper/cookies.yml +9 -6
- data/config/action_view_helpers/actionview/controller_helper/flash.yml +9 -6
- data/config/action_view_helpers/actionview/controller_helper/headers.yml +9 -6
- data/config/action_view_helpers/actionview/controller_helper/logger.yml +9 -6
- data/config/action_view_helpers/actionview/controller_helper/params.yml +9 -6
- data/config/action_view_helpers/actionview/controller_helper/request.yml +9 -6
- data/config/action_view_helpers/actionview/controller_helper/request_forgery_protection_token.yml +9 -6
- data/config/action_view_helpers/actionview/controller_helper/response.yml +9 -6
- data/config/action_view_helpers/actionview/controller_helper/session.yml +9 -6
- data/config/action_view_helpers/actionview/csp_helper/csp_meta_tag.yml +18 -11
- data/config/action_view_helpers/actionview/csrf_helper/csrf_meta_tags.yml +16 -10
- data/config/action_view_helpers/actionview/date_helper/date_select.yml +85 -51
- data/config/action_view_helpers/actionview/date_helper/datetime_select.yml +65 -39
- data/config/action_view_helpers/actionview/date_helper/distance_of_time_in_words.yml +30 -18
- data/config/action_view_helpers/actionview/date_helper/relative_time_in_words.yml +35 -21
- data/config/action_view_helpers/actionview/date_helper/select_date.yml +50 -30
- data/config/action_view_helpers/actionview/date_helper/select_datetime.yml +65 -39
- data/config/action_view_helpers/actionview/date_helper/select_day.yml +40 -24
- data/config/action_view_helpers/actionview/date_helper/select_hour.yml +50 -30
- data/config/action_view_helpers/actionview/date_helper/select_minute.yml +40 -24
- data/config/action_view_helpers/actionview/date_helper/select_month.yml +60 -36
- data/config/action_view_helpers/actionview/date_helper/select_second.yml +35 -21
- data/config/action_view_helpers/actionview/date_helper/select_time.yml +55 -33
- data/config/action_view_helpers/actionview/date_helper/select_year.yml +45 -27
- data/config/action_view_helpers/actionview/date_helper/time_ago_in_words.yml +21 -13
- data/config/action_view_helpers/actionview/date_helper/time_select.yml +60 -36
- data/config/action_view_helpers/actionview/date_helper/time_tag.yml +32 -20
- data/config/action_view_helpers/actionview/debug_helper/debug.yml +15 -9
- data/config/action_view_helpers/actionview/form_builder/button.yml +60 -0
- data/config/action_view_helpers/actionview/form_builder/submit.yml +48 -0
- data/config/action_view_helpers/actionview/form_helper/apply_form_for_options.yml +9 -6
- data/config/action_view_helpers/actionview/form_helper/checkbox.yml +41 -25
- data/config/action_view_helpers/actionview/form_helper/color_field.yml +25 -15
- data/config/action_view_helpers/actionview/form_helper/date_field.yml +35 -21
- data/config/action_view_helpers/actionview/form_helper/datetime_field.yml +41 -25
- data/config/action_view_helpers/actionview/form_helper/email_field.yml +25 -15
- data/config/action_view_helpers/actionview/form_helper/emitted_hidden_id.yml +9 -6
- data/config/action_view_helpers/actionview/form_helper/fields.yml +37 -18
- data/config/action_view_helpers/actionview/form_helper/fields_for.yml +33 -15
- data/config/action_view_helpers/actionview/form_helper/file_field.yml +45 -27
- data/config/action_view_helpers/actionview/form_helper/form_for.yml +45 -24
- data/config/action_view_helpers/actionview/form_helper/form_with.yml +56 -30
- data/config/action_view_helpers/actionview/form_helper/form_with_generates_ids.yml +9 -6
- data/config/action_view_helpers/actionview/form_helper/form_with_generates_remote_forms.yml +9 -6
- data/config/action_view_helpers/actionview/form_helper/hidden_field.yml +25 -15
- data/config/action_view_helpers/actionview/form_helper/label.yml +52 -27
- data/config/action_view_helpers/actionview/form_helper/month_field.yml +25 -15
- data/config/action_view_helpers/actionview/form_helper/multipart.yml +9 -6
- data/config/action_view_helpers/actionview/form_helper/multiple_file_field_include_hidden.yml +9 -6
- data/config/action_view_helpers/actionview/form_helper/number_field.yml +45 -27
- data/config/action_view_helpers/actionview/form_helper/password_field.yml +25 -15
- data/config/action_view_helpers/actionview/form_helper/radio_button.yml +30 -18
- data/config/action_view_helpers/actionview/form_helper/range_field.yml +45 -27
- data/config/action_view_helpers/actionview/form_helper/search_field.yml +25 -15
- data/config/action_view_helpers/actionview/form_helper/telephone_field.yml +26 -16
- data/config/action_view_helpers/actionview/form_helper/text_field.yml +25 -15
- data/config/action_view_helpers/actionview/form_helper/textarea.yml +31 -19
- data/config/action_view_helpers/actionview/form_helper/time_field.yml +40 -24
- data/config/action_view_helpers/actionview/form_helper/url_field.yml +25 -15
- data/config/action_view_helpers/actionview/form_helper/week_field.yml +25 -15
- data/config/action_view_helpers/actionview/form_options_helper/collection_checkboxes.yml +58 -31
- data/config/action_view_helpers/actionview/form_options_helper/collection_radio_buttons.yml +57 -30
- data/config/action_view_helpers/actionview/form_options_helper/collection_select.yml +65 -39
- data/config/action_view_helpers/actionview/form_options_helper/grouped_collection_select.yml +65 -39
- data/config/action_view_helpers/actionview/form_options_helper/grouped_options_for_select.yml +35 -21
- data/config/action_view_helpers/actionview/form_options_helper/option_groups_from_collection_for_select.yml +40 -24
- data/config/action_view_helpers/actionview/form_options_helper/options_for_select.yml +20 -12
- data/config/action_view_helpers/actionview/form_options_helper/options_from_collection_for_select.yml +30 -18
- data/config/action_view_helpers/actionview/form_options_helper/select.yml +60 -36
- data/config/action_view_helpers/actionview/form_options_helper/time_zone_options_for_select.yml +25 -15
- data/config/action_view_helpers/actionview/form_options_helper/time_zone_select.yml +50 -30
- data/config/action_view_helpers/actionview/form_options_helper/weekday_options_for_select.yml +30 -18
- data/config/action_view_helpers/actionview/form_options_helper/weekday_select.yml +30 -18
- data/config/action_view_helpers/actionview/form_tag_helper/button_tag.yml +39 -21
- data/config/action_view_helpers/actionview/form_tag_helper/checkbox_tag.yml +33 -21
- data/config/action_view_helpers/actionview/form_tag_helper/color_field_tag.yml +26 -17
- data/config/action_view_helpers/actionview/form_tag_helper/date_field_tag.yml +27 -17
- data/config/action_view_helpers/actionview/form_tag_helper/datetime_field_tag.yml +28 -18
- data/config/action_view_helpers/actionview/form_tag_helper/default_enforce_utf8.yml +9 -6
- data/config/action_view_helpers/actionview/form_tag_helper/email_field_tag.yml +27 -17
- data/config/action_view_helpers/actionview/form_tag_helper/embed_authenticity_token_in_remote_forms.yml +9 -6
- data/config/action_view_helpers/actionview/form_tag_helper/field_id.yml +30 -18
- data/config/action_view_helpers/actionview/form_tag_helper/field_name.yml +30 -18
- data/config/action_view_helpers/actionview/form_tag_helper/field_set_tag.yml +23 -15
- data/config/action_view_helpers/actionview/form_tag_helper/file_field_tag.yml +35 -22
- data/config/action_view_helpers/actionview/form_tag_helper/form_tag.yml +38 -24
- data/config/action_view_helpers/actionview/form_tag_helper/hidden_field_tag.yml +27 -17
- data/config/action_view_helpers/actionview/form_tag_helper/image_submit_tag.yml +31 -21
- data/config/action_view_helpers/actionview/form_tag_helper/label_tag.yml +33 -17
- data/config/action_view_helpers/actionview/form_tag_helper/month_field_tag.yml +27 -17
- data/config/action_view_helpers/actionview/form_tag_helper/number_field_tag.yml +47 -29
- data/config/action_view_helpers/actionview/form_tag_helper/password_field_tag.yml +27 -17
- data/config/action_view_helpers/actionview/form_tag_helper/radio_button_tag.yml +32 -20
- data/config/action_view_helpers/actionview/form_tag_helper/range_field_tag.yml +47 -29
- data/config/action_view_helpers/actionview/form_tag_helper/search_field_tag.yml +27 -17
- data/config/action_view_helpers/actionview/form_tag_helper/select_tag.yml +47 -29
- data/config/action_view_helpers/actionview/form_tag_helper/submit_tag.yml +33 -21
- data/config/action_view_helpers/actionview/form_tag_helper/telephone_field_tag.yml +28 -18
- data/config/action_view_helpers/actionview/form_tag_helper/text_field_tag.yml +27 -17
- data/config/action_view_helpers/actionview/form_tag_helper/textarea_tag.yml +31 -20
- data/config/action_view_helpers/actionview/form_tag_helper/time_field_tag.yml +27 -17
- data/config/action_view_helpers/actionview/form_tag_helper/url_field_tag.yml +27 -17
- data/config/action_view_helpers/actionview/form_tag_helper/utf8_enforcer_tag.yml +9 -6
- data/config/action_view_helpers/actionview/form_tag_helper/week_field_tag.yml +28 -18
- data/config/action_view_helpers/actionview/javascript_helper/escape_javascript.yml +16 -10
- data/config/action_view_helpers/actionview/javascript_helper/javascript_cdata_section.yml +9 -6
- data/config/action_view_helpers/actionview/javascript_helper/javascript_tag.yml +41 -27
- data/config/action_view_helpers/actionview/number_helper/number_to_currency.yml +29 -18
- data/config/action_view_helpers/actionview/number_helper/number_to_human.yml +25 -15
- data/config/action_view_helpers/actionview/number_helper/number_to_human_size.yml +20 -12
- data/config/action_view_helpers/actionview/number_helper/number_to_percentage.yml +20 -12
- data/config/action_view_helpers/actionview/number_helper/number_to_phone.yml +33 -20
- data/config/action_view_helpers/actionview/number_helper/number_with_delimiter.yml +21 -13
- data/config/action_view_helpers/actionview/number_helper/number_with_precision.yml +25 -15
- data/config/action_view_helpers/actionview/output_safety_helper/raw.yml +15 -9
- data/config/action_view_helpers/actionview/output_safety_helper/safe_join.yml +20 -12
- data/config/action_view_helpers/actionview/output_safety_helper/to_sentence.yml +24 -15
- data/config/action_view_helpers/actionview/record_identifier/dom_class.yml +20 -12
- data/config/action_view_helpers/actionview/record_identifier/dom_id.yml +20 -12
- data/config/action_view_helpers/actionview/record_identifier/dom_target.yml +15 -9
- data/config/action_view_helpers/actionview/record_identifier/model_name_from_record_or_class.yml +9 -6
- data/config/action_view_helpers/actionview/rendering_helper/render.yml +108 -22
- data/config/action_view_helpers/actionview/sanitize_helper/sanitize.yml +25 -15
- data/config/action_view_helpers/actionview/sanitize_helper/sanitize_css.yml +15 -9
- data/config/action_view_helpers/actionview/sanitize_helper/sanitizer_vendor.yml +9 -6
- data/config/action_view_helpers/actionview/sanitize_helper/strip_links.yml +15 -9
- data/config/action_view_helpers/actionview/sanitize_helper/strip_tags.yml +15 -9
- data/config/action_view_helpers/actionview/tag_helper/cdata_section.yml +15 -9
- data/config/action_view_helpers/actionview/tag_helper/content_tag.yml +59 -38
- data/config/action_view_helpers/actionview/tag_helper/escape_once.yml +15 -9
- data/config/action_view_helpers/actionview/tag_helper/tag.yml +54 -31
- data/config/action_view_helpers/actionview/tag_helper/token_list.yml +16 -10
- data/config/action_view_helpers/actionview/text_helper/concat.yml +15 -9
- data/config/action_view_helpers/actionview/text_helper/current_cycle.yml +15 -9
- data/config/action_view_helpers/actionview/text_helper/cycle.yml +23 -14
- data/config/action_view_helpers/actionview/text_helper/excerpt.yml +33 -20
- data/config/action_view_helpers/actionview/text_helper/highlight.yml +37 -18
- data/config/action_view_helpers/actionview/text_helper/pluralize.yml +30 -18
- data/config/action_view_helpers/actionview/text_helper/reset_cycle.yml +15 -9
- data/config/action_view_helpers/actionview/text_helper/safe_concat.yml +9 -6
- data/config/action_view_helpers/actionview/text_helper/simple_format.yml +33 -20
- data/config/action_view_helpers/actionview/text_helper/truncate.yml +38 -23
- data/config/action_view_helpers/actionview/text_helper/word_wrap.yml +25 -15
- data/config/action_view_helpers/actionview/translation_helper/debug_missing_translation.yml +9 -6
- data/config/action_view_helpers/actionview/translation_helper/localize.yml +26 -16
- data/config/action_view_helpers/actionview/translation_helper/translate.yml +31 -19
- data/config/action_view_helpers/actionview/url_helper/button_to.yml +57 -33
- data/config/action_view_helpers/actionview/url_helper/button_to_generates_button_tag.yml +9 -6
- data/config/action_view_helpers/actionview/url_helper/current_page?.yml +25 -15
- data/config/action_view_helpers/actionview/url_helper/link_to.yml +76 -53
- data/config/action_view_helpers/actionview/url_helper/link_to_if.yml +54 -20
- data/config/action_view_helpers/actionview/url_helper/link_to_unless.yml +54 -20
- data/config/action_view_helpers/actionview/url_helper/link_to_unless_current.yml +49 -17
- data/config/action_view_helpers/actionview/url_helper/mail_to.yml +60 -34
- data/config/action_view_helpers/actionview/url_helper/phone_to.yml +40 -22
- data/config/action_view_helpers/actionview/url_helper/sms_to.yml +45 -25
- data/config/action_view_helpers/actionview/url_helper/url_for.yml +15 -9
- data/config/action_view_helpers/importmap-rails/importmap_tags_helper/javascript_import_module_tag.yml +32 -0
- data/config/action_view_helpers/importmap-rails/importmap_tags_helper/javascript_importmap_module_preload_tags.yml +39 -0
- data/config/action_view_helpers/importmap-rails/importmap_tags_helper/javascript_importmap_tags.yml +35 -0
- data/config/action_view_helpers/importmap-rails/importmap_tags_helper/javascript_inline_importmap_tag.yml +32 -0
- data/config/action_view_helpers/importmap-rails/importmap_tags_helper/javascript_module_preload_tag.yml +35 -0
- data/config/action_view_helpers/turbo-rails/drive_helper/turbo_exempts_page_from_cache.yml +9 -6
- data/config/action_view_helpers/turbo-rails/drive_helper/turbo_exempts_page_from_cache_tag.yml +12 -8
- data/config/action_view_helpers/turbo-rails/drive_helper/turbo_exempts_page_from_preview.yml +9 -6
- data/config/action_view_helpers/turbo-rails/drive_helper/turbo_exempts_page_from_preview_tag.yml +12 -8
- data/config/action_view_helpers/turbo-rails/drive_helper/turbo_page_requires_reload.yml +9 -6
- data/config/action_view_helpers/turbo-rails/drive_helper/turbo_page_requires_reload_tag.yml +12 -8
- data/config/action_view_helpers/turbo-rails/drive_helper/turbo_refresh_method_tag.yml +17 -11
- data/config/action_view_helpers/turbo-rails/drive_helper/turbo_refresh_scroll_tag.yml +17 -11
- data/config/action_view_helpers/turbo-rails/drive_helper/turbo_refreshes_with.yml +20 -12
- data/config/action_view_helpers/turbo-rails/frames_helper/turbo_frame_tag.yml +54 -33
- data/config/action_view_helpers/turbo-rails/includes_helper/turbo_include_tags.yml +9 -6
- data/config/action_view_helpers/turbo-rails/streams_action_helper/turbo_stream_action_tag.yml +32 -20
- data/config/action_view_helpers/turbo-rails/streams_action_helper/turbo_stream_refresh_tag.yml +18 -11
- data/config/action_view_helpers/turbo-rails/streams_helper/turbo_stream.yml +9 -6
- data/config/action_view_helpers/turbo-rails/streams_helper/turbo_stream_from.yml +28 -18
- data/config/html_elements.yml +597 -0
- data/config/options.yml +1 -0
- data/config/slots/components.yml +52 -0
- data/config/state/kind.yml +61 -0
- data/config/state/operators.yml +27 -0
- data/config/state/predicates.yml +39 -0
- data/config/state/transforms.yml +18 -0
- data/config/view_context_methods/actionview/base/annotate_rendered_view_with_filenames.yml +4 -4
- data/config/view_context_methods/actionview/base/assign.yml +4 -4
- data/config/view_context_methods/actionview/base/assigns.yml +4 -4
- data/config/view_context_methods/actionview/base/automatically_disable_submit_tag.yml +4 -4
- data/config/view_context_methods/actionview/base/compiled_method_container.yml +4 -4
- data/config/view_context_methods/actionview/base/config.yml +4 -4
- data/config/view_context_methods/actionview/base/default_form_builder.yml +4 -4
- data/config/view_context_methods/actionview/base/default_formats.yml +4 -4
- data/config/view_context_methods/actionview/base/field_error_proc.yml +4 -4
- data/config/view_context_methods/actionview/base/formats.yml +4 -4
- data/config/view_context_methods/actionview/base/in_rendering_context.yml +4 -4
- data/config/view_context_methods/actionview/base/locale.yml +4 -4
- data/config/view_context_methods/actionview/base/lookup_context.yml +4 -4
- data/config/view_context_methods/actionview/base/output_buffer.yml +4 -4
- data/config/view_context_methods/actionview/base/prefix_partial_path_with_controller_namespace.yml +4 -4
- data/config/view_context_methods/actionview/base/remove_hidden_field_autocomplete.yml +4 -4
- data/config/view_context_methods/actionview/base/streaming_completion_on_exception.yml +4 -4
- data/config/view_context_methods/actionview/base/view_flow.yml +4 -4
- data/config/view_context_methods/actionview/base/view_paths.yml +4 -4
- data/config/view_context_methods/actionview/base/view_renderer.yml +4 -4
- data/config/view_context_methods/actionview/template/local_assigns.yml +4 -4
- data/config/view_context_methods/activemodel/conversion/convert_to_model.yml +4 -4
- data/config/view_context_methods/activesupport/benchmarkable/benchmark.yml +4 -4
- data/config.yml +1240 -790
- data/exe/herb +2 -0
- data/ext/herb/error_helpers.c +355 -17
- data/ext/herb/error_helpers.h +1 -1
- data/ext/herb/extconf.rb +4 -2
- data/ext/herb/extension.c +137 -89
- data/ext/herb/extension_helpers.c +81 -42
- data/ext/herb/extension_helpers.h +4 -1
- data/ext/herb/nodes.c +826 -358
- data/ext/herb/nodes.h +3 -2
- data/ext/herb/parser_options_helpers.c +151 -0
- data/ext/herb/parser_options_helpers.h +14 -0
- data/herb.gemspec +2 -2
- data/lib/herb/action_view/helper_registry.rb +1358 -62
- data/lib/herb/analysis/partial_declaration.rb +140 -0
- data/lib/herb/analysis/partial_index.rb +189 -0
- data/lib/herb/analysis/partial_resolution.rb +161 -0
- data/lib/herb/analysis/partial_resolver.rb +144 -0
- data/lib/herb/analysis/project_index.rb +152 -0
- data/lib/herb/{action_view → analysis}/render_analyzer.rb +287 -77
- data/lib/herb/analysis/render_graph/ancestor_chain.rb +27 -0
- data/lib/herb/analysis/render_graph/builder.rb +376 -0
- data/lib/herb/analysis/render_graph/call_frame.rb +9 -0
- data/lib/herb/analysis/render_graph/call_site_location.rb +23 -0
- data/lib/herb/analysis/render_graph/inferred_signature.rb +21 -0
- data/lib/herb/analysis/render_graph/partial_call_site.rb +40 -0
- data/lib/herb/analysis/render_graph/partial_context.rb +46 -0
- data/lib/herb/analysis/render_graph/template_roots.rb +31 -0
- data/lib/herb/analysis/render_graph.rb +285 -0
- data/lib/herb/analysis/ruby_locals_index/local.rb +25 -0
- data/lib/herb/analysis/ruby_locals_index/named_reference.rb +22 -0
- data/lib/herb/analysis/ruby_locals_index/offset_table.rb +44 -0
- data/lib/herb/analysis/ruby_locals_index/reference_collector.rb +80 -0
- data/lib/herb/analysis/ruby_locals_index/state_locals.rb +49 -0
- data/lib/herb/analysis/ruby_locals_index.rb +165 -0
- data/lib/herb/analysis/ruby_reference.rb +67 -0
- data/lib/herb/analysis/template_dependencies/dependency_collector.rb +179 -0
- data/lib/herb/analysis/template_dependencies/node_dependency_collector.rb +309 -0
- data/lib/herb/analysis/template_dependencies.rb +562 -0
- data/lib/herb/ast/erb_render_node.rb +26 -94
- data/lib/herb/ast/helpers.rb +90 -10
- data/lib/herb/ast/herb_directive_node.rb +18 -0
- data/lib/herb/ast/node.rb +32 -2
- data/lib/herb/ast/nodes.rb +1342 -105
- data/lib/herb/backend.rb +73 -0
- data/lib/herb/bootstrap.rb +3 -7
- data/lib/herb/cli.rb +550 -32
- data/lib/herb/colors.rb +14 -0
- data/lib/herb/configuration.rb +71 -35
- data/lib/herb/defaults.yml +2 -1
- data/lib/herb/dev/assets.rb +57 -0
- data/lib/herb/dev/classifier.rb +84 -0
- data/lib/herb/dev/embedded.rb +27 -0
- data/lib/herb/dev/pipeline.rb +305 -0
- data/lib/herb/dev/protocol.rb +221 -0
- data/lib/herb/dev/runner.rb +175 -175
- data/lib/herb/dev/server.rb +89 -26
- data/lib/herb/dev/server_entry.rb +41 -6
- data/lib/herb/dev/watcher.rb +181 -0
- data/lib/herb/dev.rb +163 -0
- data/lib/herb/diagnostic/formatter.rb +88 -0
- data/lib/herb/diagnostic.rb +172 -0
- data/lib/herb/diff/operation.rb +36 -0
- data/lib/herb/diff/result.rb +62 -0
- data/lib/herb/diff.rb +10 -0
- data/lib/herb/engine/collector.rb +62 -0
- data/lib/herb/engine/compiler.rb +346 -108
- data/lib/herb/engine/component_tags/constant_resolver.rb +28 -0
- data/lib/herb/engine/component_tags/partial_resolver.rb +54 -0
- data/lib/herb/engine/component_tags/resolver.rb +32 -0
- data/lib/herb/engine/component_tags/visitor.rb +231 -0
- data/lib/herb/engine/css_inliner/inliner.rb +101 -0
- data/lib/herb/engine/css_inliner/visitor.rb +174 -0
- data/lib/herb/engine/errors.rb +122 -0
- data/lib/herb/engine/helpers.rb +82 -0
- data/lib/herb/engine/inline_render/inliner.rb +122 -0
- data/lib/herb/engine/inline_render/visitor.rb +267 -0
- data/lib/herb/engine/runtime/entry.rb +62 -0
- data/lib/herb/engine/runtime/error_page.rb +362 -0
- data/lib/herb/engine/runtime/html_safe_assertions.rb +217 -0
- data/lib/herb/engine/runtime/journal/summary.rb +227 -0
- data/lib/herb/engine/runtime/journal.rb +379 -0
- data/lib/herb/engine/runtime/middleware.rb +212 -0
- data/lib/herb/engine/runtime/observations.rb +73 -0
- data/lib/herb/engine/runtime/report.rb +204 -0
- data/lib/herb/engine/runtime/session.rb +437 -0
- data/lib/herb/engine/runtime.rb +21 -0
- data/lib/herb/engine/scoped_style/channel.rb +66 -0
- data/lib/herb/engine/scoped_style/collector.rb +74 -0
- data/lib/herb/engine/scoped_style/visitor.rb +533 -0
- data/lib/herb/engine/slots/annotation.rb +98 -0
- data/lib/herb/engine/slots/bindings.rb +61 -0
- data/lib/herb/engine/slots/callee.rb +118 -0
- data/lib/herb/engine/slots/component_definitions.rb +67 -0
- data/lib/herb/engine/slots/components/async.rb +24 -0
- data/lib/herb/engine/slots/components/base.rb +132 -0
- data/lib/herb/engine/slots/components/deferred.rb +81 -0
- data/lib/herb/engine/slots/components/fallback.rb +27 -0
- data/lib/herb/engine/slots/components/fragment.rb +99 -0
- data/lib/herb/engine/slots/components/lazy.rb +24 -0
- data/lib/herb/engine/slots/components.rb +52 -0
- data/lib/herb/engine/slots/dependencies/channel.rb +72 -0
- data/lib/herb/engine/slots/dependencies.rb +269 -0
- data/lib/herb/engine/slots/dynamics_compiler.rb +854 -0
- data/lib/herb/engine/slots/identifier.rb +35 -0
- data/lib/herb/engine/slots/manifest/channel.rb +74 -0
- data/lib/herb/engine/slots/manifest/collector.rb +75 -0
- data/lib/herb/engine/slots/markers.rb +128 -0
- data/lib/herb/engine/slots/render_bindings.rb +141 -0
- data/lib/herb/engine/slots/schema_compiler.rb +94 -0
- data/lib/herb/engine/slots/state_anchor.rb +94 -0
- data/lib/herb/engine/slots/state_compiler.rb +1326 -0
- data/lib/herb/engine/slots/state_directives.rb +854 -0
- data/lib/herb/engine/slots/state_kinds.rb +54 -0
- data/lib/herb/engine/slots/state_operators.rb +36 -0
- data/lib/herb/engine/slots/state_overrides.rb +79 -0
- data/lib/herb/engine/slots/state_predicates.rb +65 -0
- data/lib/herb/engine/slots/state_transforms.rb +42 -0
- data/lib/herb/engine/slots/statics.rb +185 -0
- data/lib/herb/engine/slots/subtree.rb +82 -0
- data/lib/herb/engine/slots/subtree_compiler.rb +255 -0
- data/lib/herb/engine/slots/types.rb +42 -0
- data/lib/herb/engine/slots/visitor.rb +2256 -0
- data/lib/herb/engine/validators/accessibility_validator.rb +3 -3
- data/lib/herb/engine/validators/base.rb +36 -0
- data/lib/herb/engine/validators/generator_template_validator.rb +39 -0
- data/lib/herb/engine/validators/nesting_validator.rb +3 -3
- data/lib/herb/engine/validators/render_validator.rb +13 -33
- data/lib/herb/engine/validators/security_validator.rb +3 -17
- data/lib/herb/engine/validators.rb +43 -0
- data/lib/herb/engine/visitors/auto_close_omitted_tags_visitor.rb +48 -0
- data/lib/herb/engine/visitors/content_for_visitor.rb +127 -0
- data/lib/herb/engine/{debug_visitor.rb → visitors/debug_visitor.rb} +121 -93
- data/lib/herb/engine/visitors/html_safe_assertions_visitor.rb +281 -0
- data/lib/herb/engine/visitors/instrumentation_visitor.rb +290 -0
- data/lib/herb/engine/visitors/optimize_visitor.rb +728 -0
- data/lib/herb/engine/visitors/remove_comments_visitor.rb +106 -0
- data/lib/herb/engine/visitors/source_attribution_visitor.rb +177 -0
- data/lib/herb/engine.rb +218 -257
- data/lib/herb/ensure_installed.rb +43 -0
- data/lib/herb/errors.rb +646 -157
- data/lib/herb/fingerprint.rb +82 -0
- data/lib/herb/html/elements.rb +18 -0
- data/lib/herb/html/util.rb +21 -2
- data/lib/herb/lex_result.rb +0 -10
- data/lib/herb/locate.rb +163 -0
- data/lib/herb/location.rb +20 -0
- data/lib/herb/parse_result.rb +17 -11
- data/lib/herb/parser_options.rb +65 -46
- data/lib/herb/position.rb +19 -0
- data/lib/herb/prism_inspect.rb +1 -4
- data/lib/herb/project.rb +28 -15
- data/lib/herb/range.rb +5 -0
- data/lib/herb/result.rb +2 -2
- data/lib/herb/ruby_program.rb +110 -0
- data/lib/herb/source_path.rb +232 -0
- data/lib/herb/token.rb +14 -3
- data/lib/herb/version.rb +1 -1
- data/lib/herb/visitor/context/origin.rb +52 -0
- data/lib/herb/visitor/context/replacements.rb +59 -0
- data/lib/herb/visitor/context.rb +169 -0
- data/lib/herb/visitor/context_aware.rb +45 -0
- data/lib/herb/visitor/diagnostics.rb +148 -0
- data/lib/herb/visitor/experimental.rb +33 -0
- data/lib/herb/visitor/parser_option_requirements.rb +151 -0
- data/lib/herb/visitor/stack.rb +192 -0
- data/lib/herb/visitor.rb +47 -1
- data/lib/herb/warnings.rb +25 -0
- data/lib/herb.rb +74 -63
- data/sig/herb/action_view/helper_registry.rbs +82 -10
- data/sig/herb/analysis/partial_declaration.rbs +80 -0
- data/sig/herb/analysis/partial_index.rbs +66 -0
- data/sig/herb/analysis/partial_resolution.rbs +57 -0
- data/sig/herb/analysis/partial_resolver.rbs +76 -0
- data/sig/herb/analysis/project_index.rbs +57 -0
- data/sig/herb/{action_view → analysis}/render_analyzer.rbs +25 -4
- data/sig/herb/analysis/render_graph/ancestor_chain.rbs +22 -0
- data/sig/herb/analysis/render_graph/builder.rbs +180 -0
- data/sig/herb/analysis/render_graph/call_frame.rbs +26 -0
- data/sig/herb/analysis/render_graph/call_site_location.rbs +28 -0
- data/sig/herb/analysis/render_graph/inferred_signature.rbs +27 -0
- data/sig/herb/analysis/render_graph/partial_call_site.rbs +36 -0
- data/sig/herb/analysis/render_graph/partial_context.rbs +31 -0
- data/sig/herb/analysis/render_graph/template_roots.rbs +32 -0
- data/sig/herb/analysis/render_graph.rbs +83 -0
- data/sig/herb/analysis/ruby_locals_index/local.rbs +21 -0
- data/sig/herb/analysis/ruby_locals_index/named_reference.rbs +20 -0
- data/sig/herb/analysis/ruby_locals_index/offset_table.rbs +26 -0
- data/sig/herb/analysis/ruby_locals_index/reference_collector.rbs +40 -0
- data/sig/herb/analysis/ruby_locals_index/state_locals.rbs +19 -0
- data/sig/herb/analysis/ruby_locals_index.rbs +62 -0
- data/sig/herb/analysis/ruby_reference.rbs +28 -0
- data/sig/herb/analysis/template_dependencies/dependency_collector.rbs +52 -0
- data/sig/herb/analysis/template_dependencies/node_dependency_collector.rbs +81 -0
- data/sig/herb/analysis/template_dependencies.rbs +125 -0
- data/sig/herb/ast/erb_render_node.rbs +10 -2
- data/sig/herb/ast/helpers.rbs +31 -1
- data/sig/herb/ast/herb_directive_node.rbs +13 -0
- data/sig/herb/ast/node.rbs +9 -0
- data/sig/herb/ast/nodes.rbs +662 -89
- data/sig/herb/backend.rbs +52 -0
- data/sig/herb/colors.rbs +3 -0
- data/sig/herb/configuration.rbs +27 -3
- data/sig/herb/dev/assets.rbs +27 -0
- data/sig/herb/dev/classifier.rbs +57 -0
- data/sig/herb/dev/embedded.rbs +21 -0
- data/sig/herb/dev/pipeline.rbs +118 -0
- data/sig/herb/dev/protocol.rbs +78 -0
- data/sig/herb/dev/runner.rbs +61 -23
- data/sig/herb/dev/server.rbs +49 -22
- data/sig/herb/dev/server_entry.rbs +46 -21
- data/sig/herb/dev/watcher.rbs +84 -0
- data/sig/herb/dev.rbs +58 -0
- data/sig/herb/diagnostic/formatter.rbs +28 -0
- data/sig/herb/diagnostic.rbs +88 -0
- data/sig/herb/diff/operation.rbs +36 -0
- data/sig/herb/diff/result.rbs +36 -0
- data/sig/herb/diff.rbs +6 -0
- data/sig/herb/engine/collector.rbs +48 -0
- data/sig/herb/engine/compiler.rbs +62 -23
- data/sig/herb/engine/component_tags/constant_resolver.rbs +19 -0
- data/sig/herb/engine/component_tags/partial_resolver.rbs +30 -0
- data/sig/herb/engine/component_tags/resolver.rbs +25 -0
- data/sig/herb/engine/component_tags/visitor.rbs +69 -0
- data/sig/herb/engine/css_inliner/inliner.rbs +65 -0
- data/sig/herb/engine/css_inliner/visitor.rbs +87 -0
- data/sig/herb/engine/errors.rbs +68 -0
- data/sig/herb/engine/helpers.rbs +28 -0
- data/sig/herb/engine/inline_render/inliner.rbs +39 -0
- data/sig/herb/engine/inline_render/visitor.rbs +104 -0
- data/sig/herb/engine/runtime/entry.rbs +43 -0
- data/sig/herb/engine/runtime/error_page.rbs +115 -0
- data/sig/herb/engine/runtime/html_safe_assertions.rbs +99 -0
- data/sig/herb/engine/runtime/journal/summary.rbs +172 -0
- data/sig/herb/engine/runtime/journal.rbs +126 -0
- data/sig/herb/engine/runtime/middleware.rbs +96 -0
- data/sig/herb/engine/runtime/observations.rbs +38 -0
- data/sig/herb/engine/runtime/report.rbs +97 -0
- data/sig/herb/engine/runtime/session.rbs +233 -0
- data/sig/herb/engine/runtime.rbs +14 -0
- data/sig/herb/engine/scoped_style/channel.rbs +45 -0
- data/sig/herb/engine/scoped_style/collector.rbs +45 -0
- data/sig/herb/engine/scoped_style/visitor.rbs +220 -0
- data/sig/herb/engine/slots/annotation.rbs +72 -0
- data/sig/herb/engine/slots/bindings.rbs +34 -0
- data/sig/herb/engine/slots/callee.rbs +62 -0
- data/sig/herb/engine/slots/component_definitions.rbs +19 -0
- data/sig/herb/engine/slots/components/async.rbs +20 -0
- data/sig/herb/engine/slots/components/base.rbs +60 -0
- data/sig/herb/engine/slots/components/deferred.rbs +29 -0
- data/sig/herb/engine/slots/components/fallback.rbs +21 -0
- data/sig/herb/engine/slots/components/fragment.rbs +34 -0
- data/sig/herb/engine/slots/components/lazy.rbs +20 -0
- data/sig/herb/engine/slots/components.rbs +30 -0
- data/sig/herb/engine/slots/dependencies/channel.rbs +51 -0
- data/sig/herb/engine/slots/dependencies.rbs +94 -0
- data/sig/herb/engine/slots/dynamics_compiler.rbs +349 -0
- data/sig/herb/engine/slots/identifier.rbs +19 -0
- data/sig/herb/engine/slots/manifest/channel.rbs +49 -0
- data/sig/herb/engine/slots/manifest/collector.rbs +45 -0
- data/sig/herb/engine/slots/markers.rbs +85 -0
- data/sig/herb/engine/slots/render_bindings.rbs +69 -0
- data/sig/herb/engine/slots/schema_compiler.rbs +62 -0
- data/sig/herb/engine/slots/state_anchor.rbs +41 -0
- data/sig/herb/engine/slots/state_compiler.rbs +258 -0
- data/sig/herb/engine/slots/state_directives.rbs +278 -0
- data/sig/herb/engine/slots/state_kinds.rbs +24 -0
- data/sig/herb/engine/slots/state_operators.rbs +19 -0
- data/sig/herb/engine/slots/state_overrides.rbs +33 -0
- data/sig/herb/engine/slots/state_predicates.rbs +16 -0
- data/sig/herb/engine/slots/state_transforms.rbs +15 -0
- data/sig/herb/engine/slots/statics.rbs +67 -0
- data/sig/herb/engine/slots/subtree.rbs +49 -0
- data/sig/herb/engine/slots/subtree_compiler.rbs +130 -0
- data/sig/herb/engine/slots/types.rbs +46 -0
- data/sig/herb/engine/slots/visitor.rbs +599 -0
- data/sig/herb/engine/validators/accessibility_validator.rbs +1 -1
- data/sig/herb/engine/validators/base.rbs +28 -0
- data/sig/herb/engine/validators/generator_template_validator.rbs +19 -0
- data/sig/herb/engine/validators/nesting_validator.rbs +1 -1
- data/sig/herb/engine/validators/render_validator.rbs +2 -6
- data/sig/herb/engine/validators/security_validator.rbs +1 -3
- data/sig/herb/engine/validators.rbs +21 -0
- data/sig/herb/engine/visitors/auto_close_omitted_tags_visitor.rbs +26 -0
- data/sig/herb/engine/visitors/content_for_visitor.rbs +52 -0
- data/sig/herb/engine/{debug_visitor.rbs → visitors/debug_visitor.rbs} +26 -15
- data/sig/herb/engine/visitors/html_safe_assertions_visitor.rbs +100 -0
- data/sig/herb/engine/visitors/instrumentation_visitor.rbs +111 -0
- data/sig/herb/engine/visitors/optimize_visitor.rbs +246 -0
- data/sig/herb/engine/visitors/remove_comments_visitor.rbs +66 -0
- data/sig/herb/engine/visitors/source_attribution_visitor.rbs +90 -0
- data/sig/herb/engine.rbs +47 -41
- data/sig/herb/ensure_installed.rbs +9 -0
- data/sig/herb/errors.rbs +293 -0
- data/sig/herb/fingerprint.rbs +37 -0
- data/sig/herb/html/elements.rbs +19 -0
- data/sig/herb/html/util.rbs +15 -1
- data/sig/herb/lex_result.rbs +0 -6
- data/sig/herb/locate.rbs +89 -0
- data/sig/herb/location.rbs +12 -0
- data/sig/herb/parse_result.rbs +10 -8
- data/sig/herb/parser_options.rbs +47 -21
- data/sig/herb/position.rbs +11 -0
- data/sig/herb/range.rbs +3 -0
- data/sig/herb/ruby_program.rbs +51 -0
- data/sig/herb/source_path.rbs +132 -0
- data/sig/herb/token.rbs +5 -2
- data/sig/herb/visitor/context/origin.rbs +51 -0
- data/sig/herb/visitor/context/replacements.rbs +39 -0
- data/sig/herb/visitor/context.rbs +83 -0
- data/sig/herb/visitor/context_aware.rbs +32 -0
- data/sig/herb/visitor/diagnostics.rbs +82 -0
- data/sig/herb/visitor/experimental.rbs +23 -0
- data/sig/herb/visitor/parser_option_requirements.rbs +76 -0
- data/sig/herb/visitor/stack.rbs +91 -0
- data/sig/herb/visitor.rbs +22 -0
- data/sig/herb/warnings.rbs +10 -0
- data/sig/herb.rbs +27 -10
- data/sig/serialized_ast_errors.rbs +58 -1
- data/sig/serialized_ast_nodes.rbs +58 -2
- data/src/analyze/action_view/attribute_extraction_helpers.c +73 -36
- data/src/analyze/action_view/generated_handlers.c +37 -1
- data/src/analyze/action_view/generated_handlers.h +2 -1
- data/src/analyze/action_view/helper_registry.c +1353 -58
- data/src/analyze/action_view/registry.c +10 -17
- data/src/analyze/action_view/stylesheet_link_tag.c +40 -0
- data/src/analyze/action_view/tag_helper_node_builders.c +57 -0
- data/src/analyze/action_view/tag_helpers.c +423 -93
- data/src/analyze/analyze.c +301 -64
- data/src/analyze/analyze_helpers.c +420 -23
- data/src/analyze/builders.c +79 -51
- data/src/analyze/conditional_elements.c +13 -8
- data/src/analyze/conditional_open_tags.c +11 -5
- data/src/analyze/control_type.c +16 -1
- data/src/analyze/herb_directives.c +701 -0
- data/src/analyze/invalid_structures.c +11 -7
- data/src/analyze/iteration_nodes.c +306 -0
- data/src/analyze/missing_end.c +116 -32
- data/src/analyze/parse_errors.c +8 -3
- data/src/analyze/postfix_conditionals.c +98 -63
- data/src/analyze/prism_annotate.c +13 -4
- data/src/analyze/render_nodes.c +345 -123
- data/src/analyze/strict_locals.c +30 -26
- data/src/analyze/ternary_conditionals.c +95 -70
- data/src/analyze/transform.c +43 -1
- data/src/ast/ast_node.c +3 -13
- data/src/ast/ast_nodes.c +911 -112
- data/src/ast/ast_pretty_print.c +161 -2
- data/src/diff/herb_diff.c +8 -0
- data/src/diff/herb_diff_attributes.c +1 -0
- data/src/diff/herb_diff_children.c +4 -3
- data/src/diff/herb_diff_helpers.c +7 -1
- data/src/diff/herb_diff_nodes.c +186 -71
- data/src/diff/herb_hash_tree.c +99 -1
- data/src/errors.c +1096 -128
- data/src/extract.c +30 -8
- data/src/herb.c +30 -11
- data/src/include/analyze/action_view/attribute_extraction_helpers.h +1 -1
- data/src/include/analyze/action_view/helper_registry.h +28 -4
- data/src/include/analyze/action_view/tag_helper_handler.h +1 -1
- data/src/include/analyze/action_view/tag_helper_node_builders.h +7 -0
- data/src/include/analyze/analyze.h +11 -0
- data/src/include/analyze/builders.h +16 -0
- data/src/include/analyze/helpers.h +23 -2
- data/src/include/analyze/herb_directive_kinds.h +41 -0
- data/src/include/analyze/herb_directives.h +14 -0
- data/src/include/analyze/iteration_nodes.h +11 -0
- data/src/include/analyze/prism_annotate.h +3 -3
- data/src/include/analyze/ternary_conditionals.h +2 -0
- data/src/include/ast/ast_node.h +1 -5
- data/src/include/ast/ast_nodes.h +76 -2
- data/src/include/ast/ast_pretty_print.h +1 -1
- data/src/include/diff/herb_diff.h +11 -0
- data/src/include/errors.h +156 -39
- data/src/include/extract.h +11 -0
- data/src/include/herb.h +6 -0
- data/src/include/lexer/erb_openers.h +29 -0
- data/src/include/lexer/lexer_peek_helpers.h +8 -1
- data/src/include/lexer/lexer_struct.h +4 -0
- data/src/include/lexer/token.h +3 -0
- data/src/include/lexer/token_struct.h +8 -6
- data/src/include/lib/hb_allocator.h +2 -1
- data/src/include/lib/hb_array.h +2 -0
- data/src/include/lib/hb_foreach.h +1 -1
- data/src/include/lib/hb_string.h +7 -0
- data/src/include/parser/dot_notation.h +1 -1
- data/src/include/parser/foreign_content_elements.h +32 -0
- data/src/include/parser/parser.h +16 -30
- data/src/include/parser/parser_helpers.h +13 -11
- data/src/include/parser/parser_options.h +41 -0
- data/src/include/prism/ruby_parser.h +6 -0
- data/src/include/util/html_elements.h +85 -0
- data/src/include/util/html_util.h +1 -0
- data/src/include/version.h +1 -1
- data/src/lexer/lexer_peek_helpers.c +15 -1
- data/src/lexer/token.c +83 -1
- data/src/lexer.c +196 -12
- data/src/lib/hb_allocator.c +2 -0
- data/src/lib/hb_array.c +26 -0
- data/src/lib/hb_string.c +26 -0
- data/src/main.c +1 -1
- data/src/parser/dot_notation.c +4 -3
- data/src/parser/match_tags.c +66 -1
- data/src/parser/parser_helpers.c +69 -37
- data/src/parser.c +606 -383
- data/src/parser_options_defaults.c +30 -0
- data/src/prism/prism_helpers.c +3 -0
- data/src/prism/ruby_parser.c +49 -0
- data/src/util/html_util.c +11 -58
- data/src/visitor.c +77 -1
- data/templates/ext/herb/error_helpers.c.erb +1 -1
- data/templates/ext/herb/nodes.c.erb +18 -13
- data/templates/ext/herb/nodes.h.erb +2 -1
- data/templates/ext/herb/parser_options_helpers.c.erb +69 -0
- data/templates/ext/herb/parser_options_helpers.h.erb +11 -0
- data/templates/java/nodes.c.erb +20 -16
- data/templates/java/nodes.h.erb +3 -2
- data/templates/java/org/herb/ParserOptions.java.erb +24 -0
- data/templates/java/org/herb/ast/HelperRegistry.java.erb +67 -31
- data/templates/java/org/herb/ast/HelperType.java.erb +29 -0
- data/templates/java/org/herb/ast/Nodes.java.erb +11 -7
- data/templates/java/parser_options_helpers.c.erb +45 -0
- data/templates/java/parser_options_helpers.h.erb +10 -0
- data/templates/javascript/packages/client/src/state-kinds.ts.erb +49 -0
- data/templates/javascript/packages/client/src/state-operators.ts.erb +15 -0
- data/templates/javascript/packages/client/src/state-predicates.ts.erb +27 -0
- data/templates/javascript/packages/client/src/state-transforms.ts.erb +19 -0
- data/templates/javascript/packages/core/src/action-view-helpers.ts.erb +47 -0
- data/templates/javascript/packages/core/src/built-in-components.ts.erb +67 -0
- data/templates/javascript/packages/core/src/errors.ts.erb +9 -3
- data/templates/javascript/packages/core/src/foreign-content-elements.ts.erb +18 -0
- data/templates/javascript/packages/core/src/html-constants.ts.erb +32 -0
- data/templates/javascript/packages/core/src/html-elements.ts.erb +41 -0
- data/templates/javascript/packages/core/src/node-type-guards.ts.erb +11 -7
- data/templates/javascript/packages/core/src/nodes.ts.erb +82 -19
- data/templates/javascript/packages/core/src/parser-options.ts.erb +41 -0
- data/templates/javascript/packages/core/src/visitor.ts.erb +1 -1
- data/templates/javascript/packages/node/extension/error_helpers.cpp.erb +3 -3
- data/templates/javascript/packages/node/extension/nodes.cpp.erb +17 -12
- data/templates/javascript/packages/node/extension/nodes.h.erb +3 -3
- data/templates/javascript/packages/node/extension/parser_options_helpers.cpp.erb +41 -0
- data/templates/javascript/packages/node/extension/parser_options_helpers.h.erb +12 -0
- data/templates/lib/herb/action_view/helper_registry.rb.erb +77 -3
- data/templates/lib/herb/ast/nodes.rb.erb +16 -6
- data/templates/lib/herb/engine/slots/component_definitions.rb.erb +38 -0
- data/templates/lib/herb/engine/slots/state_kinds.rb.erb +37 -0
- data/templates/lib/herb/engine/slots/state_operators.rb.erb +26 -0
- data/templates/lib/herb/engine/slots/state_predicates.rb.erb +39 -0
- data/templates/lib/herb/engine/slots/state_transforms.rb.erb +27 -0
- data/templates/lib/herb/errors.rb.erb +34 -6
- data/templates/lib/herb/html/elements.rb.erb +12 -0
- data/templates/lib/herb/parser_options.rb.erb +32 -0
- data/templates/lib/herb/visitor.rb.erb +7 -1
- data/templates/rust/herb-printer/src/printer_visitor.rs.erb +14 -0
- data/templates/rust/src/action_view_helpers.rs.erb +38 -0
- data/templates/rust/src/ast/nodes.rs.erb +24 -31
- data/templates/rust/src/errors.rs.erb +1 -1
- data/templates/rust/src/nodes.rs.erb +58 -26
- data/templates/rust/src/parser_options.rs.erb +16 -0
- data/templates/rust/src/prism/generated_deserialize.rs.erb +109 -0
- data/templates/rust/src/prism/generated_prettyprint.rs.erb +153 -0
- data/templates/rust/src/union_types.rs.erb +7 -1
- data/templates/rust/src/visitor.rs.erb +1 -1
- data/templates/src/analyze/action_view/helper_registry.c.erb +22 -0
- data/templates/src/analyze/missing_end.c.erb +13 -5
- data/templates/src/ast/ast_nodes.c.erb +41 -2
- data/templates/src/diff/herb_diff_nodes.c.erb +44 -8
- data/templates/src/errors.c.erb +8 -3
- data/templates/src/include/analyze/action_view/helper_registry.h.erb +19 -0
- data/templates/src/include/analyze/herb_directive_kinds.h.erb +25 -0
- data/templates/src/include/errors.h.erb +3 -1
- data/templates/src/include/parser/foreign_content_elements.h.erb +23 -0
- data/templates/src/include/parser/parser_options.h.erb +21 -0
- data/templates/src/include/util/html_elements.h.erb +28 -0
- data/templates/src/parser_options_defaults.c.erb +9 -0
- data/templates/template.rb +564 -9
- data/templates/wasm/error_helpers.cpp.erb +4 -4
- data/templates/wasm/nodes.cpp.erb +12 -12
- data/templates/wasm/nodes.h.erb +3 -3
- data/templates/wasm/parser_options_helpers.cpp.erb +25 -0
- data/templates/wasm/parser_options_helpers.h.erb +12 -0
- metadata +306 -27
- data/config/action_view_helpers/actionview/form_helper/button.yml +0 -38
- data/config/action_view_helpers/actionview/form_helper/submit.yml +0 -35
- data/lib/herb/ast.rb +0 -7
- data/lib/herb/diff_operation.rb +0 -34
- data/lib/herb/diff_result.rb +0 -59
- data/lib/herb/engine/error_formatter.rb +0 -432
- data/lib/herb/engine/parser_error_overlay.rb +0 -773
- data/lib/herb/engine/validation_error_overlay.rb +0 -182
- data/lib/herb/engine/validation_errors.rb +0 -65
- data/lib/herb/engine/validator.rb +0 -80
- data/sig/herb/ast.rbs +0 -6
- data/sig/herb/diff_operation.rbs +0 -34
- data/sig/herb/diff_result.rbs +0 -34
- data/sig/herb/engine/debug.rbs +0 -38
- data/sig/herb/engine/error_formatter.rbs +0 -47
- data/sig/herb/engine/parser_error_overlay.rbs +0 -41
- data/sig/herb/engine/validation_error_overlay.rbs +0 -35
- data/sig/herb/engine/validation_errors.rbs +0 -45
- data/sig/herb/engine/validator.rbs +0 -41
- data/sig/herb_c_extension.rbs +0 -10
data/sig/herb/ast/nodes.rbs
CHANGED
|
@@ -16,8 +16,14 @@ module Herb
|
|
|
16
16
|
|
|
17
17
|
attr_reader prism_node: String?
|
|
18
18
|
|
|
19
|
-
# : (String, Location, Array[Herb::Errors::Error], Array[Herb::AST::Node], nil, String) -> void
|
|
20
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Array[Herb::AST::Node], nil, String) -> void
|
|
19
|
+
# : (String, Location, Array[Herb::Errors::Error], Array[Herb::AST::Node], nil, String?) -> void
|
|
20
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Array[Herb::AST::Node], nil, String?) -> void
|
|
21
|
+
|
|
22
|
+
# : () -> String
|
|
23
|
+
def self.type: () -> String
|
|
24
|
+
|
|
25
|
+
# : (?children: Array[Herb::AST::Node], ?prism_context: nil, ?prism_node: String?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> DocumentNode
|
|
26
|
+
def self.build: (?children: Array[Herb::AST::Node], ?prism_context: nil, ?prism_node: String?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> DocumentNode
|
|
21
27
|
|
|
22
28
|
# : () -> Prism::node?
|
|
23
29
|
def deserialized_prism_node: () -> Prism::node?
|
|
@@ -49,8 +55,14 @@ module Herb
|
|
|
49
55
|
|
|
50
56
|
attr_reader content: String?
|
|
51
57
|
|
|
52
|
-
# : (String, Location, Array[Herb::Errors::Error], String) -> void
|
|
53
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], String) -> void
|
|
58
|
+
# : (String, Location, Array[Herb::Errors::Error], String?) -> void
|
|
59
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], String?) -> void
|
|
60
|
+
|
|
61
|
+
# : () -> String
|
|
62
|
+
def self.type: () -> String
|
|
63
|
+
|
|
64
|
+
# : (?content: String?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> LiteralNode
|
|
65
|
+
def self.build: (?content: String?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> LiteralNode
|
|
54
66
|
|
|
55
67
|
# : () -> serialized_literal_node
|
|
56
68
|
def to_hash: () -> serialized_literal_node
|
|
@@ -91,8 +103,14 @@ module Herb
|
|
|
91
103
|
|
|
92
104
|
attr_reader is_void: bool
|
|
93
105
|
|
|
94
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
95
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
106
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, Array[Herb::AST::Node], bool) -> void
|
|
107
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, Array[Herb::AST::Node], bool) -> void
|
|
108
|
+
|
|
109
|
+
# : () -> String
|
|
110
|
+
def self.type: () -> String
|
|
111
|
+
|
|
112
|
+
# : (?tag_opening: Herb::Token?, ?tag_name: Herb::Token?, ?tag_closing: Herb::Token?, ?children: Array[Herb::AST::Node], ?is_void: bool, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HTMLOpenTagNode
|
|
113
|
+
def self.build: (?tag_opening: Herb::Token?, ?tag_name: Herb::Token?, ?tag_closing: Herb::Token?, ?children: Array[Herb::AST::Node], ?is_void: bool, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HTMLOpenTagNode
|
|
96
114
|
|
|
97
115
|
# : () -> serialized_html_open_tag_node
|
|
98
116
|
def to_hash: () -> serialized_html_open_tag_node
|
|
@@ -127,8 +145,14 @@ module Herb
|
|
|
127
145
|
|
|
128
146
|
attr_reader is_void: bool
|
|
129
147
|
|
|
130
|
-
# : (String, Location, Array[Herb::Errors::Error], (Herb::AST::ERBIfNode | Herb::AST::ERBUnlessNode)
|
|
131
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::AST::ERBIfNode | Herb::AST::ERBUnlessNode
|
|
148
|
+
# : (String, Location, Array[Herb::Errors::Error], (Herb::AST::ERBIfNode | Herb::AST::ERBUnlessNode)?, Herb::Token?, bool) -> void
|
|
149
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], (Herb::AST::ERBIfNode | Herb::AST::ERBUnlessNode)?, Herb::Token?, bool) -> void
|
|
150
|
+
|
|
151
|
+
# : () -> String
|
|
152
|
+
def self.type: () -> String
|
|
153
|
+
|
|
154
|
+
# : (?conditional: (Herb::AST::ERBIfNode | Herb::AST::ERBUnlessNode)?, ?tag_name: Herb::Token?, ?is_void: bool, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HTMLConditionalOpenTagNode
|
|
155
|
+
def self.build: (?conditional: (Herb::AST::ERBIfNode | Herb::AST::ERBUnlessNode)?, ?tag_name: Herb::Token?, ?is_void: bool, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HTMLConditionalOpenTagNode
|
|
132
156
|
|
|
133
157
|
# : () -> serialized_html_conditional_open_tag_node
|
|
134
158
|
def to_hash: () -> serialized_html_conditional_open_tag_node
|
|
@@ -166,8 +190,14 @@ module Herb
|
|
|
166
190
|
|
|
167
191
|
attr_reader tag_closing: Herb::Token?
|
|
168
192
|
|
|
169
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
170
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
193
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Array[Herb::AST::WhitespaceNode]?, Herb::Token?) -> void
|
|
194
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Array[Herb::AST::WhitespaceNode]?, Herb::Token?) -> void
|
|
195
|
+
|
|
196
|
+
# : () -> String
|
|
197
|
+
def self.type: () -> String
|
|
198
|
+
|
|
199
|
+
# : (?tag_opening: Herb::Token?, ?tag_name: Herb::Token?, ?children: Array[Herb::AST::WhitespaceNode]?, ?tag_closing: Herb::Token?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HTMLCloseTagNode
|
|
200
|
+
def self.build: (?tag_opening: Herb::Token?, ?tag_name: Herb::Token?, ?children: Array[Herb::AST::WhitespaceNode]?, ?tag_closing: Herb::Token?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HTMLCloseTagNode
|
|
171
201
|
|
|
172
202
|
# : () -> serialized_html_close_tag_node
|
|
173
203
|
def to_hash: () -> serialized_html_close_tag_node
|
|
@@ -196,8 +226,14 @@ module Herb
|
|
|
196
226
|
|
|
197
227
|
attr_reader tag_name: Herb::Token?
|
|
198
228
|
|
|
199
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token) -> void
|
|
200
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token) -> void
|
|
229
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?) -> void
|
|
230
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?) -> void
|
|
231
|
+
|
|
232
|
+
# : () -> String
|
|
233
|
+
def self.type: () -> String
|
|
234
|
+
|
|
235
|
+
# : (?tag_name: Herb::Token?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HTMLOmittedCloseTagNode
|
|
236
|
+
def self.build: (?tag_name: Herb::Token?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HTMLOmittedCloseTagNode
|
|
201
237
|
|
|
202
238
|
# : () -> serialized_html_omitted_close_tag_node
|
|
203
239
|
def to_hash: () -> serialized_html_omitted_close_tag_node
|
|
@@ -226,8 +262,14 @@ module Herb
|
|
|
226
262
|
|
|
227
263
|
attr_reader tag_name: Herb::Token?
|
|
228
264
|
|
|
229
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token) -> void
|
|
230
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token) -> void
|
|
265
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?) -> void
|
|
266
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?) -> void
|
|
267
|
+
|
|
268
|
+
# : () -> String
|
|
269
|
+
def self.type: () -> String
|
|
270
|
+
|
|
271
|
+
# : (?tag_name: Herb::Token?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HTMLVirtualCloseTagNode
|
|
272
|
+
def self.build: (?tag_name: Herb::Token?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HTMLVirtualCloseTagNode
|
|
231
273
|
|
|
232
274
|
# : () -> serialized_html_virtual_close_tag_node
|
|
233
275
|
def to_hash: () -> serialized_html_virtual_close_tag_node
|
|
@@ -265,14 +307,20 @@ module Herb
|
|
|
265
307
|
|
|
266
308
|
attr_reader body: Array[Herb::AST::Node]
|
|
267
309
|
|
|
268
|
-
|
|
310
|
+
attr_accessor close_tag: (Herb::AST::HTMLCloseTagNode | Herb::AST::HTMLOmittedCloseTagNode | Herb::AST::HTMLVirtualCloseTagNode | Herb::AST::ERBEndNode)?
|
|
269
311
|
|
|
270
312
|
attr_reader is_void: bool
|
|
271
313
|
|
|
272
314
|
attr_reader element_source: String?
|
|
273
315
|
|
|
274
|
-
# : (String, Location, Array[Herb::Errors::Error], (Herb::AST::HTMLOpenTagNode | Herb::AST::HTMLConditionalOpenTagNode | Herb::AST::ERBOpenTagNode)
|
|
275
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::AST::HTMLOpenTagNode | Herb::AST::HTMLConditionalOpenTagNode | Herb::AST::ERBOpenTagNode
|
|
316
|
+
# : (String, Location, Array[Herb::Errors::Error], (Herb::AST::HTMLOpenTagNode | Herb::AST::HTMLConditionalOpenTagNode | Herb::AST::ERBOpenTagNode)?, Herb::Token?, Array[Herb::AST::Node], (Herb::AST::HTMLCloseTagNode | Herb::AST::HTMLOmittedCloseTagNode | Herb::AST::HTMLVirtualCloseTagNode | Herb::AST::ERBEndNode)?, bool, String?) -> void
|
|
317
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], (Herb::AST::HTMLOpenTagNode | Herb::AST::HTMLConditionalOpenTagNode | Herb::AST::ERBOpenTagNode)?, Herb::Token?, Array[Herb::AST::Node], (Herb::AST::HTMLCloseTagNode | Herb::AST::HTMLOmittedCloseTagNode | Herb::AST::HTMLVirtualCloseTagNode | Herb::AST::ERBEndNode)?, bool, String?) -> void
|
|
318
|
+
|
|
319
|
+
# : () -> String
|
|
320
|
+
def self.type: () -> String
|
|
321
|
+
|
|
322
|
+
# : (?open_tag: (Herb::AST::HTMLOpenTagNode | Herb::AST::HTMLConditionalOpenTagNode | Herb::AST::ERBOpenTagNode)?, ?tag_name: Herb::Token?, ?body: Array[Herb::AST::Node], ?close_tag: (Herb::AST::HTMLCloseTagNode | Herb::AST::HTMLOmittedCloseTagNode | Herb::AST::HTMLVirtualCloseTagNode | Herb::AST::ERBEndNode)?, ?is_void: bool, ?element_source: String?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HTMLElementNode
|
|
323
|
+
def self.build: (?open_tag: (Herb::AST::HTMLOpenTagNode | Herb::AST::HTMLConditionalOpenTagNode | Herb::AST::ERBOpenTagNode)?, ?tag_name: Herb::Token?, ?body: Array[Herb::AST::Node], ?close_tag: (Herb::AST::HTMLCloseTagNode | Herb::AST::HTMLOmittedCloseTagNode | Herb::AST::HTMLVirtualCloseTagNode | Herb::AST::ERBEndNode)?, ?is_void: bool, ?element_source: String?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HTMLElementNode
|
|
276
324
|
|
|
277
325
|
# : () -> serialized_html_element_node
|
|
278
326
|
def to_hash: () -> serialized_html_element_node
|
|
@@ -322,8 +370,14 @@ module Herb
|
|
|
322
370
|
|
|
323
371
|
attr_reader element_source: String?
|
|
324
372
|
|
|
325
|
-
# : (String, Location, Array[Herb::Errors::Error], String
|
|
326
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], String
|
|
373
|
+
# : (String, Location, Array[Herb::Errors::Error], String?, (Herb::AST::ERBIfNode | Herb::AST::ERBUnlessNode)?, Herb::AST::HTMLOpenTagNode?, Array[Herb::AST::Node], (Herb::AST::HTMLCloseTagNode | Herb::AST::HTMLOmittedCloseTagNode)?, (Herb::AST::ERBIfNode | Herb::AST::ERBUnlessNode)?, Herb::Token?, String?) -> void
|
|
374
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], String?, (Herb::AST::ERBIfNode | Herb::AST::ERBUnlessNode)?, Herb::AST::HTMLOpenTagNode?, Array[Herb::AST::Node], (Herb::AST::HTMLCloseTagNode | Herb::AST::HTMLOmittedCloseTagNode)?, (Herb::AST::ERBIfNode | Herb::AST::ERBUnlessNode)?, Herb::Token?, String?) -> void
|
|
375
|
+
|
|
376
|
+
# : () -> String
|
|
377
|
+
def self.type: () -> String
|
|
378
|
+
|
|
379
|
+
# : (?condition: String?, ?open_conditional: (Herb::AST::ERBIfNode | Herb::AST::ERBUnlessNode)?, ?open_tag: Herb::AST::HTMLOpenTagNode?, ?body: Array[Herb::AST::Node], ?close_tag: (Herb::AST::HTMLCloseTagNode | Herb::AST::HTMLOmittedCloseTagNode)?, ?close_conditional: (Herb::AST::ERBIfNode | Herb::AST::ERBUnlessNode)?, ?tag_name: Herb::Token?, ?element_source: String?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HTMLConditionalElementNode
|
|
380
|
+
def self.build: (?condition: String?, ?open_conditional: (Herb::AST::ERBIfNode | Herb::AST::ERBUnlessNode)?, ?open_tag: Herb::AST::HTMLOpenTagNode?, ?body: Array[Herb::AST::Node], ?close_tag: (Herb::AST::HTMLCloseTagNode | Herb::AST::HTMLOmittedCloseTagNode)?, ?close_conditional: (Herb::AST::ERBIfNode | Herb::AST::ERBUnlessNode)?, ?tag_name: Herb::Token?, ?element_source: String?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HTMLConditionalElementNode
|
|
327
381
|
|
|
328
382
|
# : () -> serialized_html_conditional_element_node
|
|
329
383
|
def to_hash: () -> serialized_html_conditional_element_node
|
|
@@ -361,8 +415,14 @@ module Herb
|
|
|
361
415
|
|
|
362
416
|
attr_reader quoted: bool
|
|
363
417
|
|
|
364
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
365
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
418
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Array[Herb::AST::Node], Herb::Token?, bool) -> void
|
|
419
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Array[Herb::AST::Node], Herb::Token?, bool) -> void
|
|
420
|
+
|
|
421
|
+
# : () -> String
|
|
422
|
+
def self.type: () -> String
|
|
423
|
+
|
|
424
|
+
# : (?open_quote: Herb::Token?, ?children: Array[Herb::AST::Node], ?close_quote: Herb::Token?, ?quoted: bool, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HTMLAttributeValueNode
|
|
425
|
+
def self.build: (?open_quote: Herb::Token?, ?children: Array[Herb::AST::Node], ?close_quote: Herb::Token?, ?quoted: bool, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HTMLAttributeValueNode
|
|
366
426
|
|
|
367
427
|
# : () -> serialized_html_attribute_value_node
|
|
368
428
|
def to_hash: () -> serialized_html_attribute_value_node
|
|
@@ -384,15 +444,21 @@ module Herb
|
|
|
384
444
|
end
|
|
385
445
|
|
|
386
446
|
# : type serialized_html_attribute_name_node = {
|
|
387
|
-
# | children: Array[(Herb::AST::LiteralNode | Herb::AST::ERBContentNode)]?,
|
|
447
|
+
# | children: Array[(Herb::AST::LiteralNode | Herb::AST::ERBContentNode | Herb::AST::ERBCommentNode)]?,
|
|
388
448
|
# | }
|
|
389
449
|
class HTMLAttributeNameNode < Node
|
|
390
450
|
include Colors
|
|
391
451
|
|
|
392
|
-
attr_reader children: Array[Herb::AST::LiteralNode | Herb::AST::ERBContentNode]?
|
|
452
|
+
attr_reader children: Array[Herb::AST::LiteralNode | Herb::AST::ERBContentNode | Herb::AST::ERBCommentNode]?
|
|
453
|
+
|
|
454
|
+
# : (String, Location, Array[Herb::Errors::Error], Array[(Herb::AST::LiteralNode | Herb::AST::ERBContentNode | Herb::AST::ERBCommentNode)]?) -> void
|
|
455
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Array[Herb::AST::LiteralNode | Herb::AST::ERBContentNode | Herb::AST::ERBCommentNode]?) -> void
|
|
456
|
+
|
|
457
|
+
# : () -> String
|
|
458
|
+
def self.type: () -> String
|
|
393
459
|
|
|
394
|
-
# : (
|
|
395
|
-
def
|
|
460
|
+
# : (?children: Array[(Herb::AST::LiteralNode | Herb::AST::ERBContentNode | Herb::AST::ERBCommentNode)]?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HTMLAttributeNameNode
|
|
461
|
+
def self.build: (?children: Array[Herb::AST::LiteralNode | Herb::AST::ERBContentNode | Herb::AST::ERBCommentNode]?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HTMLAttributeNameNode
|
|
396
462
|
|
|
397
463
|
# : () -> serialized_html_attribute_name_node
|
|
398
464
|
def to_hash: () -> serialized_html_attribute_name_node
|
|
@@ -427,8 +493,14 @@ module Herb
|
|
|
427
493
|
|
|
428
494
|
attr_reader value: Herb::AST::HTMLAttributeValueNode?
|
|
429
495
|
|
|
430
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::AST::HTMLAttributeNameNode
|
|
431
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::AST::HTMLAttributeNameNode
|
|
496
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::AST::HTMLAttributeNameNode?, Herb::Token?, Herb::AST::HTMLAttributeValueNode?) -> void
|
|
497
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::AST::HTMLAttributeNameNode?, Herb::Token?, Herb::AST::HTMLAttributeValueNode?) -> void
|
|
498
|
+
|
|
499
|
+
# : () -> String
|
|
500
|
+
def self.type: () -> String
|
|
501
|
+
|
|
502
|
+
# : (?name: Herb::AST::HTMLAttributeNameNode?, ?equals: Herb::Token?, ?value: Herb::AST::HTMLAttributeValueNode?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HTMLAttributeNode
|
|
503
|
+
def self.build: (?name: Herb::AST::HTMLAttributeNameNode?, ?equals: Herb::Token?, ?value: Herb::AST::HTMLAttributeValueNode?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HTMLAttributeNode
|
|
432
504
|
|
|
433
505
|
# : () -> serialized_html_attribute_node
|
|
434
506
|
def to_hash: () -> serialized_html_attribute_node
|
|
@@ -457,8 +529,14 @@ module Herb
|
|
|
457
529
|
|
|
458
530
|
attr_reader content: String?
|
|
459
531
|
|
|
460
|
-
# : (String, Location, Array[Herb::Errors::Error], String) -> void
|
|
461
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], String) -> void
|
|
532
|
+
# : (String, Location, Array[Herb::Errors::Error], String?) -> void
|
|
533
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], String?) -> void
|
|
534
|
+
|
|
535
|
+
# : () -> String
|
|
536
|
+
def self.type: () -> String
|
|
537
|
+
|
|
538
|
+
# : (?content: String?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> RubyLiteralNode
|
|
539
|
+
def self.build: (?content: String?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> RubyLiteralNode
|
|
462
540
|
|
|
463
541
|
# : () -> serialized_ruby_literal_node
|
|
464
542
|
def to_hash: () -> serialized_ruby_literal_node
|
|
@@ -490,8 +568,14 @@ module Herb
|
|
|
490
568
|
|
|
491
569
|
attr_reader prefix: String?
|
|
492
570
|
|
|
493
|
-
# : (String, Location, Array[Herb::Errors::Error], String
|
|
494
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], String
|
|
571
|
+
# : (String, Location, Array[Herb::Errors::Error], String?, String?) -> void
|
|
572
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], String?, String?) -> void
|
|
573
|
+
|
|
574
|
+
# : () -> String
|
|
575
|
+
def self.type: () -> String
|
|
576
|
+
|
|
577
|
+
# : (?content: String?, ?prefix: String?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> RubyHTMLAttributesSplatNode
|
|
578
|
+
def self.build: (?content: String?, ?prefix: String?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> RubyHTMLAttributesSplatNode
|
|
495
579
|
|
|
496
580
|
# : () -> serialized_ruby_html_attributes_splat_node
|
|
497
581
|
def to_hash: () -> serialized_ruby_html_attributes_splat_node
|
|
@@ -532,8 +616,14 @@ module Herb
|
|
|
532
616
|
|
|
533
617
|
attr_reader children: Array[Herb::AST::Node]
|
|
534
618
|
|
|
535
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
536
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
619
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Array[Herb::AST::Node]) -> void
|
|
620
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Array[Herb::AST::Node]) -> void
|
|
621
|
+
|
|
622
|
+
# : () -> String
|
|
623
|
+
def self.type: () -> String
|
|
624
|
+
|
|
625
|
+
# : (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?tag_name: Herb::Token?, ?children: Array[Herb::AST::Node], ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBOpenTagNode
|
|
626
|
+
def self.build: (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?tag_name: Herb::Token?, ?children: Array[Herb::AST::Node], ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBOpenTagNode
|
|
537
627
|
|
|
538
628
|
# : () -> serialized_erb_open_tag_node
|
|
539
629
|
def to_hash: () -> serialized_erb_open_tag_node
|
|
@@ -562,8 +652,14 @@ module Herb
|
|
|
562
652
|
|
|
563
653
|
attr_reader content: String?
|
|
564
654
|
|
|
565
|
-
# : (String, Location, Array[Herb::Errors::Error], String) -> void
|
|
566
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], String) -> void
|
|
655
|
+
# : (String, Location, Array[Herb::Errors::Error], String?) -> void
|
|
656
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], String?) -> void
|
|
657
|
+
|
|
658
|
+
# : () -> String
|
|
659
|
+
def self.type: () -> String
|
|
660
|
+
|
|
661
|
+
# : (?content: String?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HTMLTextNode
|
|
662
|
+
def self.build: (?content: String?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HTMLTextNode
|
|
567
663
|
|
|
568
664
|
# : () -> serialized_html_text_node
|
|
569
665
|
def to_hash: () -> serialized_html_text_node
|
|
@@ -598,8 +694,14 @@ module Herb
|
|
|
598
694
|
|
|
599
695
|
attr_reader comment_end: Herb::Token?
|
|
600
696
|
|
|
601
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
602
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
697
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Array[Herb::AST::Node], Herb::Token?) -> void
|
|
698
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Array[Herb::AST::Node], Herb::Token?) -> void
|
|
699
|
+
|
|
700
|
+
# : () -> String
|
|
701
|
+
def self.type: () -> String
|
|
702
|
+
|
|
703
|
+
# : (?comment_start: Herb::Token?, ?children: Array[Herb::AST::Node], ?comment_end: Herb::Token?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HTMLCommentNode
|
|
704
|
+
def self.build: (?comment_start: Herb::Token?, ?children: Array[Herb::AST::Node], ?comment_end: Herb::Token?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HTMLCommentNode
|
|
603
705
|
|
|
604
706
|
# : () -> serialized_html_comment_node
|
|
605
707
|
def to_hash: () -> serialized_html_comment_node
|
|
@@ -634,8 +736,14 @@ module Herb
|
|
|
634
736
|
|
|
635
737
|
attr_reader tag_closing: Herb::Token?
|
|
636
738
|
|
|
637
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
638
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
739
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Array[Herb::AST::Node], Herb::Token?) -> void
|
|
740
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Array[Herb::AST::Node], Herb::Token?) -> void
|
|
741
|
+
|
|
742
|
+
# : () -> String
|
|
743
|
+
def self.type: () -> String
|
|
744
|
+
|
|
745
|
+
# : (?tag_opening: Herb::Token?, ?children: Array[Herb::AST::Node], ?tag_closing: Herb::Token?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HTMLDoctypeNode
|
|
746
|
+
def self.build: (?tag_opening: Herb::Token?, ?children: Array[Herb::AST::Node], ?tag_closing: Herb::Token?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HTMLDoctypeNode
|
|
639
747
|
|
|
640
748
|
# : () -> serialized_html_doctype_node
|
|
641
749
|
def to_hash: () -> serialized_html_doctype_node
|
|
@@ -670,8 +778,14 @@ module Herb
|
|
|
670
778
|
|
|
671
779
|
attr_reader tag_closing: Herb::Token?
|
|
672
780
|
|
|
673
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
674
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
781
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Array[Herb::AST::Node], Herb::Token?) -> void
|
|
782
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Array[Herb::AST::Node], Herb::Token?) -> void
|
|
783
|
+
|
|
784
|
+
# : () -> String
|
|
785
|
+
def self.type: () -> String
|
|
786
|
+
|
|
787
|
+
# : (?tag_opening: Herb::Token?, ?children: Array[Herb::AST::Node], ?tag_closing: Herb::Token?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> XMLDeclarationNode
|
|
788
|
+
def self.build: (?tag_opening: Herb::Token?, ?children: Array[Herb::AST::Node], ?tag_closing: Herb::Token?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> XMLDeclarationNode
|
|
675
789
|
|
|
676
790
|
# : () -> serialized_xml_declaration_node
|
|
677
791
|
def to_hash: () -> serialized_xml_declaration_node
|
|
@@ -692,6 +806,51 @@ module Herb
|
|
|
692
806
|
def tree_inspect: (?indent: Integer, ?depth: Integer, ?depth_limit: Integer) -> String
|
|
693
807
|
end
|
|
694
808
|
|
|
809
|
+
# : type serialized_xml_processing_instruction_node = {
|
|
810
|
+
# | tag_opening: Herb::Token?,
|
|
811
|
+
# | target: Herb::Token?,
|
|
812
|
+
# | children: Array[Herb::AST::Node],
|
|
813
|
+
# | tag_closing: Herb::Token?,
|
|
814
|
+
# | }
|
|
815
|
+
class XMLProcessingInstructionNode < Node
|
|
816
|
+
include Colors
|
|
817
|
+
|
|
818
|
+
attr_reader tag_opening: Herb::Token?
|
|
819
|
+
|
|
820
|
+
attr_reader target: Herb::Token?
|
|
821
|
+
|
|
822
|
+
attr_reader children: Array[Herb::AST::Node]
|
|
823
|
+
|
|
824
|
+
attr_reader tag_closing: Herb::Token?
|
|
825
|
+
|
|
826
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Array[Herb::AST::Node], Herb::Token?) -> void
|
|
827
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Array[Herb::AST::Node], Herb::Token?) -> void
|
|
828
|
+
|
|
829
|
+
# : () -> String
|
|
830
|
+
def self.type: () -> String
|
|
831
|
+
|
|
832
|
+
# : (?tag_opening: Herb::Token?, ?target: Herb::Token?, ?children: Array[Herb::AST::Node], ?tag_closing: Herb::Token?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> XMLProcessingInstructionNode
|
|
833
|
+
def self.build: (?tag_opening: Herb::Token?, ?target: Herb::Token?, ?children: Array[Herb::AST::Node], ?tag_closing: Herb::Token?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> XMLProcessingInstructionNode
|
|
834
|
+
|
|
835
|
+
# : () -> serialized_xml_processing_instruction_node
|
|
836
|
+
def to_hash: () -> serialized_xml_processing_instruction_node
|
|
837
|
+
|
|
838
|
+
# : (Visitor) -> void
|
|
839
|
+
def accept: (Visitor) -> void
|
|
840
|
+
|
|
841
|
+
# : () -> Array[Herb::AST::Node?]
|
|
842
|
+
def child_nodes: () -> Array[Herb::AST::Node?]
|
|
843
|
+
|
|
844
|
+
# : () -> Array[Herb::AST::Node]
|
|
845
|
+
def compact_child_nodes: () -> Array[Herb::AST::Node]
|
|
846
|
+
|
|
847
|
+
# : () -> String
|
|
848
|
+
def inspect: () -> String
|
|
849
|
+
|
|
850
|
+
# : (?indent: Integer, ?depth: Integer, ?depth_limit: Integer) -> String
|
|
851
|
+
def tree_inspect: (?indent: Integer, ?depth: Integer, ?depth_limit: Integer) -> String
|
|
852
|
+
end
|
|
853
|
+
|
|
695
854
|
# : type serialized_cdata_node = {
|
|
696
855
|
# | tag_opening: Herb::Token?,
|
|
697
856
|
# | children: Array[Herb::AST::Node],
|
|
@@ -706,8 +865,14 @@ module Herb
|
|
|
706
865
|
|
|
707
866
|
attr_reader tag_closing: Herb::Token?
|
|
708
867
|
|
|
709
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
710
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
868
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Array[Herb::AST::Node], Herb::Token?) -> void
|
|
869
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Array[Herb::AST::Node], Herb::Token?) -> void
|
|
870
|
+
|
|
871
|
+
# : () -> String
|
|
872
|
+
def self.type: () -> String
|
|
873
|
+
|
|
874
|
+
# : (?tag_opening: Herb::Token?, ?children: Array[Herb::AST::Node], ?tag_closing: Herb::Token?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> CDATANode
|
|
875
|
+
def self.build: (?tag_opening: Herb::Token?, ?children: Array[Herb::AST::Node], ?tag_closing: Herb::Token?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> CDATANode
|
|
711
876
|
|
|
712
877
|
# : () -> serialized_cdata_node
|
|
713
878
|
def to_hash: () -> serialized_cdata_node
|
|
@@ -736,8 +901,14 @@ module Herb
|
|
|
736
901
|
|
|
737
902
|
attr_reader value: Herb::Token?
|
|
738
903
|
|
|
739
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token) -> void
|
|
740
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token) -> void
|
|
904
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?) -> void
|
|
905
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?) -> void
|
|
906
|
+
|
|
907
|
+
# : () -> String
|
|
908
|
+
def self.type: () -> String
|
|
909
|
+
|
|
910
|
+
# : (?value: Herb::Token?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> WhitespaceNode
|
|
911
|
+
def self.build: (?value: Herb::Token?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> WhitespaceNode
|
|
741
912
|
|
|
742
913
|
# : () -> serialized_whitespace_node
|
|
743
914
|
def to_hash: () -> serialized_whitespace_node
|
|
@@ -784,8 +955,14 @@ module Herb
|
|
|
784
955
|
|
|
785
956
|
attr_reader prism_node: String?
|
|
786
957
|
|
|
787
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
788
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
958
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, nil, bool, bool, String?) -> void
|
|
959
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, nil, bool, bool, String?) -> void
|
|
960
|
+
|
|
961
|
+
# : () -> String
|
|
962
|
+
def self.type: () -> String
|
|
963
|
+
|
|
964
|
+
# : (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?analyzed_ruby: nil, ?parsed: bool, ?valid: bool, ?prism_node: String?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBContentNode
|
|
965
|
+
def self.build: (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?analyzed_ruby: nil, ?parsed: bool, ?valid: bool, ?prism_node: String?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBContentNode
|
|
789
966
|
|
|
790
967
|
# : () -> Prism::node?
|
|
791
968
|
def deserialized_prism_node: () -> Prism::node?
|
|
@@ -823,8 +1000,14 @@ module Herb
|
|
|
823
1000
|
|
|
824
1001
|
attr_reader tag_closing: Herb::Token?
|
|
825
1002
|
|
|
826
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
827
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1003
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?) -> void
|
|
1004
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?) -> void
|
|
1005
|
+
|
|
1006
|
+
# : () -> String
|
|
1007
|
+
def self.type: () -> String
|
|
1008
|
+
|
|
1009
|
+
# : (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBEndNode
|
|
1010
|
+
def self.build: (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBEndNode
|
|
828
1011
|
|
|
829
1012
|
# : () -> serialized_erb_end_node
|
|
830
1013
|
def to_hash: () -> serialized_erb_end_node
|
|
@@ -862,8 +1045,14 @@ module Herb
|
|
|
862
1045
|
|
|
863
1046
|
attr_reader statements: Array[Herb::AST::Node]
|
|
864
1047
|
|
|
865
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
866
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1048
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, Array[Herb::AST::Node]) -> void
|
|
1049
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, Array[Herb::AST::Node]) -> void
|
|
1050
|
+
|
|
1051
|
+
# : () -> String
|
|
1052
|
+
def self.type: () -> String
|
|
1053
|
+
|
|
1054
|
+
# : (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?statements: Array[Herb::AST::Node], ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBElseNode
|
|
1055
|
+
def self.build: (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?statements: Array[Herb::AST::Node], ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBElseNode
|
|
867
1056
|
|
|
868
1057
|
# : () -> serialized_erb_else_node
|
|
869
1058
|
def to_hash: () -> serialized_erb_else_node
|
|
@@ -913,8 +1102,14 @@ module Herb
|
|
|
913
1102
|
|
|
914
1103
|
attr_reader end_node: Herb::AST::ERBEndNode?
|
|
915
1104
|
|
|
916
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
917
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1105
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, Herb::Location?, String?, Array[Herb::AST::Node], (Herb::AST::ERBIfNode | Herb::AST::ERBElseNode)?, Herb::AST::ERBEndNode?) -> void
|
|
1106
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, Herb::Location?, String?, Array[Herb::AST::Node], (Herb::AST::ERBIfNode | Herb::AST::ERBElseNode)?, Herb::AST::ERBEndNode?) -> void
|
|
1107
|
+
|
|
1108
|
+
# : () -> String
|
|
1109
|
+
def self.type: () -> String
|
|
1110
|
+
|
|
1111
|
+
# : (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?then_keyword: Herb::Location?, ?prism_node: String?, ?statements: Array[Herb::AST::Node], ?subsequent: (Herb::AST::ERBIfNode | Herb::AST::ERBElseNode)?, ?end_node: Herb::AST::ERBEndNode?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBIfNode
|
|
1112
|
+
def self.build: (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?then_keyword: Herb::Location?, ?prism_node: String?, ?statements: Array[Herb::AST::Node], ?subsequent: (Herb::AST::ERBIfNode | Herb::AST::ERBElseNode)?, ?end_node: Herb::AST::ERBEndNode?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBIfNode
|
|
918
1113
|
|
|
919
1114
|
# : () -> Prism::node?
|
|
920
1115
|
def deserialized_prism_node: () -> Prism::node?
|
|
@@ -973,8 +1168,14 @@ module Herb
|
|
|
973
1168
|
|
|
974
1169
|
attr_reader end_node: Herb::AST::ERBEndNode?
|
|
975
1170
|
|
|
976
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
977
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1171
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, String?, Array[Herb::AST::Node], Array[Herb::AST::RubyParameterNode]?, Herb::AST::ERBRescueNode?, Herb::AST::ERBElseNode?, Herb::AST::ERBEnsureNode?, Herb::AST::ERBEndNode?) -> void
|
|
1172
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, String?, Array[Herb::AST::Node], Array[Herb::AST::RubyParameterNode]?, Herb::AST::ERBRescueNode?, Herb::AST::ERBElseNode?, Herb::AST::ERBEnsureNode?, Herb::AST::ERBEndNode?) -> void
|
|
1173
|
+
|
|
1174
|
+
# : () -> String
|
|
1175
|
+
def self.type: () -> String
|
|
1176
|
+
|
|
1177
|
+
# : (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?prism_node: String?, ?body: Array[Herb::AST::Node], ?block_arguments: Array[Herb::AST::RubyParameterNode]?, ?rescue_clause: Herb::AST::ERBRescueNode?, ?else_clause: Herb::AST::ERBElseNode?, ?ensure_clause: Herb::AST::ERBEnsureNode?, ?end_node: Herb::AST::ERBEndNode?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBBlockNode
|
|
1178
|
+
def self.build: (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?prism_node: String?, ?body: Array[Herb::AST::Node], ?block_arguments: Array[Herb::AST::RubyParameterNode]?, ?rescue_clause: Herb::AST::ERBRescueNode?, ?else_clause: Herb::AST::ERBElseNode?, ?ensure_clause: Herb::AST::ERBEnsureNode?, ?end_node: Herb::AST::ERBEndNode?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBBlockNode
|
|
978
1179
|
|
|
979
1180
|
# : () -> Prism::node?
|
|
980
1181
|
def deserialized_prism_node: () -> Prism::node?
|
|
@@ -998,6 +1199,87 @@ module Herb
|
|
|
998
1199
|
def tree_inspect: (?indent: Integer, ?depth: Integer, ?depth_limit: Integer) -> String
|
|
999
1200
|
end
|
|
1000
1201
|
|
|
1202
|
+
# : type serialized_erb_iteration_block_node = {
|
|
1203
|
+
# | tag_opening: Herb::Token?,
|
|
1204
|
+
# | content: Herb::Token?,
|
|
1205
|
+
# | tag_closing: Herb::Token?,
|
|
1206
|
+
# | prism_node: String?,
|
|
1207
|
+
# | receiver: Herb::Token?,
|
|
1208
|
+
# | call_operator: Herb::Token?,
|
|
1209
|
+
# | message: Herb::Token?,
|
|
1210
|
+
# | arguments: Array[Herb::AST::RubyLiteralNode]?,
|
|
1211
|
+
# | block_opening: Herb::Token?,
|
|
1212
|
+
# | body: Array[Herb::AST::Node],
|
|
1213
|
+
# | block_arguments: Array[Herb::AST::RubyParameterNode]?,
|
|
1214
|
+
# | rescue_clause: Herb::AST::ERBRescueNode?,
|
|
1215
|
+
# | else_clause: Herb::AST::ERBElseNode?,
|
|
1216
|
+
# | ensure_clause: Herb::AST::ERBEnsureNode?,
|
|
1217
|
+
# | end_node: Herb::AST::ERBEndNode?,
|
|
1218
|
+
# | }
|
|
1219
|
+
class ERBIterationBlockNode < Node
|
|
1220
|
+
include Colors
|
|
1221
|
+
|
|
1222
|
+
attr_reader tag_opening: Herb::Token?
|
|
1223
|
+
|
|
1224
|
+
attr_reader content: Herb::Token?
|
|
1225
|
+
|
|
1226
|
+
attr_reader tag_closing: Herb::Token?
|
|
1227
|
+
|
|
1228
|
+
attr_reader prism_node: String?
|
|
1229
|
+
|
|
1230
|
+
attr_reader receiver: Herb::Token?
|
|
1231
|
+
|
|
1232
|
+
attr_reader call_operator: Herb::Token?
|
|
1233
|
+
|
|
1234
|
+
attr_reader message: Herb::Token?
|
|
1235
|
+
|
|
1236
|
+
attr_reader arguments: Array[Herb::AST::RubyLiteralNode]?
|
|
1237
|
+
|
|
1238
|
+
attr_reader block_opening: Herb::Token?
|
|
1239
|
+
|
|
1240
|
+
attr_reader body: Array[Herb::AST::Node]
|
|
1241
|
+
|
|
1242
|
+
attr_reader block_arguments: Array[Herb::AST::RubyParameterNode]?
|
|
1243
|
+
|
|
1244
|
+
attr_reader rescue_clause: Herb::AST::ERBRescueNode?
|
|
1245
|
+
|
|
1246
|
+
attr_reader else_clause: Herb::AST::ERBElseNode?
|
|
1247
|
+
|
|
1248
|
+
attr_reader ensure_clause: Herb::AST::ERBEnsureNode?
|
|
1249
|
+
|
|
1250
|
+
attr_reader end_node: Herb::AST::ERBEndNode?
|
|
1251
|
+
|
|
1252
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, String?, Herb::Token?, Herb::Token?, Herb::Token?, Array[Herb::AST::RubyLiteralNode]?, Herb::Token?, Array[Herb::AST::Node], Array[Herb::AST::RubyParameterNode]?, Herb::AST::ERBRescueNode?, Herb::AST::ERBElseNode?, Herb::AST::ERBEnsureNode?, Herb::AST::ERBEndNode?) -> void
|
|
1253
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, String?, Herb::Token?, Herb::Token?, Herb::Token?, Array[Herb::AST::RubyLiteralNode]?, Herb::Token?, Array[Herb::AST::Node], Array[Herb::AST::RubyParameterNode]?, Herb::AST::ERBRescueNode?, Herb::AST::ERBElseNode?, Herb::AST::ERBEnsureNode?, Herb::AST::ERBEndNode?) -> void
|
|
1254
|
+
|
|
1255
|
+
# : () -> String
|
|
1256
|
+
def self.type: () -> String
|
|
1257
|
+
|
|
1258
|
+
# : (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?prism_node: String?, ?receiver: Herb::Token?, ?call_operator: Herb::Token?, ?message: Herb::Token?, ?arguments: Array[Herb::AST::RubyLiteralNode]?, ?block_opening: Herb::Token?, ?body: Array[Herb::AST::Node], ?block_arguments: Array[Herb::AST::RubyParameterNode]?, ?rescue_clause: Herb::AST::ERBRescueNode?, ?else_clause: Herb::AST::ERBElseNode?, ?ensure_clause: Herb::AST::ERBEnsureNode?, ?end_node: Herb::AST::ERBEndNode?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBIterationBlockNode
|
|
1259
|
+
def self.build: (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?prism_node: String?, ?receiver: Herb::Token?, ?call_operator: Herb::Token?, ?message: Herb::Token?, ?arguments: Array[Herb::AST::RubyLiteralNode]?, ?block_opening: Herb::Token?, ?body: Array[Herb::AST::Node], ?block_arguments: Array[Herb::AST::RubyParameterNode]?, ?rescue_clause: Herb::AST::ERBRescueNode?, ?else_clause: Herb::AST::ERBElseNode?, ?ensure_clause: Herb::AST::ERBEnsureNode?, ?end_node: Herb::AST::ERBEndNode?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBIterationBlockNode
|
|
1260
|
+
|
|
1261
|
+
# : () -> Prism::node?
|
|
1262
|
+
def deserialized_prism_node: () -> Prism::node?
|
|
1263
|
+
|
|
1264
|
+
# : () -> serialized_erb_iteration_block_node
|
|
1265
|
+
def to_hash: () -> serialized_erb_iteration_block_node
|
|
1266
|
+
|
|
1267
|
+
# : (Visitor) -> void
|
|
1268
|
+
def accept: (Visitor) -> void
|
|
1269
|
+
|
|
1270
|
+
# : () -> Array[Herb::AST::Node?]
|
|
1271
|
+
def child_nodes: () -> Array[Herb::AST::Node?]
|
|
1272
|
+
|
|
1273
|
+
# : () -> Array[Herb::AST::Node]
|
|
1274
|
+
def compact_child_nodes: () -> Array[Herb::AST::Node]
|
|
1275
|
+
|
|
1276
|
+
# : () -> String
|
|
1277
|
+
def inspect: () -> String
|
|
1278
|
+
|
|
1279
|
+
# : (?indent: Integer, ?depth: Integer, ?depth_limit: Integer) -> String
|
|
1280
|
+
def tree_inspect: (?indent: Integer, ?depth: Integer, ?depth_limit: Integer) -> String
|
|
1281
|
+
end
|
|
1282
|
+
|
|
1001
1283
|
# : type serialized_erb_when_node = {
|
|
1002
1284
|
# | tag_opening: Herb::Token?,
|
|
1003
1285
|
# | content: Herb::Token?,
|
|
@@ -1018,8 +1300,14 @@ module Herb
|
|
|
1018
1300
|
|
|
1019
1301
|
attr_reader statements: Array[Herb::AST::Node]
|
|
1020
1302
|
|
|
1021
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1022
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1303
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, Herb::Location?, Array[Herb::AST::Node]) -> void
|
|
1304
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, Herb::Location?, Array[Herb::AST::Node]) -> void
|
|
1305
|
+
|
|
1306
|
+
# : () -> String
|
|
1307
|
+
def self.type: () -> String
|
|
1308
|
+
|
|
1309
|
+
# : (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?then_keyword: Herb::Location?, ?statements: Array[Herb::AST::Node], ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBWhenNode
|
|
1310
|
+
def self.build: (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?then_keyword: Herb::Location?, ?statements: Array[Herb::AST::Node], ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBWhenNode
|
|
1023
1311
|
|
|
1024
1312
|
# : () -> serialized_erb_when_node
|
|
1025
1313
|
def to_hash: () -> serialized_erb_when_node
|
|
@@ -1069,8 +1357,14 @@ module Herb
|
|
|
1069
1357
|
|
|
1070
1358
|
attr_reader end_node: Herb::AST::ERBEndNode?
|
|
1071
1359
|
|
|
1072
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1073
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1360
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, Array[Herb::AST::Node], String?, Array[Herb::AST::ERBWhenNode], Herb::AST::ERBElseNode?, Herb::AST::ERBEndNode?) -> void
|
|
1361
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, Array[Herb::AST::Node], String?, Array[Herb::AST::ERBWhenNode], Herb::AST::ERBElseNode?, Herb::AST::ERBEndNode?) -> void
|
|
1362
|
+
|
|
1363
|
+
# : () -> String
|
|
1364
|
+
def self.type: () -> String
|
|
1365
|
+
|
|
1366
|
+
# : (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?children: Array[Herb::AST::Node], ?prism_node: String?, ?conditions: Array[Herb::AST::ERBWhenNode], ?else_clause: Herb::AST::ERBElseNode?, ?end_node: Herb::AST::ERBEndNode?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBCaseNode
|
|
1367
|
+
def self.build: (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?children: Array[Herb::AST::Node], ?prism_node: String?, ?conditions: Array[Herb::AST::ERBWhenNode], ?else_clause: Herb::AST::ERBElseNode?, ?end_node: Herb::AST::ERBEndNode?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBCaseNode
|
|
1074
1368
|
|
|
1075
1369
|
# : () -> Prism::node?
|
|
1076
1370
|
def deserialized_prism_node: () -> Prism::node?
|
|
@@ -1123,8 +1417,14 @@ module Herb
|
|
|
1123
1417
|
|
|
1124
1418
|
attr_reader end_node: Herb::AST::ERBEndNode?
|
|
1125
1419
|
|
|
1126
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1127
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1420
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, Array[Herb::AST::Node], String?, Array[Herb::AST::ERBInNode], Herb::AST::ERBElseNode?, Herb::AST::ERBEndNode?) -> void
|
|
1421
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, Array[Herb::AST::Node], String?, Array[Herb::AST::ERBInNode], Herb::AST::ERBElseNode?, Herb::AST::ERBEndNode?) -> void
|
|
1422
|
+
|
|
1423
|
+
# : () -> String
|
|
1424
|
+
def self.type: () -> String
|
|
1425
|
+
|
|
1426
|
+
# : (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?children: Array[Herb::AST::Node], ?prism_node: String?, ?conditions: Array[Herb::AST::ERBInNode], ?else_clause: Herb::AST::ERBElseNode?, ?end_node: Herb::AST::ERBEndNode?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBCaseMatchNode
|
|
1427
|
+
def self.build: (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?children: Array[Herb::AST::Node], ?prism_node: String?, ?conditions: Array[Herb::AST::ERBInNode], ?else_clause: Herb::AST::ERBElseNode?, ?end_node: Herb::AST::ERBEndNode?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBCaseMatchNode
|
|
1128
1428
|
|
|
1129
1429
|
# : () -> Prism::node?
|
|
1130
1430
|
def deserialized_prism_node: () -> Prism::node?
|
|
@@ -1171,8 +1471,14 @@ module Herb
|
|
|
1171
1471
|
|
|
1172
1472
|
attr_reader end_node: Herb::AST::ERBEndNode?
|
|
1173
1473
|
|
|
1174
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1175
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1474
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, String?, Array[Herb::AST::Node], Herb::AST::ERBEndNode?) -> void
|
|
1475
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, String?, Array[Herb::AST::Node], Herb::AST::ERBEndNode?) -> void
|
|
1476
|
+
|
|
1477
|
+
# : () -> String
|
|
1478
|
+
def self.type: () -> String
|
|
1479
|
+
|
|
1480
|
+
# : (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?prism_node: String?, ?statements: Array[Herb::AST::Node], ?end_node: Herb::AST::ERBEndNode?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBWhileNode
|
|
1481
|
+
def self.build: (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?prism_node: String?, ?statements: Array[Herb::AST::Node], ?end_node: Herb::AST::ERBEndNode?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBWhileNode
|
|
1176
1482
|
|
|
1177
1483
|
# : () -> Prism::node?
|
|
1178
1484
|
def deserialized_prism_node: () -> Prism::node?
|
|
@@ -1219,8 +1525,14 @@ module Herb
|
|
|
1219
1525
|
|
|
1220
1526
|
attr_reader end_node: Herb::AST::ERBEndNode?
|
|
1221
1527
|
|
|
1222
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1223
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1528
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, String?, Array[Herb::AST::Node], Herb::AST::ERBEndNode?) -> void
|
|
1529
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, String?, Array[Herb::AST::Node], Herb::AST::ERBEndNode?) -> void
|
|
1530
|
+
|
|
1531
|
+
# : () -> String
|
|
1532
|
+
def self.type: () -> String
|
|
1533
|
+
|
|
1534
|
+
# : (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?prism_node: String?, ?statements: Array[Herb::AST::Node], ?end_node: Herb::AST::ERBEndNode?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBUntilNode
|
|
1535
|
+
def self.build: (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?prism_node: String?, ?statements: Array[Herb::AST::Node], ?end_node: Herb::AST::ERBEndNode?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBUntilNode
|
|
1224
1536
|
|
|
1225
1537
|
# : () -> Prism::node?
|
|
1226
1538
|
def deserialized_prism_node: () -> Prism::node?
|
|
@@ -1267,8 +1579,14 @@ module Herb
|
|
|
1267
1579
|
|
|
1268
1580
|
attr_reader end_node: Herb::AST::ERBEndNode?
|
|
1269
1581
|
|
|
1270
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1271
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1582
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, String?, Array[Herb::AST::Node], Herb::AST::ERBEndNode?) -> void
|
|
1583
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, String?, Array[Herb::AST::Node], Herb::AST::ERBEndNode?) -> void
|
|
1584
|
+
|
|
1585
|
+
# : () -> String
|
|
1586
|
+
def self.type: () -> String
|
|
1587
|
+
|
|
1588
|
+
# : (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?prism_node: String?, ?statements: Array[Herb::AST::Node], ?end_node: Herb::AST::ERBEndNode?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBForNode
|
|
1589
|
+
def self.build: (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?prism_node: String?, ?statements: Array[Herb::AST::Node], ?end_node: Herb::AST::ERBEndNode?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBForNode
|
|
1272
1590
|
|
|
1273
1591
|
# : () -> Prism::node?
|
|
1274
1592
|
def deserialized_prism_node: () -> Prism::node?
|
|
@@ -1312,8 +1630,14 @@ module Herb
|
|
|
1312
1630
|
|
|
1313
1631
|
attr_reader subsequent: Herb::AST::ERBRescueNode?
|
|
1314
1632
|
|
|
1315
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1316
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1633
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, Array[Herb::AST::Node], Herb::AST::ERBRescueNode?) -> void
|
|
1634
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, Array[Herb::AST::Node], Herb::AST::ERBRescueNode?) -> void
|
|
1635
|
+
|
|
1636
|
+
# : () -> String
|
|
1637
|
+
def self.type: () -> String
|
|
1638
|
+
|
|
1639
|
+
# : (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?statements: Array[Herb::AST::Node], ?subsequent: Herb::AST::ERBRescueNode?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBRescueNode
|
|
1640
|
+
def self.build: (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?statements: Array[Herb::AST::Node], ?subsequent: Herb::AST::ERBRescueNode?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBRescueNode
|
|
1317
1641
|
|
|
1318
1642
|
# : () -> serialized_erb_rescue_node
|
|
1319
1643
|
def to_hash: () -> serialized_erb_rescue_node
|
|
@@ -1351,8 +1675,14 @@ module Herb
|
|
|
1351
1675
|
|
|
1352
1676
|
attr_reader statements: Array[Herb::AST::Node]
|
|
1353
1677
|
|
|
1354
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1355
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1678
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, Array[Herb::AST::Node]) -> void
|
|
1679
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, Array[Herb::AST::Node]) -> void
|
|
1680
|
+
|
|
1681
|
+
# : () -> String
|
|
1682
|
+
def self.type: () -> String
|
|
1683
|
+
|
|
1684
|
+
# : (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?statements: Array[Herb::AST::Node], ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBEnsureNode
|
|
1685
|
+
def self.build: (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?statements: Array[Herb::AST::Node], ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBEnsureNode
|
|
1356
1686
|
|
|
1357
1687
|
# : () -> serialized_erb_ensure_node
|
|
1358
1688
|
def to_hash: () -> serialized_erb_ensure_node
|
|
@@ -1405,8 +1735,14 @@ module Herb
|
|
|
1405
1735
|
|
|
1406
1736
|
attr_reader end_node: Herb::AST::ERBEndNode?
|
|
1407
1737
|
|
|
1408
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1409
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1738
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, String?, Array[Herb::AST::Node], Herb::AST::ERBRescueNode?, Herb::AST::ERBElseNode?, Herb::AST::ERBEnsureNode?, Herb::AST::ERBEndNode?) -> void
|
|
1739
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, String?, Array[Herb::AST::Node], Herb::AST::ERBRescueNode?, Herb::AST::ERBElseNode?, Herb::AST::ERBEnsureNode?, Herb::AST::ERBEndNode?) -> void
|
|
1740
|
+
|
|
1741
|
+
# : () -> String
|
|
1742
|
+
def self.type: () -> String
|
|
1743
|
+
|
|
1744
|
+
# : (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?prism_node: String?, ?statements: Array[Herb::AST::Node], ?rescue_clause: Herb::AST::ERBRescueNode?, ?else_clause: Herb::AST::ERBElseNode?, ?ensure_clause: Herb::AST::ERBEnsureNode?, ?end_node: Herb::AST::ERBEndNode?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBBeginNode
|
|
1745
|
+
def self.build: (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?prism_node: String?, ?statements: Array[Herb::AST::Node], ?rescue_clause: Herb::AST::ERBRescueNode?, ?else_clause: Herb::AST::ERBElseNode?, ?ensure_clause: Herb::AST::ERBEnsureNode?, ?end_node: Herb::AST::ERBEndNode?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBBeginNode
|
|
1410
1746
|
|
|
1411
1747
|
# : () -> Prism::node?
|
|
1412
1748
|
def deserialized_prism_node: () -> Prism::node?
|
|
@@ -1459,8 +1795,14 @@ module Herb
|
|
|
1459
1795
|
|
|
1460
1796
|
attr_reader end_node: Herb::AST::ERBEndNode?
|
|
1461
1797
|
|
|
1462
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1463
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1798
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, Herb::Location?, String?, Array[Herb::AST::Node], Herb::AST::ERBElseNode?, Herb::AST::ERBEndNode?) -> void
|
|
1799
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, Herb::Location?, String?, Array[Herb::AST::Node], Herb::AST::ERBElseNode?, Herb::AST::ERBEndNode?) -> void
|
|
1800
|
+
|
|
1801
|
+
# : () -> String
|
|
1802
|
+
def self.type: () -> String
|
|
1803
|
+
|
|
1804
|
+
# : (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?then_keyword: Herb::Location?, ?prism_node: String?, ?statements: Array[Herb::AST::Node], ?else_clause: Herb::AST::ERBElseNode?, ?end_node: Herb::AST::ERBEndNode?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBUnlessNode
|
|
1805
|
+
def self.build: (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?then_keyword: Herb::Location?, ?prism_node: String?, ?statements: Array[Herb::AST::Node], ?else_clause: Herb::AST::ERBElseNode?, ?end_node: Herb::AST::ERBEndNode?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBUnlessNode
|
|
1464
1806
|
|
|
1465
1807
|
# : () -> Prism::node?
|
|
1466
1808
|
def deserialized_prism_node: () -> Prism::node?
|
|
@@ -1495,8 +1837,14 @@ module Herb
|
|
|
1495
1837
|
|
|
1496
1838
|
attr_reader value: Herb::AST::RubyLiteralNode?
|
|
1497
1839
|
|
|
1498
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1499
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1840
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::AST::RubyLiteralNode?) -> void
|
|
1841
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::AST::RubyLiteralNode?) -> void
|
|
1842
|
+
|
|
1843
|
+
# : () -> String
|
|
1844
|
+
def self.type: () -> String
|
|
1845
|
+
|
|
1846
|
+
# : (?name: Herb::Token?, ?value: Herb::AST::RubyLiteralNode?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> RubyRenderLocalNode
|
|
1847
|
+
def self.build: (?name: Herb::Token?, ?value: Herb::AST::RubyLiteralNode?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> RubyRenderLocalNode
|
|
1500
1848
|
|
|
1501
1849
|
# : () -> serialized_ruby_render_local_node
|
|
1502
1850
|
def to_hash: () -> serialized_ruby_render_local_node
|
|
@@ -1536,6 +1884,8 @@ module Herb
|
|
|
1536
1884
|
# | handlers: Herb::Token?,
|
|
1537
1885
|
# | content_type: Herb::Token?,
|
|
1538
1886
|
# | locals: Array[Herb::AST::RubyRenderLocalNode]?,
|
|
1887
|
+
# | state: Array[Herb::AST::HerbStateDeclarationNode]?,
|
|
1888
|
+
# | state_location: Herb::Location?,
|
|
1539
1889
|
# | }
|
|
1540
1890
|
class RubyRenderKeywordsNode < Node
|
|
1541
1891
|
include Colors
|
|
@@ -1576,8 +1926,18 @@ module Herb
|
|
|
1576
1926
|
|
|
1577
1927
|
attr_reader locals: Array[Herb::AST::RubyRenderLocalNode]?
|
|
1578
1928
|
|
|
1579
|
-
|
|
1580
|
-
|
|
1929
|
+
attr_reader state: Array[Herb::AST::HerbStateDeclarationNode]?
|
|
1930
|
+
|
|
1931
|
+
attr_reader state_location: Herb::Location?
|
|
1932
|
+
|
|
1933
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Array[Herb::AST::RubyRenderLocalNode]?, Array[Herb::AST::HerbStateDeclarationNode]?, Herb::Location?) -> void
|
|
1934
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Array[Herb::AST::RubyRenderLocalNode]?, Array[Herb::AST::HerbStateDeclarationNode]?, Herb::Location?) -> void
|
|
1935
|
+
|
|
1936
|
+
# : () -> String
|
|
1937
|
+
def self.type: () -> String
|
|
1938
|
+
|
|
1939
|
+
# : (?partial: Herb::Token?, ?template_path: Herb::Token?, ?layout: Herb::Token?, ?file: Herb::Token?, ?inline_template: Herb::Token?, ?body: Herb::Token?, ?plain: Herb::Token?, ?html: Herb::Token?, ?renderable: Herb::Token?, ?collection: Herb::Token?, ?object: Herb::Token?, ?as_name: Herb::Token?, ?spacer_template: Herb::Token?, ?formats: Herb::Token?, ?variants: Herb::Token?, ?handlers: Herb::Token?, ?content_type: Herb::Token?, ?locals: Array[Herb::AST::RubyRenderLocalNode]?, ?state: Array[Herb::AST::HerbStateDeclarationNode]?, ?state_location: Herb::Location?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> RubyRenderKeywordsNode
|
|
1940
|
+
def self.build: (?partial: Herb::Token?, ?template_path: Herb::Token?, ?layout: Herb::Token?, ?file: Herb::Token?, ?inline_template: Herb::Token?, ?body: Herb::Token?, ?plain: Herb::Token?, ?html: Herb::Token?, ?renderable: Herb::Token?, ?collection: Herb::Token?, ?object: Herb::Token?, ?as_name: Herb::Token?, ?spacer_template: Herb::Token?, ?formats: Herb::Token?, ?variants: Herb::Token?, ?handlers: Herb::Token?, ?content_type: Herb::Token?, ?locals: Array[Herb::AST::RubyRenderLocalNode]?, ?state: Array[Herb::AST::HerbStateDeclarationNode]?, ?state_location: Herb::Location?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> RubyRenderKeywordsNode
|
|
1581
1941
|
|
|
1582
1942
|
# : () -> serialized_ruby_render_keywords_node
|
|
1583
1943
|
def to_hash: () -> serialized_ruby_render_keywords_node
|
|
@@ -1639,8 +1999,14 @@ module Herb
|
|
|
1639
1999
|
|
|
1640
2000
|
attr_reader end_node: Herb::AST::ERBEndNode?
|
|
1641
2001
|
|
|
1642
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1643
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
2002
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, nil, String?, Herb::AST::RubyRenderKeywordsNode?, Array[Herb::AST::Node], Array[Herb::AST::RubyParameterNode]?, Herb::AST::ERBRescueNode?, Herb::AST::ERBElseNode?, Herb::AST::ERBEnsureNode?, Herb::AST::ERBEndNode?) -> void
|
|
2003
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, nil, String?, Herb::AST::RubyRenderKeywordsNode?, Array[Herb::AST::Node], Array[Herb::AST::RubyParameterNode]?, Herb::AST::ERBRescueNode?, Herb::AST::ERBElseNode?, Herb::AST::ERBEnsureNode?, Herb::AST::ERBEndNode?) -> void
|
|
2004
|
+
|
|
2005
|
+
# : () -> String
|
|
2006
|
+
def self.type: () -> String
|
|
2007
|
+
|
|
2008
|
+
# : (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?analyzed_ruby: nil, ?prism_node: String?, ?keywords: Herb::AST::RubyRenderKeywordsNode?, ?body: Array[Herb::AST::Node], ?block_arguments: Array[Herb::AST::RubyParameterNode]?, ?rescue_clause: Herb::AST::ERBRescueNode?, ?else_clause: Herb::AST::ERBElseNode?, ?ensure_clause: Herb::AST::ERBEnsureNode?, ?end_node: Herb::AST::ERBEndNode?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBRenderNode
|
|
2009
|
+
def self.build: (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?analyzed_ruby: nil, ?prism_node: String?, ?keywords: Herb::AST::RubyRenderKeywordsNode?, ?body: Array[Herb::AST::Node], ?block_arguments: Array[Herb::AST::RubyParameterNode]?, ?rescue_clause: Herb::AST::ERBRescueNode?, ?else_clause: Herb::AST::ERBElseNode?, ?ensure_clause: Herb::AST::ERBEnsureNode?, ?end_node: Herb::AST::ERBEndNode?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBRenderNode
|
|
1644
2010
|
|
|
1645
2011
|
# : () -> Prism::node?
|
|
1646
2012
|
def deserialized_prism_node: () -> Prism::node?
|
|
@@ -1681,8 +2047,14 @@ module Herb
|
|
|
1681
2047
|
|
|
1682
2048
|
attr_reader required: bool
|
|
1683
2049
|
|
|
1684
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1685
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
2050
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::AST::RubyLiteralNode?, String?, bool) -> void
|
|
2051
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::AST::RubyLiteralNode?, String?, bool) -> void
|
|
2052
|
+
|
|
2053
|
+
# : () -> String
|
|
2054
|
+
def self.type: () -> String
|
|
2055
|
+
|
|
2056
|
+
# : (?name: Herb::Token?, ?default_value: Herb::AST::RubyLiteralNode?, ?kind: String?, ?required: bool, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> RubyParameterNode
|
|
2057
|
+
def self.build: (?name: Herb::Token?, ?default_value: Herb::AST::RubyLiteralNode?, ?kind: String?, ?required: bool, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> RubyParameterNode
|
|
1686
2058
|
|
|
1687
2059
|
# : () -> serialized_ruby_parameter_node
|
|
1688
2060
|
def to_hash: () -> serialized_ruby_parameter_node
|
|
@@ -1726,8 +2098,14 @@ module Herb
|
|
|
1726
2098
|
|
|
1727
2099
|
attr_reader locals: Array[Herb::AST::RubyParameterNode]?
|
|
1728
2100
|
|
|
1729
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1730
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
2101
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, nil, String?, Array[Herb::AST::RubyParameterNode]?) -> void
|
|
2102
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, nil, String?, Array[Herb::AST::RubyParameterNode]?) -> void
|
|
2103
|
+
|
|
2104
|
+
# : () -> String
|
|
2105
|
+
def self.type: () -> String
|
|
2106
|
+
|
|
2107
|
+
# : (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?analyzed_ruby: nil, ?prism_node: String?, ?locals: Array[Herb::AST::RubyParameterNode]?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBStrictLocalsNode
|
|
2108
|
+
def self.build: (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?analyzed_ruby: nil, ?prism_node: String?, ?locals: Array[Herb::AST::RubyParameterNode]?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBStrictLocalsNode
|
|
1731
2109
|
|
|
1732
2110
|
# : () -> Prism::node?
|
|
1733
2111
|
def deserialized_prism_node: () -> Prism::node?
|
|
@@ -1765,8 +2143,14 @@ module Herb
|
|
|
1765
2143
|
|
|
1766
2144
|
attr_reader tag_closing: Herb::Token?
|
|
1767
2145
|
|
|
1768
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1769
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
2146
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?) -> void
|
|
2147
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?) -> void
|
|
2148
|
+
|
|
2149
|
+
# : () -> String
|
|
2150
|
+
def self.type: () -> String
|
|
2151
|
+
|
|
2152
|
+
# : (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBYieldNode
|
|
2153
|
+
def self.build: (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBYieldNode
|
|
1770
2154
|
|
|
1771
2155
|
# : () -> serialized_erb_yield_node
|
|
1772
2156
|
def to_hash: () -> serialized_erb_yield_node
|
|
@@ -1807,8 +2191,14 @@ module Herb
|
|
|
1807
2191
|
|
|
1808
2192
|
attr_reader statements: Array[Herb::AST::Node]
|
|
1809
2193
|
|
|
1810
|
-
# : (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
1811
|
-
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token
|
|
2194
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, Herb::Location?, Array[Herb::AST::Node]) -> void
|
|
2195
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, Herb::Location?, Array[Herb::AST::Node]) -> void
|
|
2196
|
+
|
|
2197
|
+
# : () -> String
|
|
2198
|
+
def self.type: () -> String
|
|
2199
|
+
|
|
2200
|
+
# : (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?then_keyword: Herb::Location?, ?statements: Array[Herb::AST::Node], ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBInNode
|
|
2201
|
+
def self.build: (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?then_keyword: Herb::Location?, ?statements: Array[Herb::AST::Node], ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBInNode
|
|
1812
2202
|
|
|
1813
2203
|
# : () -> serialized_erb_in_node
|
|
1814
2204
|
def to_hash: () -> serialized_erb_in_node
|
|
@@ -1828,5 +2218,188 @@ module Herb
|
|
|
1828
2218
|
# : (?indent: Integer, ?depth: Integer, ?depth_limit: Integer) -> String
|
|
1829
2219
|
def tree_inspect: (?indent: Integer, ?depth: Integer, ?depth_limit: Integer) -> String
|
|
1830
2220
|
end
|
|
2221
|
+
|
|
2222
|
+
# : type serialized_herb_directive_node = {
|
|
2223
|
+
# | tag_opening: Herb::Token?,
|
|
2224
|
+
# | content: Herb::Token?,
|
|
2225
|
+
# | tag_closing: Herb::Token?,
|
|
2226
|
+
# | key: Herb::Token?,
|
|
2227
|
+
# | arguments: Herb::Token?,
|
|
2228
|
+
# | }
|
|
2229
|
+
class HerbDirectiveNode < Node
|
|
2230
|
+
include Colors
|
|
2231
|
+
|
|
2232
|
+
attr_reader tag_opening: Herb::Token?
|
|
2233
|
+
|
|
2234
|
+
attr_reader content: Herb::Token?
|
|
2235
|
+
|
|
2236
|
+
attr_reader tag_closing: Herb::Token?
|
|
2237
|
+
|
|
2238
|
+
attr_reader key: Herb::Token?
|
|
2239
|
+
|
|
2240
|
+
attr_reader arguments: Herb::Token?
|
|
2241
|
+
|
|
2242
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?) -> void
|
|
2243
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?) -> void
|
|
2244
|
+
|
|
2245
|
+
# : () -> String
|
|
2246
|
+
def self.type: () -> String
|
|
2247
|
+
|
|
2248
|
+
# : (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?key: Herb::Token?, ?arguments: Herb::Token?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HerbDirectiveNode
|
|
2249
|
+
def self.build: (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?key: Herb::Token?, ?arguments: Herb::Token?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HerbDirectiveNode
|
|
2250
|
+
|
|
2251
|
+
# : () -> serialized_herb_directive_node
|
|
2252
|
+
def to_hash: () -> serialized_herb_directive_node
|
|
2253
|
+
|
|
2254
|
+
# : (Visitor) -> void
|
|
2255
|
+
def accept: (Visitor) -> void
|
|
2256
|
+
|
|
2257
|
+
# : () -> Array[Herb::AST::Node?]
|
|
2258
|
+
def child_nodes: () -> Array[Herb::AST::Node?]
|
|
2259
|
+
|
|
2260
|
+
# : () -> Array[Herb::AST::Node]
|
|
2261
|
+
def compact_child_nodes: () -> Array[Herb::AST::Node]
|
|
2262
|
+
|
|
2263
|
+
# : () -> String
|
|
2264
|
+
def inspect: () -> String
|
|
2265
|
+
|
|
2266
|
+
# : (?indent: Integer, ?depth: Integer, ?depth_limit: Integer) -> String
|
|
2267
|
+
def tree_inspect: (?indent: Integer, ?depth: Integer, ?depth_limit: Integer) -> String
|
|
2268
|
+
end
|
|
2269
|
+
|
|
2270
|
+
# : type serialized_herb_state_declaration_node = {
|
|
2271
|
+
# | name: Herb::Token?,
|
|
2272
|
+
# | default_value: Herb::AST::RubyLiteralNode?,
|
|
2273
|
+
# | kind: String?,
|
|
2274
|
+
# | }
|
|
2275
|
+
class HerbStateDeclarationNode < Node
|
|
2276
|
+
include Colors
|
|
2277
|
+
|
|
2278
|
+
attr_reader name: Herb::Token?
|
|
2279
|
+
|
|
2280
|
+
attr_reader default_value: Herb::AST::RubyLiteralNode?
|
|
2281
|
+
|
|
2282
|
+
attr_reader kind: String?
|
|
2283
|
+
|
|
2284
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::AST::RubyLiteralNode?, String?) -> void
|
|
2285
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::AST::RubyLiteralNode?, String?) -> void
|
|
2286
|
+
|
|
2287
|
+
# : () -> String
|
|
2288
|
+
def self.type: () -> String
|
|
2289
|
+
|
|
2290
|
+
# : (?name: Herb::Token?, ?default_value: Herb::AST::RubyLiteralNode?, ?kind: String?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HerbStateDeclarationNode
|
|
2291
|
+
def self.build: (?name: Herb::Token?, ?default_value: Herb::AST::RubyLiteralNode?, ?kind: String?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HerbStateDeclarationNode
|
|
2292
|
+
|
|
2293
|
+
# : () -> serialized_herb_state_declaration_node
|
|
2294
|
+
def to_hash: () -> serialized_herb_state_declaration_node
|
|
2295
|
+
|
|
2296
|
+
# : (Visitor) -> void
|
|
2297
|
+
def accept: (Visitor) -> void
|
|
2298
|
+
|
|
2299
|
+
# : () -> Array[Herb::AST::Node?]
|
|
2300
|
+
def child_nodes: () -> Array[Herb::AST::Node?]
|
|
2301
|
+
|
|
2302
|
+
# : () -> Array[Herb::AST::Node]
|
|
2303
|
+
def compact_child_nodes: () -> Array[Herb::AST::Node]
|
|
2304
|
+
|
|
2305
|
+
# : () -> String
|
|
2306
|
+
def inspect: () -> String
|
|
2307
|
+
|
|
2308
|
+
# : (?indent: Integer, ?depth: Integer, ?depth_limit: Integer) -> String
|
|
2309
|
+
def tree_inspect: (?indent: Integer, ?depth: Integer, ?depth_limit: Integer) -> String
|
|
2310
|
+
end
|
|
2311
|
+
|
|
2312
|
+
# : type serialized_herb_state_directive_node = {
|
|
2313
|
+
# | tag_opening: Herb::Token?,
|
|
2314
|
+
# | content: Herb::Token?,
|
|
2315
|
+
# | tag_closing: Herb::Token?,
|
|
2316
|
+
# | key: Herb::Token?,
|
|
2317
|
+
# | signature: Herb::Token?,
|
|
2318
|
+
# | states: Array[Herb::AST::HerbStateDeclarationNode]?,
|
|
2319
|
+
# | }
|
|
2320
|
+
class HerbStateDirectiveNode < Node
|
|
2321
|
+
include Colors
|
|
2322
|
+
|
|
2323
|
+
attr_reader tag_opening: Herb::Token?
|
|
2324
|
+
|
|
2325
|
+
attr_reader content: Herb::Token?
|
|
2326
|
+
|
|
2327
|
+
attr_reader tag_closing: Herb::Token?
|
|
2328
|
+
|
|
2329
|
+
attr_reader key: Herb::Token?
|
|
2330
|
+
|
|
2331
|
+
attr_reader signature: Herb::Token?
|
|
2332
|
+
|
|
2333
|
+
attr_reader states: Array[Herb::AST::HerbStateDeclarationNode]?
|
|
2334
|
+
|
|
2335
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Array[Herb::AST::HerbStateDeclarationNode]?) -> void
|
|
2336
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Herb::Token?, Array[Herb::AST::HerbStateDeclarationNode]?) -> void
|
|
2337
|
+
|
|
2338
|
+
# : () -> String
|
|
2339
|
+
def self.type: () -> String
|
|
2340
|
+
|
|
2341
|
+
# : (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?key: Herb::Token?, ?signature: Herb::Token?, ?states: Array[Herb::AST::HerbStateDeclarationNode]?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HerbStateDirectiveNode
|
|
2342
|
+
def self.build: (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?key: Herb::Token?, ?signature: Herb::Token?, ?states: Array[Herb::AST::HerbStateDeclarationNode]?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> HerbStateDirectiveNode
|
|
2343
|
+
|
|
2344
|
+
# : () -> serialized_herb_state_directive_node
|
|
2345
|
+
def to_hash: () -> serialized_herb_state_directive_node
|
|
2346
|
+
|
|
2347
|
+
# : (Visitor) -> void
|
|
2348
|
+
def accept: (Visitor) -> void
|
|
2349
|
+
|
|
2350
|
+
# : () -> Array[Herb::AST::Node?]
|
|
2351
|
+
def child_nodes: () -> Array[Herb::AST::Node?]
|
|
2352
|
+
|
|
2353
|
+
# : () -> Array[Herb::AST::Node]
|
|
2354
|
+
def compact_child_nodes: () -> Array[Herb::AST::Node]
|
|
2355
|
+
|
|
2356
|
+
# : () -> String
|
|
2357
|
+
def inspect: () -> String
|
|
2358
|
+
|
|
2359
|
+
# : (?indent: Integer, ?depth: Integer, ?depth_limit: Integer) -> String
|
|
2360
|
+
def tree_inspect: (?indent: Integer, ?depth: Integer, ?depth_limit: Integer) -> String
|
|
2361
|
+
end
|
|
2362
|
+
|
|
2363
|
+
# : type serialized_erb_comment_node = {
|
|
2364
|
+
# | tag_opening: Herb::Token?,
|
|
2365
|
+
# | content: Herb::Token?,
|
|
2366
|
+
# | tag_closing: Herb::Token?,
|
|
2367
|
+
# | }
|
|
2368
|
+
class ERBCommentNode < Node
|
|
2369
|
+
include Colors
|
|
2370
|
+
|
|
2371
|
+
attr_reader tag_opening: Herb::Token?
|
|
2372
|
+
|
|
2373
|
+
attr_reader content: Herb::Token?
|
|
2374
|
+
|
|
2375
|
+
attr_reader tag_closing: Herb::Token?
|
|
2376
|
+
|
|
2377
|
+
# : (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?) -> void
|
|
2378
|
+
def initialize: (String, Location, Array[Herb::Errors::Error], Herb::Token?, Herb::Token?, Herb::Token?) -> void
|
|
2379
|
+
|
|
2380
|
+
# : () -> String
|
|
2381
|
+
def self.type: () -> String
|
|
2382
|
+
|
|
2383
|
+
# : (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBCommentNode
|
|
2384
|
+
def self.build: (?tag_opening: Herb::Token?, ?content: Herb::Token?, ?tag_closing: Herb::Token?, ?location: Location, ?errors: Array[Herb::Errors::Error]) -> ERBCommentNode
|
|
2385
|
+
|
|
2386
|
+
# : () -> serialized_erb_comment_node
|
|
2387
|
+
def to_hash: () -> serialized_erb_comment_node
|
|
2388
|
+
|
|
2389
|
+
# : (Visitor) -> void
|
|
2390
|
+
def accept: (Visitor) -> void
|
|
2391
|
+
|
|
2392
|
+
# : () -> Array[Herb::AST::Node?]
|
|
2393
|
+
def child_nodes: () -> Array[Herb::AST::Node?]
|
|
2394
|
+
|
|
2395
|
+
# : () -> Array[Herb::AST::Node]
|
|
2396
|
+
def compact_child_nodes: () -> Array[Herb::AST::Node]
|
|
2397
|
+
|
|
2398
|
+
# : () -> String
|
|
2399
|
+
def inspect: () -> String
|
|
2400
|
+
|
|
2401
|
+
# : (?indent: Integer, ?depth: Integer, ?depth_limit: Integer) -> String
|
|
2402
|
+
def tree_inspect: (?indent: Integer, ?depth: Integer, ?depth_limit: Integer) -> String
|
|
2403
|
+
end
|
|
1831
2404
|
end
|
|
1832
2405
|
end
|