dotfiles/vscode/.vscode/extensions/randomfractalsinc.vscode-data-preview-2.3.0/node_modules/properties/lib/stringifier.js
Errol Sancaktar ff17c17e23 vscode
2024-06-14 09:31:58 -06:00

26 lines
490 B
JavaScript

"use strict";
var Stringifier = module.exports = function (){
this._header = null;
this._lines = [];
};
Stringifier.prototype.header = function (comment){
this._header = comment;
return this;
};
Stringifier.prototype.property = function (p){
p.property = true;
this._lines.push (p);
return this;
};
Stringifier.prototype.section = function (p){
if (typeof p === "string"){
p = { name: p };
}
p.section = true;
this._lines.push (p);
return this;
};