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
3 changes: 3 additions & 0 deletions lang/uniast/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const (
TypeScript Language = "typescript"
Java Language = "java"
Unknown Language = ""
Kotlin Language = "kotlin"
)

func (l Language) String() string {
Expand Down Expand Up @@ -72,6 +73,8 @@ func NewLanguage(lang string) (l Language) {
return TypeScript
case "java":
return Java
case "kotlin":
return Kotlin
default:
return Unknown
}
Expand Down
2 changes: 1 addition & 1 deletion ts-parser/src/parser/ModuleParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class ModuleParser {
}

return {
Language: '', // TypeScript
Language: 'typescript', // TypeScript
Version: moduleVersion,
Name: moduleName,
Dir: isExternal ? '' : relativeDir,
Expand Down
2 changes: 1 addition & 1 deletion ts-parser/src/types/uniast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface Repository {
* A compilation unit, e.g., a Go module or an npm package.
*/
export interface Module {
Language: 'go' | 'rust' | 'cxx' | 'python' | '';
Language: 'go' | 'rust' | 'cxx' | 'python' | 'typescript' | '';
Version: string;
Name: string;
/** Path relative to the repository root. Empty string "" denotes an external dependency module. */
Expand Down
1 change: 0 additions & 1 deletion ts-parser/src/utils/monorepo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,5 +177,4 @@ export class MonorepoUtils {
console.warn(`Error discovering packages in ${currentDir}:`, error);
}
}

}
Loading