MCPcopy Create free account
hub / github.com/alignoth/alignoth / I$

Function I$

resources/vega.min.js:27108–27164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27106 : void tT({}, p$, A$));
27107 }
27108 function I$() {
27109 var t, e, n;
27110 if (
27111 (C$(
27112 F$((n = HS[YS]).charCodeAt(0)) || "." === n,
27113 "Numeric literal must start with a decimal digit or a decimal point",
27114 ),
27115 (e = YS),
27116 (t = ""),
27117 "." !== n)
27118 ) {
27119 if (((t = HS[YS++]), (n = HS[YS]), "0" === t)) {
27120 if ("x" === n || "X" === n)
27121 return (
27122 ++YS,
27123 (function (t) {
27124 let e = "";
27125 for (; YS < GS && S$(HS[YS]); ) e += HS[YS++];
27126 return (
27127 0 === e.length && tT({}, p$, A$),
27128 z$(HS.charCodeAt(YS)) && tT({}, p$, A$),
27129 { type: t$, value: parseInt("0x" + e, 16), start: t, end: YS }
27130 );
27131 })(e)
27132 );
27133 if ($$(n))
27134 return (function (t) {
27135 let e = "0" + HS[YS++];
27136 for (; YS < GS && $$(HS[YS]); ) e += HS[YS++];
27137 return (
27138 (z$(HS.charCodeAt(YS)) || F$(HS.charCodeAt(YS))) &&
27139 tT({}, p$, A$),
27140 { type: t$, value: parseInt(e, 8), octal: !0, start: t, end: YS }
27141 );
27142 })(e);
27143 n && F$(n.charCodeAt(0)) && tT({}, p$, A$);
27144 }
27145 for (; F$(HS.charCodeAt(YS)); ) t += HS[YS++];
27146 n = HS[YS];
27147 }
27148 if ("." === n) {
27149 for (t += HS[YS++]; F$(HS.charCodeAt(YS)); ) t += HS[YS++];
27150 n = HS[YS];
27151 }
27152 if ("e" === n || "E" === n)
27153 if (
27154 ((t += HS[YS++]),
27155 ("+" !== (n = HS[YS]) && "-" !== n) || (t += HS[YS++]),
27156 F$(HS.charCodeAt(YS)))
27157 )
27158 for (; F$(HS.charCodeAt(YS)); ) t += HS[YS++];
27159 else tT({}, p$, A$);
27160 return (
27161 z$(HS.charCodeAt(YS)) && tT({}, p$, A$),
27162 { type: t$, value: parseFloat(t), start: e, end: YS }
27163 );
27164 }
27165 function W$() {

Callers 1

H$Function · 0.85

Calls 6

C$Function · 0.85
F$Function · 0.85
S$Function · 0.85
tTFunction · 0.85
z$Function · 0.85
$$Function · 0.85

Tested by

no test coverage detected