mirror of
https://github.com/Instadapp/Swap-Aggregator-Subgraph.git
synced 2024-07-29 21:57:12 +00:00
26 lines
428 B
JavaScript
26 lines
428 B
JavaScript
"use strict";
|
|
|
|
exports.Scalar = void 0;
|
|
|
|
var _toJSON = require("../toJSON");
|
|
|
|
var _Node = require("./Node");
|
|
|
|
// Published as 'yaml/scalar'
|
|
class Scalar extends _Node.Node {
|
|
constructor(value) {
|
|
super();
|
|
this.value = value;
|
|
}
|
|
|
|
toJSON(arg, ctx) {
|
|
return ctx && ctx.keep ? this.value : (0, _toJSON.toJSON)(this.value, arg, ctx);
|
|
}
|
|
|
|
toString() {
|
|
return String(this.value);
|
|
}
|
|
|
|
}
|
|
|
|
exports.Scalar = Scalar; |