triangulum 0.24.2 → 0.25.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82788568b3fd3bcf93b64c1faa30c8bcbbb4fa5332d1906d75b5a9302ffcfc7d
4
- data.tar.gz: 77ab63ef9f5802ed7d8f9c27e6bb9aa7262420af7d9142909769de1c9e86e422
3
+ metadata.gz: f17f3198d7f89efda9b81d7d24c103af4bb0ce2076d75f8a973a385f0ea810f5
4
+ data.tar.gz: a1f1c35cc1f197a92fe28ef066dacce4ed1a04ef370f178ea6d1fd51c97d7e27
5
5
  SHA512:
6
- metadata.gz: c9a2a3ab86c9128de98ed31f74ad017b8630af10906819be6e04872f16bd8cac3f6b717986bd2179d669e94d249baac8270d398b54bd8571ebe546f866c74457
7
- data.tar.gz: abf484e23f28c8fada5923d68f5501a4a3b5732dbd726a28ab9d0d5b38b4961967ff4847a04328649b33029c193eae3d7d7c1b87844b1e5c61b6a7207e6fec87
6
+ metadata.gz: 3980feafe6ca4de682212ae45f2eb6fb85383e29317492ae333f276b366e4c6991e8b5e0134b1c6ebaaed6bd1fd33c0ce83f70cf1e7335ad7dd252c3f9144229
7
+ data.tar.gz: f9f08f3f84b659f331b835dc84d05b176d2a431f44d3af18fc0606eb32d72d0381b068078eedac3ab58e1b9ddf3e90b4e8b43761ff9ce9bec612c3f95378e164
@@ -175760,7 +175760,7 @@ function C3(e6, t3, n3, r3 = false) {
175760
175760
  }), `/* @pos ${t4} ${a4} */ ${r4}`;
175761
175761
  }
175762
175762
  if (o5.__typename === "LiteralValue")
175763
- return `/* @pos ${t4} ${a4} */ ${g4(o5?.value)}`;
175763
+ return `/* @pos ${t4} ${a4} */ ${o5?.value !== null && o5?.value !== undefined ? g4(o5?.value) : undefined}`;
175764
175764
  if (o5.__typename === "SubFlowValue") {
175765
175765
  let e7 = o5;
175766
175766
  return `/* @pos ${t4} ${a4} */ (...${`p_${S3(t4)}_${a4}`}) => {
@@ -175825,16 +175825,29 @@ var E3 = (e6, n3, r3) => {
175825
175825
  severity: "error"
175826
175826
  }]
175827
175827
  };
175828
- let i3 = C3(e6, n3, r3), a3 = "index.ts", o4 = y4(a3, i3), s4 = o4.getSourceFile(a3), c4 = o4.languageService.getProgram().getSemanticDiagnostics(s4).map((e7) => {
175828
+ let i3 = new Set(n3?.map((e7) => e7.identifier)), a3 = (e6.nodes?.nodes ?? []).filter((e7) => e7?.functionDefinition && !i3.has(e7.functionDefinition.identifier)).map((e7) => ({
175829
+ nodeId: e7.id,
175830
+ parameterIndex: null,
175831
+ code: 0,
175832
+ message: `The function definition "${e7.functionDefinition.identifier}" is not reachable.`,
175833
+ severity: "error"
175834
+ }));
175835
+ if (a3.length > 0)
175836
+ return {
175837
+ isValid: false,
175838
+ returnType: "void",
175839
+ diagnostics: a3
175840
+ };
175841
+ let o4 = C3(e6, n3, r3), s4 = "index.ts", c4 = y4(s4, o4), l4 = c4.getSourceFile(s4), u5 = c4.languageService.getProgram().getSemanticDiagnostics(l4).map((e7) => {
175829
175842
  let n4 = import_typescript.flattenDiagnosticMessageText(e7.messageText, `
175830
175843
  `), r4, i4 = null;
175831
175844
  if (e7.start !== undefined) {
175832
- let t3 = s4.getFullText(), n5 = Math.max(0, e7.start - 300), a4 = Math.min(t3.length, e7.start), o5 = t3.substring(n5, a4), c5 = /\/\* @pos ([^ ]+) (\d+|null) \*\//g, l4, u5 = null, d5 = -1;
175833
- for (;(l4 = c5.exec(o5)) !== null; ) {
175834
- let t4 = n5 + l4.index + l4[0].length;
175835
- t4 <= e7.start && t4 > d5 && (d5 = t4, u5 = l4);
175845
+ let t3 = l4.getFullText(), n5 = Math.max(0, e7.start - 300), a4 = Math.min(t3.length, e7.start), o5 = t3.substring(n5, a4), s5 = /\/\* @pos ([^ ]+) (\d+|null) \*\//g, c5, u6 = null, d5 = -1;
175846
+ for (;(c5 = s5.exec(o5)) !== null; ) {
175847
+ let t4 = n5 + c5.index + c5[0].length;
175848
+ t4 <= e7.start && t4 > d5 && (d5 = t4, u6 = c5);
175836
175849
  }
175837
- u5 && (r4 = u5[1] === "null" ? null : u5[1], i4 = parseInt(u5[2], 10));
175850
+ u6 && (r4 = u6[1] === "null" ? null : u6[1], i4 = parseInt(u6[2], 10));
175838
175851
  }
175839
175852
  return {
175840
175853
  message: n4,
@@ -175845,9 +175858,9 @@ var E3 = (e6, n3, r3) => {
175845
175858
  };
175846
175859
  }).filter((e7) => e7 !== null);
175847
175860
  return {
175848
- isValid: !c4.some((e7) => e7?.severity === "error"),
175861
+ isValid: !u5.some((e7) => e7?.severity === "error"),
175849
175862
  returnType: "void",
175850
- diagnostics: c4
175863
+ diagnostics: u5
175851
175864
  };
175852
175865
  };
175853
175866
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Triangulum
4
- VERSION = '0.24.2'
4
+ VERSION = '0.25.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: triangulum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.2
4
+ version: 0.25.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Niklas van Schrick