@aroman22/codegraph-vba 1.12.0 → 1.13.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/db/queries.d.ts
CHANGED
|
@@ -534,8 +534,9 @@ export declare class QueryBuilder {
|
|
|
534
534
|
referenceKind: string;
|
|
535
535
|
}>): void;
|
|
536
536
|
/**
|
|
537
|
-
*
|
|
538
|
-
*
|
|
537
|
+
* Park refs a completed resolution pass could not resolve as `failed`, or
|
|
538
|
+
* as `declined-runtime` when the resolver recognizes built-in runtime noise.
|
|
539
|
+
* Parked rows are invisible to the pending
|
|
539
540
|
* count/batch readers (so drain loops and the #1187 orphan sweep still
|
|
540
541
|
* terminate) but stay queryable by name_tail so a later sync can retry them
|
|
541
542
|
* when a changed file introduces a symbol that could satisfy them. name_tail
|
|
@@ -546,6 +547,7 @@ export declare class QueryBuilder {
|
|
|
546
547
|
fromNodeId: string;
|
|
547
548
|
referenceName: string;
|
|
548
549
|
referenceKind: string;
|
|
550
|
+
status?: 'failed' | 'declined-runtime';
|
|
549
551
|
}>): void;
|
|
550
552
|
/**
|
|
551
553
|
* Failed refs whose name tail matches one of the given symbol names — the
|
|
@@ -25,6 +25,12 @@ export declare const PROCEDURE_END_RE: RegExp;
|
|
|
25
25
|
export declare const PRIMITIVE_TYPES: Set<string>;
|
|
26
26
|
/** Keywords we never want to match as call receivers. */
|
|
27
27
|
export declare const CALL_KEYWORD_BLACKLIST: Set<string>;
|
|
28
|
+
/**
|
|
29
|
+
* VBA reserved words that cannot name an unqualified user-code target.
|
|
30
|
+
* Stored lowercase so source casing cannot change classification.
|
|
31
|
+
*/
|
|
32
|
+
export declare const VBA_KEYWORDS: Set<string>;
|
|
33
|
+
export declare function isVbaKeyword(name: string): boolean;
|
|
28
34
|
/**
|
|
29
35
|
* Access runtime objects and singletons. Calls on these receivers are
|
|
30
36
|
* real VBA calls but the targets are NOT user-defined modules or
|
|
@@ -37,4 +37,7 @@ export declare const RUNTIME_OBJECTS: ReadonlySet<string>;
|
|
|
37
37
|
* defensively so a bracketed receiver (`[DAO]`) still matches.
|
|
38
38
|
*/
|
|
39
39
|
export declare function isRuntimeObject(receiver: string | null | undefined): boolean;
|
|
40
|
+
/** Canonical VBA and Access built-in functions that never resolve to project code. */
|
|
41
|
+
export declare const VBA_STDLIB_FUNCTIONS: ReadonlySet<string>;
|
|
42
|
+
export declare function isVbaStdlibFunction(name: string | null | undefined): boolean;
|
|
40
43
|
//# sourceMappingURL=vba-runtime-objects.d.ts.map
|
package/dist/types.d.ts
CHANGED
|
@@ -175,7 +175,7 @@ export interface ExtractionError {
|
|
|
175
175
|
* layer. The legacy `EdgeKind` literal `'references'` is preserved as
|
|
176
176
|
* `references` here via `EdgeKind` — back-compat for any push site this
|
|
177
177
|
* round does not reclassify (e.g. the Implements emitter). New literals:
|
|
178
|
-
* - `
|
|
178
|
+
* - `calls` paren-form `Name(...)` or statement-form Sub call
|
|
179
179
|
* - `qualified-call` `Receiver.Member(...)` (qualified-paren) or
|
|
180
180
|
* `Receiver.Member args` (qualified-statement)
|
|
181
181
|
* - `property-get` `Me.Name` (dot access, read)
|
|
@@ -190,12 +190,13 @@ export interface ExtractionError {
|
|
|
190
190
|
* - `dao-query` `DoCmd.OpenQuery "X"` argument
|
|
191
191
|
* `dao-field-get` / `dao-field-set` are deliberately deferred to round-4.
|
|
192
192
|
*/
|
|
193
|
-
|
|
193
|
+
/** `calls` is the canonical kind for unresolved procedure and function calls. */
|
|
194
|
+
export type ReferenceKind = EdgeKind | 'function_ref' | 'qualified-call' | 'property-get' | 'property-set' | 'bang-get' | 'bang-set' | 'unqualified-ident' | 'member-with' | 'dao-query';
|
|
194
195
|
/**
|
|
195
196
|
* Runtime guard for whether a `ReferenceKind` literal is also an `EdgeKind`
|
|
196
197
|
* literal (i.e. the value flows from an unresolved-ref row straight onto the
|
|
197
198
|
* kind column of a resolved edge without remapping). Round-3 (issue #108)
|
|
198
|
-
* introduced shape-based classifier literals (`
|
|
199
|
+
* introduced shape-based classifier literals (`qualified-call`,
|
|
199
200
|
* `property-get`, …) that are valid as a `ReferenceKind` but are NOT valid
|
|
200
201
|
* edge kinds — edges still use the `calls`/`references` family of literals.
|
|
201
202
|
* The resolver uses this guard to fall back to `'references'` for the edge
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aroman22/codegraph-vba",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "Local-first code intelligence for AI agents (MCP). Self-contained — bundles its own runtime.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"codegraph-vba": "npm-shim.js"
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"./package.json": "./package.json"
|
|
16
16
|
},
|
|
17
17
|
"optionalDependencies": {
|
|
18
|
-
"@aroman22/codegraph-vba-darwin-arm64": "1.
|
|
19
|
-
"@aroman22/codegraph-vba-darwin-x64": "1.
|
|
20
|
-
"@aroman22/codegraph-vba-linux-arm64": "1.
|
|
21
|
-
"@aroman22/codegraph-vba-linux-x64": "1.
|
|
22
|
-
"@aroman22/codegraph-vba-win32-arm64": "1.
|
|
23
|
-
"@aroman22/codegraph-vba-win32-x64": "1.
|
|
18
|
+
"@aroman22/codegraph-vba-darwin-arm64": "1.13.0",
|
|
19
|
+
"@aroman22/codegraph-vba-darwin-x64": "1.13.0",
|
|
20
|
+
"@aroman22/codegraph-vba-linux-arm64": "1.13.0",
|
|
21
|
+
"@aroman22/codegraph-vba-linux-x64": "1.13.0",
|
|
22
|
+
"@aroman22/codegraph-vba-win32-arm64": "1.13.0",
|
|
23
|
+
"@aroman22/codegraph-vba-win32-x64": "1.13.0"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
"npm-shim.js",
|