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 17:57:06 UTC

[couchdb-escodegen] 02/02: handling extras on identifier nodes

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

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

commit 62116bf28f52c8e09da06023fff148f448675e10
Author: Kyle Simpson <ge...@gmail.com>
AuthorDate: Mon Sep 23 10:56:01 2013 -0400

    handling extras on identifier nodes
---
 escodegen.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/escodegen.js b/escodegen.js
index c9c814b..d5618c1 100644
--- a/escodegen.js
+++ b/escodegen.js
@@ -896,7 +896,11 @@
     }
 
     function generateIdentifier(node) {
-        return toSourceNode(node.name, node);
+        var ret = toSourceNode(node.name, node);
+        if (node.extras) {
+            ret = addExtrasToNode(node,ret);
+        }
+        return ret;
     }
 
     function generateFunctionBody(node) {