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