MCPcopy Create free account
hub / github.com/concensure/Semantic / parse

Method parse

semantic_app/src/session.rs:42–48  ·  view source on GitHub ↗
(raw: Option<&str>)

Source from the content-addressed store, hash-verified

40
41impl RawExpansionMode {
42 pub fn parse(raw: Option<&str>) -> Self {
43 match raw.unwrap_or("normal").trim().to_ascii_lowercase().as_str() {
44 "strict" => Self::Strict,
45 "investigate" => Self::Investigate,
46 _ => Self::Normal,
47 }
48 }
49
50 pub fn label(self) -> &'static str {
51 match self {

Callers 3

parse_rust_fileFunction · 0.45
parse_edit_safety_configFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected