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

Method new

graphlite/src/ast/validator.rs:140–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138
139impl ValidationContext {
140 fn new() -> Self {
141 let mut ctx = Self {
142 declared_variables: HashSet::new(),
143 variable_types: HashMap::new(),
144 function_signatures: HashMap::new(),
145 _current_scope: Vec::new(),
146 has_graph_context: false,
147 property_types: HashMap::new(),
148 };
149
150 // Register built-in functions
151 ctx.register_builtin_functions();
152 ctx
153 }
154
155 fn register_builtin_functions(&mut self) {
156 use crate::ast::TypeSpec as GqlType;

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected