mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-11-17 09:33:02 +00:00
style(elixir): format extractor configs
This commit is contained in:
parent
728561d813
commit
d786ef732d
2 changed files with 13 additions and 6 deletions
|
|
@ -29,10 +29,7 @@ function toSnakeCase(segment: string): string {
|
|||
* Elixir.MyApp.User → elixir/my_app/user (Erlang-namespaced modules)
|
||||
*/
|
||||
function moduleToRelPath(moduleName: string): string {
|
||||
return moduleName
|
||||
.split('.')
|
||||
.map(toSnakeCase)
|
||||
.join('/');
|
||||
return moduleName.split('.').map(toSnakeCase).join('/');
|
||||
}
|
||||
|
||||
const ELIXIR_EXTS = ['.ex', '.exs'];
|
||||
|
|
|
|||
|
|
@ -1,11 +1,21 @@
|
|||
// gitnexus/src/core/ingestion/method-extractors/configs/elixir.ts
|
||||
|
||||
import { SupportedLanguages } from 'gitnexus-shared';
|
||||
import type { MethodExtractionConfig, ParameterInfo, MethodVisibility } from '../../method-types.js';
|
||||
import type {
|
||||
MethodExtractionConfig,
|
||||
ParameterInfo,
|
||||
MethodVisibility,
|
||||
} from '../../method-types.js';
|
||||
import type { SyntaxNode } from '../../utils/ast-helpers.js';
|
||||
|
||||
const ELIXIR_DEF_KEYWORDS = new Set([
|
||||
'def', 'defp', 'defmacro', 'defmacrop', 'defguard', 'defguardp', 'defdelegate',
|
||||
'def',
|
||||
'defp',
|
||||
'defmacro',
|
||||
'defmacrop',
|
||||
'defguard',
|
||||
'defguardp',
|
||||
'defdelegate',
|
||||
]);
|
||||
|
||||
const ELIXIR_PRIVATE_KEYWORDS = new Set(['defp', 'defmacrop', 'defguardp']);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue