Last change
on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.5 KB
|
Line | |
---|
1 | 'use strict';
|
---|
2 |
|
---|
3 | exports.__esModule = true;
|
---|
4 |
|
---|
5 | var _node = require('./node');
|
---|
6 |
|
---|
7 | var _node2 = _interopRequireDefault(_node);
|
---|
8 |
|
---|
9 | var _types = require('./types');
|
---|
10 |
|
---|
11 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
---|
12 |
|
---|
13 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
---|
14 |
|
---|
15 | function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
---|
16 |
|
---|
17 | function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
---|
18 |
|
---|
19 | var Comment = function (_Node) {
|
---|
20 | _inherits(Comment, _Node);
|
---|
21 |
|
---|
22 | function Comment(opts) {
|
---|
23 | _classCallCheck(this, Comment);
|
---|
24 |
|
---|
25 | var _this = _possibleConstructorReturn(this, _Node.call(this, opts));
|
---|
26 |
|
---|
27 | _this.type = _types.COMMENT;
|
---|
28 | return _this;
|
---|
29 | }
|
---|
30 |
|
---|
31 | return Comment;
|
---|
32 | }(_node2.default);
|
---|
33 |
|
---|
34 | exports.default = Comment;
|
---|
35 | module.exports = exports['default']; |
---|
Note:
See
TracBrowser
for help on using the repository browser.