/// <inheritdoc/> public override void DiscoverAllAnnotations(IList <RuleInstance> result) { base.DiscoverAllAnnotations(result); Name?.DiscoverAllAnnotations(result); FirstCoordinate?.DiscoverAllAnnotations(result); SecondCoordinate?.DiscoverAllAnnotations(result); }
/// <inheritdoc/> public override AstExpression CloneAstExpression(Dictionary <object, object> context) { if (context.ContainsKey(this)) { return((AstExpression)context[this]); } var result = new EntityConditionAstExpression(); context[this] = result; result.KindOfEntityConditionAstExpression = KindOfEntityConditionAstExpression; result.Name = Name.Clone(context); result.FirstCoordinate = FirstCoordinate?.CloneAstExpression(context); result.SecondCoordinate = SecondCoordinate?.CloneAstExpression(context); result.AppendAnnotations(this, context); return(result); }