mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-09-15 12:09:05 +00:00
update
This commit is contained in:
26
node_modules/postcss-values-parser/lib/comment.js
generated
vendored
Normal file
26
node_modules/postcss-values-parser/lib/comment.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
'use strict';
|
||||
|
||||
const Container = require('./container');
|
||||
const Node = require('./node');
|
||||
|
||||
class Comment extends Node {
|
||||
constructor (opts) {
|
||||
super(opts);
|
||||
this.type = 'comment';
|
||||
this.inline = 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;
|
Reference in New Issue
Block a user