nl_tokens: 7 . 4 Comments
pl_tokens: function addComment ( type , value , start , end , loc ) { var <mask> ; assert ( typeof start === 'number' , 'Comment must have valid position' ) ; // Because the way the actual token is scanned, often the comments // (if any) are skipped twice during the lexical analysis. // Thus, we need to skip adding a comment if the comment array already // handled it. if ( state . lastCommentStart >= start ) { return ; } state . lastCommentStart = start ; comment = { type : type , value : value } ; if ( extra . range ) { comment . range = [ start , end ] ; } if ( extra . loc ) { comment . loc = loc ; } extra . comments . push ( comment ) ; if ( extra . attachComment ) { extra . leadingComments . push ( comment ) ; extra . trailingComments . push ( comment ) ; } }