parent
e3cef47f51
commit
77aec486a5
|
@ -28,4 +28,4 @@ npm-debug.log
|
|||
test/data/**/*.rt.actual.js
|
||||
test/data/**/*.code.js
|
||||
test/data/**/*.actual.html
|
||||
|
||||
/package-lock.json
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
define([
|
||||
'react',
|
||||
'lodash'
|
||||
], function (React, _) {
|
||||
'use strict';
|
||||
return function () {
|
||||
return React.createElement('div', {});
|
||||
};
|
||||
});
|
Loading…
Reference in New Issue