mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user