File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -614,9 +614,15 @@ This does not include the NODE's namespace."
614614       (string-equal  expected-symbol-name (clojure-ts--named-node-text node))))
615615
616616(defun  clojure-ts--node-child-skip-metadata  (node  n )
617-   " Return the Nth child of NODE like `treesit-node-child`, skipping the optional metadata node at pos 0 if present." 
617+   " Return the Nth child of NODE like `treesit-node-child' , sans metadata.
618+ Skip the optional metadata node at pos 0 if present."  
618619  (let  ((first-child (treesit-node-child node 0  t )))
619-     (treesit-node-child node (if  (clojure-ts--metadata-node-p first-child) (1+  n) n) t )))
620+     (treesit-node-child
621+      node
622+      (if  (clojure-ts--metadata-node-p first-child)
623+          (1+  n)
624+        n)
625+      t )))
620626
621627(defun  clojure-ts--node-with-metadata-parent  (node )
622628  " Return parent for NODE only if NODE has metadata, otherwise return nil." 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments