Conexio amb la api
This commit is contained in:
parent
207c0ba819
commit
b12369cb47
48513 changed files with 7391639 additions and 7 deletions
28
node_modules/postcss-values-parser/lib/string.js
generated
vendored
Executable file
28
node_modules/postcss-values-parser/lib/string.js
generated
vendored
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
'use strict';
|
||||
|
||||
const Container = require('./container');
|
||||
const Node = require('./node');
|
||||
|
||||
class StringNode extends Node {
|
||||
constructor (opts) {
|
||||
super(opts);
|
||||
this.type = 'string';
|
||||
}
|
||||
|
||||
toString () {
|
||||
let quote = this.quoted ? this.raws.quote : '';
|
||||
return [
|
||||
this.raws.before,
|
||||
quote,
|
||||
// we can't use String() here because it'll try using itself
|
||||
// as the constructor
|
||||
this.value + '',
|
||||
quote,
|
||||
this.raws.after
|
||||
].join('');
|
||||
}
|
||||
}
|
||||
|
||||
Container.registerWalker(StringNode);
|
||||
|
||||
module.exports = StringNode;
|
||||
Loading…
Add table
Add a link
Reference in a new issue