/*!-----------------------------------------------------------------------------
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * monaco-kusto version: 7.7.0(4c0354ddfc7103811088dadcb6c4ed9e00f6a34e)
 * Released under the MIT license
 * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
 *-----------------------------------------------------------------------------*/define("vs/language/kusto/schema-abb5105c",["exports"],function(e){"use strict";var c={"System.SByte":"bool","System.Byte":"uint8","System.Int16":"int16","System.UInt16":"uint16","System.Int32":"int","System.UInt32":"uint","System.Int64":"long","System.UInt64":"ulong","System.String":"string","System.Single":"float","System.Double":"real","System.DateTime":"datetime","System.TimeSpan":"timespan","System.Guid":"guid","System.Boolean":"bool","Newtonsoft.Json.Linq.JArray":"dynamic","Newtonsoft.Json.Linq.JObject":"dynamic","Newtonsoft.Json.Linq.JToken":"dynamic","System.Object":"dynamic","System.Data.SqlTypes.SqlDecimal":"decimal"},a=function(n){return c[n]||n},m={object:"Object",bool:"Boolean",uint8:"Byte",int16:"Int16",uint16:"UInt16",int:"Int32",uint:"UInt32",long:"Int64",ulong:"UInt64",float:"Single",real:"Double",decimal:"Decimal",datetime:"DateTime",string:"String",dynamic:"Dynamic",timespan:"TimeSpan"},i=function(n){return"(".concat(n.map(function(t){return s(t)}).join(","),")")},s=function(n){if(n.columns&&n.columns.length>0){var t=n.columns.map(function(o){return"".concat(o.name,":").concat(o.cslType||a(o.type))}).join(",");return"".concat(n.name,":").concat(t===""?"*":t)}return"".concat(n.name,":").concat(n.cslType||a(n.type))};e.showSchema=void 0,e.showSchema||(e.showSchema={}),e.getCallName=function(n){return"".concat(n.name,"(").concat(n.inputParameters.map(function(t){return"{".concat(t.name,"}")}).join(","),")")},e.getCslTypeNameFromClrType=a,e.getEntityDataTypeFromCslType=function(n){return m[n]||n},e.getExpression=function(n){return"let ".concat(n.name," = ").concat(i(n.inputParameters)," ").concat(n.body)},e.getInputParametersAsCslString=i});

//# sourceMappingURL=schema-abb5105c.js.map