diff --git a/gitnexus/src/core/ingestion/type-extractors/jvm.ts b/gitnexus/src/core/ingestion/type-extractors/jvm.ts index 978eba0f4..80d0b197e 100644 --- a/gitnexus/src/core/ingestion/type-extractors/jvm.ts +++ b/gitnexus/src/core/ingestion/type-extractors/jvm.ts @@ -1,6 +1,6 @@ import type { SyntaxNode } from '../utils.js'; import type { LanguageTypeConfig, ParameterExtractor, TypeBindingExtractor, InitializerExtractor, ClassNameLookup, ConstructorBindingScanner } from './types.js'; -import { extractSimpleTypeName, extractVarName, extractCalleeName, findChildByType } from './shared.js'; +import { extractSimpleTypeName, extractVarName, findChildByType } from './shared.js'; // ── Java ────────────────────────────────────────────────────────────────── @@ -73,7 +73,7 @@ const scanJavaConstructorBinding: ConstructorBindingScanner = (node) => { const typeNode = node.childForFieldName('type'); if (!typeNode) return undefined; if (typeNode.text !== 'var') return undefined; - const declarator = node.namedChildren.find((c: any) => c.type === 'variable_declarator'); + const declarator = node.namedChildren.find((c: SyntaxNode) => c.type === 'variable_declarator'); if (!declarator) return undefined; const nameNode = declarator.childForFieldName('name'); const value = declarator.childForFieldName('value'); diff --git a/gitnexus/src/core/ingestion/type-extractors/ruby.ts b/gitnexus/src/core/ingestion/type-extractors/ruby.ts index be4a45a56..21aecf074 100644 --- a/gitnexus/src/core/ingestion/type-extractors/ruby.ts +++ b/gitnexus/src/core/ingestion/type-extractors/ruby.ts @@ -1,5 +1,6 @@ import type { LanguageTypeConfig, ParameterExtractor, TypeBindingExtractor, InitializerExtractor, ClassNameLookup } from './types.js'; import { extractRubyConstructorAssignment } from './shared.js'; +import { SyntaxNode } from '../utils.js'; /** * Ruby type extractor — YARD annotation parsing. @@ -19,7 +20,7 @@ import { extractRubyConstructorAssignment } from './shared.js'; * * Resolution tiers: * - Tier 0: YARD @param annotations (extractDeclaration pre-populates env) - * - Tier 1: Constructor inference via `user = User.new` (handled by CONSTRUCTOR_BINDING_SCANNERS in type-env.ts) + * - Tier 1: Constructor inference via `user = User.new` (handled by scanConstructorBinding in typeConfig) */ /** Regex to extract @param annotations: `@param name [Type]` */