Sha256: 4c8d00b96f9b51c5b938d557c03f670e20bc536e57fbc1fe91c40396b471ea59

Contents?: true

Size: 490 Bytes

Versions: 26

Compression:

Stored size: 490 Bytes

Contents

'use strict';

const Container = require('./container');
const Node = require('./node');

class Comment extends Node {
  constructor (opts) {
    super(opts);
    this.type = 'comment';
    this.inline = Object(opts).inline || false;
  }

  toString () {
    return [
      this.raws.before,
      this.inline ? '//' : '/*',
      String(this.value),
      this.inline ? '' : '*/',
      this.raws.after
    ].join('');
  }
};

Container.registerWalker(Comment);

module.exports = Comment;

Version data entries

26 entries across 25 versions & 8 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/postcss-values-parser/lib/comment.js
disco_app-0.18.0 test/dummy/node_modules/postcss-values-parser/lib/comment.js
disco_app-0.18.2 test/dummy/node_modules/postcss-values-parser/lib/comment.js
disco_app-0.16.1 test/dummy/node_modules/postcss-values-parser/lib/comment.js
disco_app-0.15.2 test/dummy/node_modules/postcss-values-parser/lib/comment.js
disco_app-0.18.4 test/dummy/node_modules/postcss-values-parser/lib/comment.js
disco_app-0.18.1 test/dummy/node_modules/postcss-values-parser/lib/comment.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/postcss-values-parser/lib/comment.js
disco_app-0.14.0 test/dummy/node_modules/postcss-values-parser/lib/comment.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/postcss-values-parser/lib/comment.js
tang-0.2.1 spec/tang_app/node_modules/postcss-values-parser/lib/comment.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/postcss-values-parser/lib/comment.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/postcss-values-parser/lib/comment.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/postcss-values-parser/lib/comment.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/postcss-values-parser/lib/comment.js
tang-0.2.0 spec/tang_app/node_modules/postcss-values-parser/lib/comment.js
tang-0.1.0 spec/tang_app/node_modules/postcss-values-parser/lib/comment.js
tang-0.0.9 spec/tang_app/node_modules/postcss-values-parser/lib/comment.js
enju_library-0.3.8 spec/dummy/node_modules/postcss-values-parser/lib/comment.js
jester-data-8.0.0 node_modules/postcss-values-parser/lib/comment.js