gitnexus 1.6.6-rc.83 → 1.6.6-rc.84

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.
@@ -28,6 +28,55 @@ import { goCallConfig } from '../call-extractors/configs/go.js';
28
28
  import { createHeritageExtractor } from '../heritage-extractors/generic.js';
29
29
  import { goHeritageConfig } from '../heritage-extractors/configs/go.js';
30
30
  import { emitGoScopeCaptures, goArityCompatibility, goBindingScopeFor, goImportOwningScope, goReceiverBinding, interpretGoImport, interpretGoTypeBinding, } from './go/index.js';
31
+ const GO_BUILT_INS = new Set([
32
+ // built-in functions
33
+ 'make',
34
+ 'new',
35
+ 'len',
36
+ 'cap',
37
+ 'append',
38
+ 'copy',
39
+ 'delete',
40
+ 'close',
41
+ 'panic',
42
+ 'recover',
43
+ 'print',
44
+ 'println',
45
+ 'complex',
46
+ 'real',
47
+ 'imag',
48
+ 'clear',
49
+ 'min',
50
+ 'max',
51
+ // built-in types
52
+ 'error',
53
+ 'bool',
54
+ 'string',
55
+ 'int',
56
+ 'int8',
57
+ 'int16',
58
+ 'int32',
59
+ 'int64',
60
+ 'uint',
61
+ 'uint8',
62
+ 'uint16',
63
+ 'uint32',
64
+ 'uint64',
65
+ 'uintptr',
66
+ 'float32',
67
+ 'float64',
68
+ 'complex64',
69
+ 'complex128',
70
+ 'byte',
71
+ 'rune',
72
+ 'any',
73
+ 'comparable',
74
+ // built-in values
75
+ 'true',
76
+ 'false',
77
+ 'nil',
78
+ 'iota',
79
+ ]);
31
80
  export const goProvider = defineLanguage({
32
81
  id: SupportedLanguages.Go,
33
82
  extensions: ['.go'],
@@ -81,6 +130,7 @@ export const goProvider = defineLanguage({
81
130
  variableExtractor: createVariableExtractor(goVariableConfig),
82
131
  classExtractor: createClassExtractor(goClassConfig),
83
132
  heritageExtractor: createHeritageExtractor(goHeritageConfig),
133
+ builtInNames: GO_BUILT_INS,
84
134
  // ── RFC #909 Ring 3: scope-based resolution hooks ──────────
85
135
  emitScopeCaptures: emitGoScopeCaptures,
86
136
  interpretImport: interpretGoImport,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitnexus",
3
- "version": "1.6.6-rc.83",
3
+ "version": "1.6.6-rc.84",
4
4
  "description": "Graph-powered code intelligence for AI agents. Index any codebase, query via MCP or CLI.",
5
5
  "author": "Abhigyan Patwari",
6
6
  "license": "PolyForm-Noncommercial-1.0.0",