Skip to content

tryFlattenStringConcatenationDescendants

Returns all descendants of this expression in flattened form if it is a string-literal concatenation; otherwise, returns null.

For example, for "a0" /* comment before plus */ + /* comment after plus */ "a1", this returns "a0", whitespace, /* comment before plus */, whitespace, +, whitespace, /* comment after plus */, whitespace, and "a1".

See also