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

Function trailing_nullable_re

codegraph-kernel/src/csharp.rs:61–64  ·  view source on GitHub ↗

extractCsharpReturnType's trailing-nullable strip (`/\?+$/`).

()

Source from the content-addressed store, hash-verified

59
60/// extractCsharpReturnType's trailing-nullable strip (`/\?+$/`).
61fn trailing_nullable_re() -> &'static Regex {
62 static RE: OnceLock<Regex> = OnceLock::new();
63 RE.get_or_init(|| Regex::new(r"\?+$").unwrap())
64}
65/// extractCsharpReturnType's generics strip (`/<[^>]*>/g`) — deliberately
66/// non-nesting: `Task<List<Foo>>` → `Task>` → the ident test fails →
67/// returnType undefined (same class of quirk as rust; PRESERVE).

Callers 1

return_type_ofMethod · 0.85

Calls 1

unwrapMethod · 0.60

Tested by

no test coverage detected