Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions gitnexus-web/src/config/supported-languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ export enum SupportedLanguages {
Rust = 'rust',
PHP = 'php',
Ruby = 'ruby',
Kotlin = 'kotlin',
Comment thread
magyargergo marked this conversation as resolved.
Swift = 'swift',
}
5 changes: 3 additions & 2 deletions gitnexus-web/src/core/ingestion/call-routing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type CallRouter = (
const noRouting: CallRouter = () => null;

/** Per-language call routing. noRouting = no special routing (normal call processing) */
export const callRouters: Record<SupportedLanguages, CallRouter> = {
export const callRouters = {
[SupportedLanguages.JavaScript]: noRouting,
[SupportedLanguages.TypeScript]: noRouting,
[SupportedLanguages.Python]: noRouting,
Expand All @@ -40,7 +40,8 @@ export const callRouters: Record<SupportedLanguages, CallRouter> = {
[SupportedLanguages.CPlusPlus]: noRouting,
[SupportedLanguages.C]: noRouting,
[SupportedLanguages.Ruby]: routeRubyCall,
};
[SupportedLanguages.Kotlin]: noRouting,
} satisfies Record<SupportedLanguages, CallRouter>;

// ── Result types ────────────────────────────────────────────────────────────

Expand Down
4 changes: 2 additions & 2 deletions gitnexus/src/core/ingestion/call-routing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type CallRouter = (
const noRouting: CallRouter = () => null;

/** Per-language call routing. noRouting = no special routing (normal call processing) */
export const callRouters: Record<SupportedLanguages, CallRouter> = {
export const callRouters = {
[SupportedLanguages.JavaScript]: noRouting,
[SupportedLanguages.TypeScript]: noRouting,
[SupportedLanguages.Python]: noRouting,
Expand All @@ -41,7 +41,7 @@ export const callRouters: Record<SupportedLanguages, CallRouter> = {
[SupportedLanguages.CPlusPlus]: noRouting,
[SupportedLanguages.C]: noRouting,
[SupportedLanguages.Ruby]: routeRubyCall,
};
} satisfies Record<SupportedLanguages, CallRouter>;

// ── Result types ────────────────────────────────────────────────────────────

Expand Down
Loading