MCPcopy Index your code
hub / github.com/google/adk-python / I2

Function I2

src/google/adk/cli/browser/main-3CUQG2IN.js:144–144  ·  view source on GitHub ↗
(i,e)

Source from the content-addressed store, hash-verified

142${o}${n}${E}`:`
143`;return`${u}
144${n}${B}`}else return`${d}${a}${C.join(" ")}${a}${B}`}function Ym({indent:i,options:{commentString:e}},A,t,n){if(t&&n&&(t=t.replace(/^\n+/,"")),t){let o=sg(e(t),i);A.push(o.trimStart())}}function I2(i,e){let A=sn(e)?e.value:e;for(let t of i)if(Tn(t)&&(t.key===e||t.key===A||sn(t.key)&&t.key.value===A))return t}var $a=class extends bB{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(jg,e),this.items=[]}static from(e,A,t){let{keepUndefined:n,replacer:o}=t,a=new this(e),r=(s,l)=>{if(typeof o=="function")l=o.call(A,s,l);else if(Array.isArray(o)&&!o.includes(s))return;(l!==void 0||n)&&a.items.push(kB(s,l,t))};if(A instanceof Map)for(let[s,l]of A)r(s,l);else if(A&&typeof A=="object")for(let s of Object.keys(A))r(s,A[s]);return typeof e.sortMapEntries=="function"&&a.items.sort(e.sortMapEntries),a}add(e,A){let t;Tn(e)?t=e:!e||typeof e!="object"||!("key"in e)?t=new za(e,e?.value):t=new za(e.key,e.value);let n=I2(this.items,t.key),o=this.schema?.sortMapEntries;if(n){if(!A)throw new Error(`Key ${t.key} already set`);sn(n.value)&&Nm(t.value)?n.value.value=t.value:n.value=t.value}else if(o){let a=this.items.findIndex(r=>o(t,r)<0);a===-1?this.items.push(t):this.items.splice(a,0,t)}else this.items.push(t)}delete(e){let A=I2(this.items,e);return A?this.items.splice(this.items.indexOf(A),1).length>0:!1}get(e,A){let n=I2(this.items,e)?.value;return(!A&&sn(n)?n.value:n)??void 0}has(e){return!!I2(this.items,e)}set(e,A){this.add(new za(e,A),!0)}toJSON(e,A,t){let n=t?new t:A?.mapAsMap?new Map:{};A?.onCreate&&A.onCreate(n);for(let o of this.items)Jm(A,n,o);return n}toString(e,A,t){if(!e)return JSON.stringify(this);for(let n of this.items)if(!Tn(n))throw new Error(`Map items must all be pairs; found ${JSON.stringify(n)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Hm(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:t,onComment:A})}};var Xg={collection:"map",default:!0,nodeClass:$a,tag:"tag:yaml.org,2002:map",resolve(i,e){return qg(i)||e("Expected a mapping for this tag"),i},createNode:(i,e,A)=>$a.from(i,e,A)};var us=class extends bB{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Z0,e),this.items=[]}add(e){this.items.push(e)}delete(e){let A=zm(e);return typeof A!="number"?!1:this.items.splice(A,1).length>0}get(e,A){let t=zm(e);if(typeof t!="number")return;let n=this.items[t];return!A&&sn(n)?n.value:n}has(e){let A=zm(e);return typeof A=="number"&&A<this.items.length}set(e,A){let t=zm(e);if(typeof t!="number")throw new Error(`Expected a valid index, not ${e}.`);let n=this.items[t];sn(n)&&Nm(A)?n.value=A:this.items[t]=A}toJSON(e,A){let t=[];A?.onCreate&&A.onCreate(t);let n=0;for(let o of this.items)t.push(pr(o,String(n++),A));return t}toString(e,A,t){return e?Hm(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:t,onComment:A}):JSON.stringify(this)}static from(e,A,t){let{replacer:n}=t,o=new this(e);if(A&&Symbol.iterator in Object(A)){let a=0;for(let r of A){if(typeof n=="function"){let s=A instanceof Set?r:String(a++);r=n.call(A,s,r)}o.items.push($0(r,void 0,t))}}return o}};function zm(i){let e=sn(i)?i.value:i;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}var $g={collection:"seq",default:!0,nodeClass:us,tag:"tag:yaml.org,2002:seq",resolve(i,e){return Wg(i)||e("Expected a sequence for this tag"),i},createNode:(i,e,A)=>us.from(i,e,A)};var B2={identify:i=>typeof i=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:i=>i,stringify(i,e,A,t){return e=Object.assign({actualString:!0},e),sd(i,e,A,t)}};var ld={identify:i=>i==null,createNode:()=>new $t(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new $t(null),stringify:({source:i},e)=>typeof i=="string"&&ld.test.test(i)?i:e.options.nullStr};var du={identify:i=>typeof i=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:i=>new $t(i[0]==="t"||i[0]==="T"),stringify({source:i,value:e},A){if(i&&du.test.test(i)){let t=i[0]==="t"||i[0]==="T";if(e===t)return i}return e?A.options.trueStr:A.options.falseStr}};function ps({format:i,minFractionDigits:e,tag:A,value:t}){if(typeof t=="bigint")return String(t);let n=typeof t=="number"?t:Number(t);if(!isFinite(n))return isNaN(n)?".nan":n<0?"-.inf":".inf";let o=Object.is(t,-0)?"-0":JSON.stringify(t);if(!i&&e&&(!A||A==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let a=o.indexOf(".");a<0&&(a=o.length,o+=".");let r=e-(o.length-a-1);for(;r-- >0;)o+="0"}return o}var Pm={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:i=>i.slice(-3).toLowerCase()==="nan"?NaN:i[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:ps},jm={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:i=>parseFloat(i),stringify(i){let e=Number(i.value);return isFinite(e)?e.toExponential():ps(i)}},Vm={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(i){let e=new $t(parseFloat(i)),A=i.indexOf(".");return A!==-1&&i[i.length-1]==="0"&&(e.minFractionDigits=i.length-A-1),e},stringify:ps};var qm=i=>typeof i=="bigint"||Number.isInteger(i),_7=(i,e,A,{intAsBigInt:t})=>t?BigInt(i):parseInt(i.substring(e),A);function RT(i,e,A){let{value:t}=i;return qm(t)&&t>=0?A+t.toString(e):ps(i)}var Wm={identify:i=>qm(i)&&i>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(i,e,A)=>_7(i,2,8,A),stringify:i=>RT(i,8,"0o")},Zm={identify:qm,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(i,e,A)=>_7(i,0,10,A),stringify:ps},Xm={identify:i=>qm(i)&&i>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(i,e,A)=>_7(i,2,16,A),stringify:i=>RT(i,16,"0x")};var NT=[Xg,$g,B2,ld,du,Wm,Zm,Xm,Pm,jm,Vm];function FT(i){return typeof i=="bigint"||Number.isInteger(i)}var $m=({value:i})=>JSON.stringify(i),qrA=[{identify:i=>typeof i=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:i=>i,stringify:$m},{identify:i=>i==null,createNode:()=>new $t(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:$m},{identify:i=>typeof i=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:i=>i==="true",stringify:$m},{identify:FT,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(i,e,{intAsBigInt:A})=>A?BigInt(i):parseInt(i,10),stringify:({value:i})=>FT(i)?i.toString():JSON.stringify(i)},{identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:i=>parseFloat(i),stringify:$m}],WrA={default:!0,tag:"",test:/^/,resolve(i,e){return e(`Unresolved plain scalar ${JSON.stringify(i)}`),i}},LT=[Xg,$g].concat(qrA,WrA);var Iu={identify:i=>i instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(i,e){if(typeof atob=="function"){let A=atob(i.replace(/[\n\r]/g,"")),t=new Uint8Array(A.length);for(let n=0;n<A.length;++n)t[n]=A.charCodeAt(n);return t}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),i},stringify({comment:i,type:e,value:A},t,n,o){if(!A)return"";let a=A,r;if(typeof btoa=="function"){let s="";for(let l=0;l<a.length;++l)s+=String.fromCharCode(a[l]);r=btoa(s)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e??(e=$t.BLOCK_LITERAL),e!==$t.QUOTE_DOUBLE){let s=Math.max(t.options.lineWidth-t.indent.length,t.options.minContentWidth),l=Math.ceil(r.length/s),g=new Array(l);for(let C=0,d=0;C<l;++C,d+=s)g[C]=r.substr(d,s);r=g.join(e===$t.BLOCK_LITERAL?`
145`:" ")}return sd({comment:i,type:e,value:r},t,n,o)}};function x7(i,e){if(Wg(i))for(let A=0;A<i.items.length;++A){let t=i.items[A];if(!Tn(t)){if(qg(t)){t.items.length>1&&e("Each pair must have its own sequence indicator");let n=t.items[0]||new za(new $t(null));if(t.commentBefore&&(n.key.commentBefore=n.key.commentBefore?`${t.commentBefore}
146${n.key.commentBefore}`:t.commentBefore),t.comment){let o=n.value??n.key;o.comment=o.comment?`${t.comment}
147${o.comment}`:t.comment}t=n}i.items[A]=Tn(t)?t:new za(t)}}else e("Expected a sequence for this tag");return i}function R7(i,e,A){let{replacer:t}=A,n=new us(i);n.tag="tag:yaml.org,2002:pairs";let o=0;if(e&&Symbol.iterator in Object(e))for(let a of e){typeof t=="function"&&(a=t.call(e,String(o++),a));let r,s;if(Array.isArray(a))if(a.length===2)r=a[0],s=a[1];else throw new TypeError(`Expected [key, value] tuple: ${a}`);else if(a&&a instanceof Object){let l=Object.keys(a);if(l.length===1)r=l[0],s=a[r];else throw new TypeError(`Expected tuple with one key, not ${l.length} keys`)}else r=a;n.items.push(kB(r,s,A))}return n}var Bu={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:x7,createNode:R7};var N7=(()=>{class i extends us{constructor(){super(),this.add=$a.prototype.add.bind(this),this.delete=$a.prototype.delete.bind(this),this.get=$a.prototype.get.bind(this),this.has=$a.prototype.has.bind(this),this.set=$a.prototype.set.bind(this),this.tag=i.tag}toJSON(A,t){if(!t)return super.toJSON(A);let n=new Map;t?.onCreate&&t.onCreate(n);for(let o of this.items){let a,r;if(Tn(o)?(a=pr(o.key,"",t),r=pr(o.value,a,t)):a=pr(o,"",t),n.has(a))throw new Error("Ordered maps must not include duplicate keys");n.set(a,r)}return n}static from(A,t,n){let o=R7(A,t,n),a=new this;return a.items=o.items,a}}return i.tag="tag:yaml.org,2002:omap",i})(),hu={collection:"seq",identify:i=>i instanceof Map,nodeClass:N7,default:!1,tag:"tag:yaml.org,2002:omap",resolve(i,e){let A=x7(i,e),t=[];for(let{key:n}of A.items)sn(n)&&(t.includes(n.value)?e(`Ordered maps must not include duplicate keys: ${n.value}`):t.push(n.value));return Object.assign(new N7,A)},createNode:(i,e,A)=>N7.from(i,e,A)};function GT({value:i,source:e},A){return e&&(i?F7:L7).test.test(e)?e:i?A.options.trueStr:A.options.falseStr}var F7={identify:i=>i===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new $t(!0),stringify:GT},L7={identify:i=>i===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new $t(!1),stringify:GT};var KT={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:i=>i.slice(-3).toLowerCase()==="nan"?NaN:i[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:ps},UT={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:i=>parseFloat(i.replace(/_/g,"")),stringify(i){let e=Number(i.value);return isFinite(e)?e.toExponential():ps(i)}},TT={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(i){let e=new $t(parseFloat(i.replace(/_/g,""))),A=i.indexOf(".");if(A!==-1){let t=i.substring(A+1).replace(/_/g,"");t[t.length-1]==="0"&&(e.minFractionDigits=t.length)}return e},stringify:ps};var Eu=i=>typeof i=="bigint"||Number.isInteger(i);function A6(i,e,A,{intAsBigInt:t}){let n=i[0];if((n==="-"||n==="+")&&(e+=1),i=i.substring(e).replace(/_/g,""),t){switch(A){case 2:i=`0b${i}`;break;case 8:i=`0o${i}`;break;case 16:i=`0x${i}`;break}let a=BigInt(i);return n==="-"?BigInt(-1)*a:a}let o=parseInt(i,A);return n==="-"?-1*o:o}function G7(i,e,A){let{value:t}=i;if(Eu(t)){let n=t.toString(e);return t<0?"-"+A+n.substr(1):A+n}return ps(i)}var OT={identify:Eu,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(i,e,A)=>A6(i,2,2,A),stringify:i=>G7(i,2,"0b")},JT={identify:Eu,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(i,e,A)=>A6(i,1,8,A),stringify:i=>G7(i,8,"0")},YT={identify:Eu,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(i,e,A)=>A6(i,0,10,A),stringify:ps},HT={identify:Eu,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(i,e,A)=>A6(i,2,16,A),stringify:i=>G7(i,16,"0x")};var K7=(()=>{class i extends $a{constructor(A){super(A),this.tag=i.tag}add(A){let t;Tn(A)?t=A:A&&typeof A=="object"&&"key"in A&&"value"in A&&A.value===null?t=new za(A.key,null):t=new za(A,null),I2(this.items,t.key)||this.items.push(t)}get(A,t){let n=I2(this.items,A);return!t&&Tn(n)?sn(n.key)?n.key.value:n.key:n}set(A,t){if(typeof t!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=I2(this.items,A);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new za(A))}toJSON(A,t){return super.toJSON(A,t,Set)}toString(A,t,n){if(!A)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},A,{allNullValues:!0}),t,n);throw new Error("Set items must all have null values")}static from(A,t,n){let{replacer:o}=n,a=new this(A);if(t&&Symbol.iterator in Object(t))for(let r of t)typeof o=="function"&&(r=o.call(t,r,r)),a.items.push(kB(r,null,n));return a}}return i.tag="tag:yaml.org,2002:set",i})(),Qu={collection:"map",identify:i=>i instanceof Set,nodeClass:K7,default:!1,tag:"tag:yaml.org,2002:set",createNode:(i,e,A)=>K7.from(i,e,A),resolve(i,e){if(qg(i)){if(i.hasAllNullValues(!0))return Object.assign(new K7,i);e("Set items must all have null values")}else e("Expected a mapping for this tag");return i}};function U7(i,e){let A=i[0],t=A==="-"||A==="+"?i.substring(1):i,n=a=>e?BigInt(a):Number(a),o=t.replace(/_/g,"").split(":").reduce((a,r)=>a*n(60)+n(r),n(0));return A==="-"?n(-1)*o:o}function zT(i){let{value:e}=i,A=a=>a;if(typeof e=="bigint")A=a=>BigInt(a);else if(isNaN(e)||!isFinite(e))return ps(i);let t="";e<0&&(t="-",e*=A(-1));let n=A(60),o=[e%n];return e<60?o.unshift(0):(e=(e-o[0])/n,o.unshift(e%n),e>=60&&(e=(e-o[0])/n,o.unshift(e))),t+o.map(a=>String(a).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var e6={identify:i=>typeof i=="bigint"||Number.isInteger(i),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(i,e,{intAsBigInt:A})=>U7(i,A),stringify:zT},t6={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:i=>U7(i,!1),stringify:zT},_B={identify:i=>i instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(i){let e=i.match(_B.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,A,t,n,o,a,r]=e.map(Number),s=e[7]?Number((e[7]+"00").substr(1,3)):0,l=Date.UTC(A,t-1,n,o||0,a||0,r||0,s),g=e[8];if(g&&g!=="Z"){let C=U7(g,!1);Math.abs(C)<30&&(C*=60),l-=6e4*C}return new Date(l)},stringify:({value:i})=>i?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};var T7=[Xg,$g,B2,ld,F7,L7,OT,JT,YT,HT,KT,UT,TT,Iu,Zg,hu,Bu,Qu,e6,t6,_B];var PT=new Map([["core",NT],["failsafe",[Xg,$g,B2]],["json",LT],["yaml11",T7],["yaml-1.1",T7]]),jT={binary:Iu,bool:du,float:Vm,floatExp:jm,floatNaN:Pm,floatTime:t6,int:Zm,intHex:Xm,intOct:Wm,intTime:e6,map:Xg,merge:Zg,null:ld,omap:hu,pairs:Bu,seq:$g,set:Qu,timestamp:_B},VT={"tag:yaml.org,2002:binary":Iu,"tag:yaml.org,2002:merge":Zg,"tag:yaml.org,2002:omap":hu,"tag:yaml.org,2002:pairs":Bu,"tag:yaml.org,2002:set":Qu,"tag:yaml.org,2002:timestamp":_B};function i6(i,e,A){let t=PT.get(e);if(t&&!i)return A&&!t.includes(Zg)?t.concat(Zg):t.slice();let n=t;if(!n)if(Array.isArray(i))n=[];else{let o=Array.from(PT.keys()).filter(a=>a!=="yaml11").map(a=>JSON.stringify(a)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${o} or define customTags array`)}if(Array.isArray(i))for(let o of i)n=n.concat(o);else typeof i=="function"&&(n=i(n.slice()));return A&&(n=n.concat(Zg)),n.reduce((o,a)=>{let r=typeof a=="string"?jT[a]:a;if(!r){let s=JSON.stringify(a),l=Object.keys(jT).map(g=>JSON.stringify(g)).join(", ");throw new Error(`Unknown custom tag ${s}; use one of ${l}`)}return o.includes(r)||o.push(r),o},[])}var ZrA=(i,e)=>i.key<e.key?-1:i.key>e.key?1:0,uu=class i{constructor({compat:e,customTags:A,merge:t,resolveKnownTags:n,schema:o,sortMapEntries:a,toStringDefaults:r}){this.compat=Array.isArray(e)?i6(e,"compat"):e?i6(null,e):null,this.name=typeof o=="string"&&o||"core",this.knownTags=n?VT:{},this.tags=i6(A,this.name,t),this.toStringOptions=r??null,Object.defineProperty(this,jg,{value:Xg}),Object.defineProperty(this,_l,{value:B2}),Object.defineProperty(this,Z0,{value:$g}),this.sortMapEntries=typeof a=="function"?a:a===!0?ZrA:null}clone(){let e=Object.create(i.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}};function qT(i,e){let A=[],t=e.directives===!0;if(e.directives!==!1&&i.directives){let s=i.directives.toString(i);s?(A.push(s),t=!0):i.directives.docStart&&(t=!0)}t&&A.push("---");let n=Um(i,e),{commentString:o}=n.options;if(i.commentBefore){A.length!==1&&A.unshift("");let s=o(i.commentBefore);A.unshift(sg(s,""))}let a=!1,r=null;if(i.contents){if(Pn(i.contents)){if(i.contents.spaceBefore&&t&&A.push(""),i.contents.commentBefore){let g=o(i.contents.commentBefore);A.push(sg(g,""))}n.forceBlockIndent=!!i.comment,r=i.contents.comment}let s=r?void 0:()=>a=!0,l=AC(i.contents,n,()=>r=null,s);r&&(l+=i0(l,"",o(r))),(l[0]==="|"||l[0]===">")&&A[A.length-1]==="---"?A[A.length-1]=`--- ${l}`:A.push(l)}else A.push(AC(i.contents,n));if(i.directives?.docEnd)if(i.comment){let s=o(i.comment);s.includes(`

Callers 7

addMethod · 0.70
deleteMethod · 0.70
getMethod · 0.70
hasMethod · 0.70
addMethod · 0.70
getMethod · 0.70
setMethod · 0.70

Calls 2

snFunction · 0.70
TnFunction · 0.70

Tested by

no test coverage detected