You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2019/12/18 18:00:31 UTC

[couchdb-escodegen] reference refs/pull/317/head created (now b34e32c)

This is an automated email from the ASF dual-hosted git repository.

davisp pushed a change to reference refs/pull/317/head
in repository https://gitbox.apache.org/repos/asf/couchdb-escodegen.git.


      at b34e32c  Adding in support for block labels

This reference includes the following new commits:

     new b34e32c  Adding in support for block labels

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[couchdb-escodegen] 01/01: Adding in support for block labels

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

davisp pushed a commit to reference refs/pull/317/head
in repository https://gitbox.apache.org/repos/asf/couchdb-escodegen.git

commit b34e32c96bde3c57282d7a10dcd01ebc4b7c5ee3
Author: Timothy Soehnlin <ti...@gmail.com>
AuthorDate: Wed Nov 2 10:06:54 2016 -0400

    Adding in support for block labels
---
 escodegen.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/escodegen.js b/escodegen.js
index 42c05ae..1547239 100644
--- a/escodegen.js
+++ b/escodegen.js
@@ -1028,7 +1028,8 @@
     CodeGenerator.Statement = {
 
         BlockStatement: function (stmt, flags) {
-            var range, content, result = ['{', newline], that = this;
+            var open = stmt.label ? stmt.label.name + '{' : '{';
+            var range, content, result = [open, newline], that = this;
 
             withIndent(function () {
                 // handle functions without any code