mirror of
https://github.com/gorules/zen.git
synced 2026-10-12 16:02:59 +00:00
fix: fmt
This commit is contained in:
@@ -455,12 +455,15 @@ impl DecisionTableIr {
|
||||
let Some(cell) = rule.get(&col.id).filter(|c| !c.is_empty()) else {
|
||||
continue;
|
||||
};
|
||||
let cell_target = rule.get(ROW_ID_KEY).map(|row| CursorTarget::DecisionTableCell {
|
||||
row: row.clone(),
|
||||
col: col.id.clone(),
|
||||
let cell_target = rule
|
||||
.get(ROW_ID_KEY)
|
||||
.map(|row| CursorTarget::DecisionTableCell {
|
||||
row: row.clone(),
|
||||
col: col.id.clone(),
|
||||
});
|
||||
let analysis = cx.with_target(cell_target, |cx| {
|
||||
cx.analyze_standard(cell, Some(col.id.clone()))
|
||||
});
|
||||
let analysis =
|
||||
cx.with_target(cell_target, |cx| cx.analyze_standard(cell, Some(col.id.clone())));
|
||||
match &declared {
|
||||
Some(expected) => {
|
||||
let actual = &analysis.return_type;
|
||||
|
||||
@@ -18,11 +18,11 @@ pub use crate::workspace::{
|
||||
DiagnosticLocation, Dictionary, DictionaryEntryInfo, DiscriminantVariant, DiscriminatedUnion,
|
||||
EngineEdit, Entity, EntityField, EvaluateRequest, EvaluationError, EvaluationResult,
|
||||
ExpressionFacts, ExpressionKind, FieldOrigin, FunctionResolutionRequest, FunctionTypeResolver,
|
||||
GraphAnalysis,
|
||||
GraphNodeAnalysis, GraphSignature, GraphTraceMap, GuardedProperty, InputProperty,
|
||||
InputValidationError, InspectResult, NlExpression, OutputProperty, PrepareRename, PropertyKind,
|
||||
ReferenceKind, ReferenceSite, RenameTarget, SchemaFieldKind, SchemaGroup, ScopeRequest,
|
||||
Severity, SlotResponse, SlotRole, Span, Trace, Workspace, WriteConflict, WriteTrace,
|
||||
GraphAnalysis, GraphNodeAnalysis, GraphSignature, GraphTraceMap, GuardedProperty,
|
||||
InputProperty, InputValidationError, InspectResult, NlExpression, OutputProperty,
|
||||
PrepareRename, PropertyKind, ReferenceKind, ReferenceSite, RenameTarget, SchemaFieldKind,
|
||||
SchemaGroup, ScopeRequest, Severity, SlotResponse, SlotRole, Span, Trace, Workspace,
|
||||
WriteConflict, WriteTrace,
|
||||
};
|
||||
pub use raw::{BlockDoc, PolicyDocument};
|
||||
|
||||
|
||||
@@ -14,11 +14,11 @@ use db::Db;
|
||||
use zen_expression::nl::NlResult;
|
||||
use zen_expression::variable::VariableType;
|
||||
|
||||
pub use slot::{CursorScope, ExpressionFacts, SlotResponse};
|
||||
pub use graph::{
|
||||
FunctionResolutionRequest, FunctionTypeResolver, GraphAnalysis, GraphNodeAnalysis,
|
||||
GraphSignature, GraphTraceMap,
|
||||
};
|
||||
pub use slot::{CursorScope, ExpressionFacts, SlotResponse};
|
||||
pub use types::{
|
||||
BlockExecution, BlockRef, BlockTrace, Completion, ConditionTrace, ConditionalSchema, Cursor,
|
||||
CursorTarget, DecisionTableExtras, DependencyNode, Diagnostic, DiagnosticCode,
|
||||
|
||||
Reference in New Issue
Block a user