MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / scriptLanguage

Function scriptLanguage

src/resolution/frameworks/react.ts:2065–2067  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

2063}
2064
2065function scriptLanguage(filePath: string): Language {
2066 return /\.tsx$/.test(filePath) ? 'tsx' : /\.[cm]?ts$/.test(filePath) ? 'typescript' : /\.jsx$/.test(filePath) ? 'jsx' : 'javascript';
2067}
2068
2069/** A table literal: the file it is written in, and where it opens. */
2070interface TableLiteral {

Callers 4

lazyModuleFileFunction · 0.85
exportedComponentFunction · 0.85
tableNamedFunction · 0.85
exportedTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected