@mojir/lits 1.2.2-alpha.1 → 1.2.2-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2866,7 +2866,7 @@ var mathNormalExpression = {
2866
2866
  },
2867
2867
  };
2868
2868
 
2869
- var version = "1.2.2-alpha.1";
2869
+ var version = "1.2.2-alpha.2";
2870
2870
 
2871
2871
  var uuidTemplate = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx';
2872
2872
  var xyRegexp = /[xy]/g;
@@ -6323,15 +6323,6 @@ function evaluateNumberAsFunction(fn, params, sourceCodeInfo) {
6323
6323
  return toAny(param[fn]);
6324
6324
  }
6325
6325
 
6326
- // export function findUnresolvedIdentifiersInFunction(ast, contextStack, builtin: Builtin) => {
6327
- // const astNodes = Array.isArray(ast) ? ast : ast.b
6328
- // const unresolvedIdentifiers = new Set<UnresolvedIdentifier>()
6329
- // for (const subNode of astNodes) {
6330
- // findUnresolvedIdentifiersInAstNode(subNode, contextStack, builtin)
6331
- // .forEach(symbol => unresolvedIdentifiers.add(symbol))
6332
- // }
6333
- // return unresolvedIdentifiers
6334
- // }
6335
6326
  var findUnresolvedIdentifiers = function (ast, contextStack, builtin) {
6336
6327
  var e_1, _a;
6337
6328
  var astNodes = Array.isArray(ast) ? ast : ast.b;
@@ -6940,26 +6931,6 @@ function analyze(ast, params) {
6940
6931
  outcomes: calculateOutcomes(createContextStack(params), ast.b),
6941
6932
  };
6942
6933
  }
6943
- function findUnresolvedIdentifiersInFunction(fun, params) {
6944
- if (!isUserDefinedFunction(fun)) {
6945
- return new Set();
6946
- }
6947
- var result = new Set();
6948
- var contextStack = createContextStack(params);
6949
- fun.o.forEach(function (overload) {
6950
- var innerContextStack = contextStack.clone();
6951
- var newContext = overload.as.mandatoryArguments.reduce(function (acc, arg) {
6952
- acc[arg] = { value: null };
6953
- return acc;
6954
- }, {});
6955
- if (overload.as.restArgument) {
6956
- newContext[overload.as.restArgument] = { value: null };
6957
- }
6958
- var overloadSymbols = findUnresolvedIdentifiers(overload.b, innerContextStack.create(newContext), builtin);
6959
- overloadSymbols.forEach(function (symbol) { return result.add(symbol); });
6960
- });
6961
- return result;
6962
- }
6963
6934
 
6964
6935
  function parseNumber(tokenStream, position) {
6965
6936
  var _a;
@@ -15603,7 +15574,6 @@ exports.assertLitsFunction = assertLitsFunction;
15603
15574
  exports.assertNativeJsFunction = assertNativeJsFunction;
15604
15575
  exports.assertUserDefinedFunction = assertUserDefinedFunction;
15605
15576
  exports.createNativeJsFunction = createNativeJsFunction;
15606
- exports.findUnresolvedIdentifiersInFunction = findUnresolvedIdentifiersInFunction;
15607
15577
  exports.isApiName = isApiName;
15608
15578
  exports.isBuiltinFunction = isBuiltinFunction;
15609
15579
  exports.isDataType = isDataType;