@suss/adapter-ruby 0.27.0 → 0.28.0
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.cjs +603 -197
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +593 -199
- package/package.json +7 -7
package/dist/index.d.cts
CHANGED
|
@@ -544,6 +544,8 @@ declare function discoverUnits(root: Node, options: DiscoveryOptions): Promise<R
|
|
|
544
544
|
interface ConstantDefinition {
|
|
545
545
|
readonly qualifiedName: string;
|
|
546
546
|
readonly key: string;
|
|
547
|
+
/** `class`/`module` opens a constant every file may open again; `X = ...` sets one. */
|
|
548
|
+
readonly kind: "declaration" | "assignment";
|
|
547
549
|
}
|
|
548
550
|
/** A constant read somewhere, with the nesting it was read inside. */
|
|
549
551
|
interface ConstantReference {
|
|
@@ -583,7 +585,7 @@ declare function nodeId(filePath: string, node: Node): string;
|
|
|
583
585
|
* expression in hand and wants to ask the rules about it. `enclosing` is
|
|
584
586
|
* the method the expression is written in, or null outside one.
|
|
585
587
|
*/
|
|
586
|
-
declare function readKey(filePath: string,
|
|
588
|
+
declare function readKey(filePath: string, written: Node, enclosing: Node | null): string;
|
|
587
589
|
/**
|
|
588
590
|
* Walk a file and emit the value facts. A method is walked in its own right,
|
|
589
591
|
* so a body's returns and calls belong to the method that wrote them.
|
package/dist/index.d.ts
CHANGED
|
@@ -544,6 +544,8 @@ declare function discoverUnits(root: Node, options: DiscoveryOptions): Promise<R
|
|
|
544
544
|
interface ConstantDefinition {
|
|
545
545
|
readonly qualifiedName: string;
|
|
546
546
|
readonly key: string;
|
|
547
|
+
/** `class`/`module` opens a constant every file may open again; `X = ...` sets one. */
|
|
548
|
+
readonly kind: "declaration" | "assignment";
|
|
547
549
|
}
|
|
548
550
|
/** A constant read somewhere, with the nesting it was read inside. */
|
|
549
551
|
interface ConstantReference {
|
|
@@ -583,7 +585,7 @@ declare function nodeId(filePath: string, node: Node): string;
|
|
|
583
585
|
* expression in hand and wants to ask the rules about it. `enclosing` is
|
|
584
586
|
* the method the expression is written in, or null outside one.
|
|
585
587
|
*/
|
|
586
|
-
declare function readKey(filePath: string,
|
|
588
|
+
declare function readKey(filePath: string, written: Node, enclosing: Node | null): string;
|
|
587
589
|
/**
|
|
588
590
|
* Walk a file and emit the value facts. A method is walked in its own right,
|
|
589
591
|
* so a body's returns and calls belong to the method that wrote them.
|