mirror of
https://github.com/google/blockly.git
synced 2026-01-06 08:30:13 +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:
@@ -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_);
|
||||
|
||||
Reference in New Issue
Block a user