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

Function is_scala_builtin

codegraph-kernel/src/scala.rs:87–93  ·  view source on GitHub ↗

SCALA_BUILTIN_TYPES (languages/scala.ts:14-17) — the hook's OWN smaller set.

(name: &str)

Source from the content-addressed store, hash-verified

85
86/// SCALA_BUILTIN_TYPES (languages/scala.ts:14-17) — the hook's OWN smaller set.
87fn is_scala_builtin(name: &str) -> bool {
88 matches!(
89 name,
90 "Int" | "Long" | "Short" | "Byte" | "Float" | "Double" | "Boolean" | "Char" | "Unit"
91 | "String" | "Any" | "AnyRef" | "AnyVal" | "Nothing" | "Null"
92 )
93}
94
95/// extractScalaReturnType's simple-name gate (`/^[A-Za-z_]\w*$/`).
96fn simple_type_name_re() -> &'static Regex {

Callers 1

emit_scala_type_refsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected