module Prism::LexCompat::Heredoc
A heredoc in this case is a list of tokens that belong to the body of the heredoc that should be appended onto the list of tokens when the heredoc closes.
Public Class Methods
(lex_compat_token opening) → (PlainHeredoc | DashHeredoc | DedentingHeredoc)
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-2.1.0-x86_64-linux-gnu/sig/generated/prism/lex_compat.rbs, line 144
def self.build: (lex_compat_token opening) -> (PlainHeredoc | DashHeredoc | DedentingHeredoc)
Here we will split between the two types of heredocs and return the object that will store their tokens.
: (lex_compat_token opening) -> (PlainHeredoc | DashHeredoc | DedentingHeredoc)