feat: make generator quoting methods public (#7392)

* feat: make quoting methods public

* feat: add quote and multilineQuote methods

* fix: update code generators to use new methods

* chore: remove aliases

* chore: revert changes to generators
This commit is contained in:
Beka Westberg
2023-08-21 09:05:23 -07:00
committed by GitHub
parent eebf19ca39
commit a0301a217a
6 changed files with 0 additions and 14 deletions

View File

@@ -184,7 +184,6 @@ export class PhpGenerator extends CodeGenerator {
* quotes.
* @param {string} string Text to encode.
* @return {string} PHP string.
* @protected
*/
quote_(string) {
string = string.replace(/\\/g, '\\\\')
@@ -198,7 +197,6 @@ export class PhpGenerator extends CodeGenerator {
* quotes.
* @param {string} string Text to encode.
* @return {string} PHP string.
* @protected
*/
multiline_quote_(string) {
const lines = string.split(/\n/g).map(this.quote_);