UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

6 lines (5 loc) 836 B
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. */ async function r(r){const{CharStream:e,CommonTokenStream:a,ParseTreeWalker:t}=await import("../../chunks/antlr4.web.js"),{default:n}=await import("./antlr/BindParamsListener.js"),{default:s}=await import("../../chunks/CypherLexer.js"),{default:o}=await import("../../chunks/CypherParser.js"),{default:i}=await import("./antlr/SimpleErrorListener.js"),m=new i,w=new s(new e(r));w.removeErrorListeners(),w.addErrorListener(m);const p=new o(new a(w));p.removeErrorListeners(),p.addErrorListener(m);const d=p.oC_Cypher(),l=new n;return(new t).walk(l,d),{bindParameters:Array.from(new Set(l.bindParams)).map((r=>r.slice(1))),parseErrors:m.errors}}export{r as getBindParametersFromCypherQuery};