pub struct SemanticAnalyzer {
pub agents: HashMap<String, AgentDecl>,
pub workflows: HashMap<String, WorkflowDecl>,
pub contexts: HashMap<String, ContextDecl>,
pub crews: HashMap<String, CrewDecl>,
pub expected_env_vars: HashSet<String>,
pub _expected_memory_refs: HashSet<String>,
pub errors: Vec<SemanticError>,
}Fields§
§agents: HashMap<String, AgentDecl>§workflows: HashMap<String, WorkflowDecl>§contexts: HashMap<String, ContextDecl>§crews: HashMap<String, CrewDecl>§expected_env_vars: HashSet<String>§_expected_memory_refs: HashSet<String>§errors: Vec<SemanticError>Implementations§
Trait Implementations§
Source§impl AstVisitor for SemanticAnalyzer
impl AstVisitor for SemanticAnalyzer
type Result = ()
fn visit_ast(&mut self, ast: &HelixAst) -> Self::Result
fn visit_declaration(&mut self, decl: &Declaration) -> Self::Result
fn visit_project(&mut self, _project: &ProjectDecl) -> Self::Result
fn visit_agent(&mut self, _agent: &AgentDecl) -> Self::Result
fn visit_workflow(&mut self, _workflow: &WorkflowDecl) -> Self::Result
fn visit_memory(&mut self, memory: &MemoryDecl) -> Self::Result
fn visit_context(&mut self, _context: &ContextDecl) -> Self::Result
fn visit_crew(&mut self, _crew: &CrewDecl) -> Self::Result
fn visit_section(&mut self, section: &SectionDecl) -> Self::Result
fn visit_expression(&mut self, expr: &Expression) -> Self::Result
Auto Trait Implementations§
impl Freeze for SemanticAnalyzer
impl RefUnwindSafe for SemanticAnalyzer
impl Send for SemanticAnalyzer
impl Sync for SemanticAnalyzer
impl Unpin for SemanticAnalyzer
impl UnwindSafe for SemanticAnalyzer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more