MCPcopy Create free account
hub / github.com/borgo-lang/borgo / tuple_index_string

Method tuple_index_string

compiler/src/ast.rs:697–706  ·  view source on GitHub ↗
(index: u32)

Source from the content-addressed store, hash-verified

695
696impl Expr {
697 pub fn tuple_index_string(index: u32) -> Option<String> {
698 match index {
699 0 => Some("first".to_string()),
700 1 => Some("second".to_string()),
701 2 => Some("third".to_string()),
702 3 => Some("fourth".to_string()),
703 4 => Some("fifth".to_string()),
704 n => panic!("unsupported tuple index {}", n),
705 }
706 }
707
708 pub fn find_at_position(&self, target: &Span) -> Option<Self> {
709 let res = match self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected