MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / extract_string_literal

Method extract_string_literal

graphlite/src/plan/optimizer.rs:731–738  ·  view source on GitHub ↗

ROADMAP v0.6.0 - Literal extraction for predicate analysis

(&self, expr: &Expression)

Source from the content-addressed store, hash-verified

729 /// Extract string literal from expression
730 #[allow(dead_code)] // ROADMAP v0.6.0 - Literal extraction for predicate analysis
731 fn extract_string_literal(&self, expr: &Expression) -> Option<String> {
732 use crate::ast::{Expression, Literal};
733
734 if let Expression::Literal(Literal::String(s)) = expr {
735 return Some(s.clone());
736 }
737 None
738 }
739
740 /// Extract number literal from expression
741 #[allow(dead_code)] // ROADMAP v0.6.0 - Numeric literal extraction for cost estimation

Callers 1

Calls 1

cloneMethod · 0.80

Tested by

no test coverage detected