class SyntaxTree::Parser

def on_string_add(string, part)

Experimental RBS support (using type sampling data from the type_fusion project).

def on_string_add: (SyntaxTree::StringContent string, SyntaxTree::TStringContent part) -> untyped

This signature was generated using 13 samples from 1 application.

) -> StringContent
(StringEmbExpr | StringDVar | TStringContent) part
String string,
on_string_add: (
:call-seq:
def on_string_add(string, part)
  # Due to some eccentricities in how ripper works, you need this here in
  # case you have a syntax error with an embedded expression that doesn't
  # finish, as in: "#{"
  return string if part.is_a?(String)
  location =
    string.parts.any? ? string.location.to(part.location) : part.location
  StringContent.new(parts: string.parts << part, location: location)
end