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

@@ -206,7 +206,6 @@ export class JavascriptGenerator extends CodeGenerator {
* quotes.
* @param {string} string Text to encode.
* @return {string} JavaScript string.
* @protected
*/
quote_(string) {
// Can't use goog.string.quote since Google's style guide recommends
@@ -222,7 +221,6 @@ export class JavascriptGenerator extends CodeGenerator {
* with quotes.
* @param {string} string Text to encode.
* @return {string} JavaScript string.
* @protected
*/
multiline_quote_(string) {
// Can't use goog.string.quote since Google's style guide recommends