add function add(line, curData, scope, docMap) Parameters line {String}: The line. docMap {DocMap}: The DocMap.