@opensip-cli/lang-rust 0.1.11 → 0.1.12
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/README.md +2 -2
- package/dist/enclosing.d.ts.map +1 -1
- package/dist/enclosing.js +2 -0
- package/dist/enclosing.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -25,8 +25,8 @@ This package is published for the CLI and advanced plugin authors; most users sh
|
|
|
25
25
|
## Documentation
|
|
26
26
|
|
|
27
27
|
- 📚 Project docs: https://opensip.ai/docs/opensip-cli/
|
|
28
|
-
- 🧭 Package catalog (what every package does): https://github.com/opensip-ai/opensip-cli/blob/v0.1.
|
|
29
|
-
- 📦 Source: https://github.com/opensip-ai/opensip-cli/tree/v0.1.
|
|
28
|
+
- 🧭 Package catalog (what every package does): https://github.com/opensip-ai/opensip-cli/blob/v0.1.12/docs/public/70-reference/02-package-catalog.md
|
|
29
|
+
- 📦 Source: https://github.com/opensip-ai/opensip-cli/tree/v0.1.12/packages/languages/lang-rust
|
|
30
30
|
|
|
31
31
|
## License
|
|
32
32
|
|
package/dist/enclosing.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enclosing.d.ts","sourceRoot":"","sources":["../src/enclosing.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAyB,KAAK,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAI5E,uEAAuE;
|
|
1
|
+
{"version":3,"file":"enclosing.d.ts","sourceRoot":"","sources":["../src/enclosing.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAyB,KAAK,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAI5E,uEAAuE;AAEvE,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAE7D;AAED,yDAAyD;AAEzD,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAGlE"}
|
package/dist/enclosing.js
CHANGED
|
@@ -7,10 +7,12 @@
|
|
|
7
7
|
import { findEnclosing, nameOf } from '@opensip-cli/tree-sitter';
|
|
8
8
|
import { isFunction } from './predicates.js';
|
|
9
9
|
/** The nearest enclosing `fn` of `node`, or `null` at module scope. */
|
|
10
|
+
// @yagni-ignore-next-line duplicate-body-candidate -- per-language adapter helper intentionally mirrors tree-sitter composition while keeping language packages independent.
|
|
10
11
|
export function findEnclosingFunction(node) {
|
|
11
12
|
return findEnclosing(node, isFunction);
|
|
12
13
|
}
|
|
13
14
|
/** The name of the nearest enclosing `fn`, or `null`. */
|
|
15
|
+
// @yagni-ignore-next-line duplicate-body-candidate -- per-language adapter helper intentionally mirrors tree-sitter composition while keeping language packages independent.
|
|
14
16
|
export function getEnclosingFunctionName(node) {
|
|
15
17
|
const fn = findEnclosingFunction(node);
|
|
16
18
|
return fn ? nameOf(fn) : null;
|
package/dist/enclosing.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enclosing.js","sourceRoot":"","sources":["../src/enclosing.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,EAAa,MAAM,0BAA0B,CAAC;AAE5E,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,uEAAuE;AACvE,MAAM,UAAU,qBAAqB,CAAC,IAAU;IAC9C,OAAO,aAAa,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;AACzC,CAAC;AAED,yDAAyD;AACzD,MAAM,UAAU,wBAAwB,CAAC,IAAU;IACjD,MAAM,EAAE,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACvC,OAAO,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAChC,CAAC"}
|
|
1
|
+
{"version":3,"file":"enclosing.js","sourceRoot":"","sources":["../src/enclosing.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,EAAa,MAAM,0BAA0B,CAAC;AAE5E,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,uEAAuE;AACvE,6KAA6K;AAC7K,MAAM,UAAU,qBAAqB,CAAC,IAAU;IAC9C,OAAO,aAAa,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;AACzC,CAAC;AAED,yDAAyD;AACzD,6KAA6K;AAC7K,MAAM,UAAU,wBAAwB,CAAC,IAAU;IACjD,MAAM,EAAE,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACvC,OAAO,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAChC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensip-cli/lang-rust",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Rust language adapter for opensip-cli",
|
|
6
6
|
"keywords": [
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"NOTICE"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@opensip-cli/
|
|
38
|
-
"@opensip-cli/
|
|
37
|
+
"@opensip-cli/tree-sitter": "0.1.12",
|
|
38
|
+
"@opensip-cli/core": "0.1.12"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/node": "^24.13.2",
|