fix jsdocs

ignore package-lock
This commit is contained in:
ido 2017-06-29 11:47:09 +03:00
parent e3cef47f51
commit 77aec486a5
3 changed files with 22 additions and 7 deletions

2
.gitignore vendored
View File

@ -28,4 +28,4 @@ npm-debug.log
test/data/**/*.rt.actual.js
test/data/**/*.code.js
test/data/**/*.actual.html
/package-lock.json

View File

@ -20,19 +20,25 @@ function getLine(html, node) {
return {line: linesUntil.length, col: linesUntil[linesUntil.length - 1].length + 1}
}
/**
* @param {number} n
* @return {number}
*/
function norm(n) {
return n === undefined ? -1 : n
}
/**
* @param {string} message
* @param {number=} startOffset
* @param {number=} endOffset
* @param {number=} line
* @param {number=} column
* @constructor
*
*/
class RTCodeError extends Error {
/**
* @param {string} message
* @param {number=} startOffset
* @param {number=} endOffset
* @param {number=} line
* @param {number=} column
*/
constructor(message, startOffset, endOffset, line, column) {
super()
Error.captureStackTrace(this, RTCodeError)

9
test/data/div.rt.15.js Normal file
View File

@ -0,0 +1,9 @@
define([
'react',
'lodash'
], function (React, _) {
'use strict';
return function () {
return React.createElement('div', {});
};
});