Sha256: 30a5e5cf427fd5883f0c3e5027e14613c0a3fd9a8550c0eb96d887591eb6ef66

Contents?: true

Size: 878 Bytes

Versions: 24

Compression:

Stored size: 878 Bytes

Contents

"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _constants = require("../constants");

var _Node = _interopRequireDefault(require("./Node"));

var _Range = _interopRequireDefault(require("./Range"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

class Comment extends _Node.default {
  constructor() {
    super(_constants.Type.COMMENT);
  }
  /**
   * Parses a comment line from the source
   *
   * @param {ParseContext} context
   * @param {number} start - Index of first character
   * @returns {number} - Index of the character after this scalar
   */


  parse(context, start) {
    this.context = context;
    const offset = this.parseComment(start);
    this.range = new _Range.default(start, offset);
    return offset;
  }

}

exports.default = Comment;

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
trusty-cms-5.0.7 node_modules/yaml/dist/cst/Comment.js
trusty-cms-5.0.6 node_modules/yaml/dist/cst/Comment.js
trusty-cms-5.0.5 node_modules/yaml/dist/cst/Comment.js
trusty-cms-5.0.4 node_modules/yaml/dist/cst/Comment.js
trusty-cms-5.0.3 node_modules/yaml/dist/cst/Comment.js
trusty-cms-5.0.2 node_modules/yaml/dist/cst/Comment.js
trusty-cms-5.0.1 node_modules/yaml/dist/cst/Comment.js
trusty-cms-4.3.5 node_modules/yaml/dist/cst/Comment.js
trusty-cms-5.0.0 node_modules/yaml/dist/cst/Comment.js
trusty-cms-4.3.4 node_modules/yaml/dist/cst/Comment.js
trusty-cms-4.3.3 node_modules/yaml/dist/cst/Comment.js
trusty-cms-4.3.2 node_modules/yaml/dist/cst/Comment.js
trusty-cms-4.3.1 node_modules/yaml/dist/cst/Comment.js
trusty-cms-4.3 node_modules/yaml/dist/cst/Comment.js
trusty-cms-4.2.3 node_modules/yaml/dist/cst/Comment.js
trusty-cms-4.2.2 node_modules/yaml/dist/cst/Comment.js
trusty-cms-4.2.1 node_modules/yaml/dist/cst/Comment.js
trusty-cms-4.2 node_modules/yaml/dist/cst/Comment.js
trusty-cms-4.1.9 node_modules/yaml/dist/cst/Comment.js
trusty-cms-4.1.8 node_modules/yaml/dist/cst/Comment.js