@arcgis/arcade-languageservice 5.1.0-next.8 → 5.1.0-next.80

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -7
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -2136,7 +2136,6 @@ function Ct(n, e = 2) {
2136
2136
  // '\r'
2137
2137
  case 65279:
2138
2138
  break;
2139
- case 32:
2140
2139
  // ' '
2141
2140
  default:
2142
2141
  t += 1;
@@ -2793,12 +2792,7 @@ class T {
2793
2792
  ).formattedLines;
2794
2793
  }
2795
2794
  formatComment(e) {
2796
- switch (e.type) {
2797
- case u.BlockComment:
2798
- return D.fromString(e.value).surroundWith("/*", "*/");
2799
- default:
2800
- return D.fromString(e.value.trimEnd()).surroundWith("//");
2801
- }
2795
+ return e.type === u.BlockComment ? D.fromString(e.value).surroundWith("/*", "*/") : D.fromString(e.value.trimEnd()).surroundWith("//");
2802
2796
  }
2803
2797
  /**
2804
2798
  * Invoked for a single line format. Measure is the length of the statement would fit
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/arcade-languageservice",
3
- "version": "5.1.0-next.8",
3
+ "version": "5.1.0-next.80",
4
4
  "description": "Arcade Language Service",
5
5
  "homepage": "https://developers.arcgis.com/javascript/latest/",
6
6
  "type": "module",
@@ -15,6 +15,6 @@
15
15
  "tslib": "^2.8.1",
16
16
  "vscode-languageserver-textdocument": "^1.0.11",
17
17
  "vscode-languageserver-types": "^3.17.5",
18
- "@arcgis/languages-api-utils": "5.1.0-next.8"
18
+ "@arcgis/languages-api-utils": "5.1.0-next.80"
19
19
  }
20
20
  }