UNPKG

@calystral/prettier-plugin-solidity

Version:
18 lines (15 loc) 377 B
// source: https://github.com/prettier/prettier/blob/ee2839bacbf6a52d004fa2f0373b732f6f191ccc/tests_config/raw-serializer.js 'use strict'; const RAW = Symbol.for('raw'); module.exports = { print(val) { return val[RAW]; }, test(val) { return ( val && Object.prototype.hasOwnProperty.call(val, RAW) && typeof val[RAW] === 'string' ); } };