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

Method from_language

codegraph-kernel/src/tsjs/mod.rs:35–43  ·  view source on GitHub ↗
(language: &str)

Source from the content-addressed store, hash-verified

33
34impl Variant {
35 pub fn from_language(language: &str) -> Option<Variant> {
36 match language {
37 "typescript" => Some(Variant::Typescript),
38 "tsx" => Some(Variant::Tsx),
39 "javascript" => Some(Variant::Javascript),
40 "jsx" => Some(Variant::Jsx),
41 _ => None,
42 }
43 }
44 /// TS-family (typescript/tsx): type annotations, interfaces, enums,
45 /// aliases, visibility. The JS family lacks all of those hooks.
46 fn is_ts(self) -> bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected