code: function addComment( text, multiline ) {
  
            if ( options.extractComments ) {
  
                const loc = location();
  
                comments[ loc.start.offset ] = {
                    text: text,
                    multiline: multiline,
                    location: loc,
                };
  
            }
  
            return text;
  
        }
docs: Helper that collects all the comments to pass to the Grammar AST