Example #1
0
        private void CopyTriggersFromTemplate(VccAssertStatement template)
        {
            IEnumerable <IEnumerable <Expression> > /*?*/ triggers = template.Compilation.ContractProvider.GetTriggersFor(template);

            if (triggers != null)
            {
                IEnumerable <IEnumerable <Expression> > copiedTriggers = CopyTriggers(triggers, this.ContainingBlock);
                this.Compilation.ContractProvider.AssociateTriggersWithQuantifier(this, copiedTriggers);
            }
        }
Example #2
0
        public override Statement MakeCopyFor(BlockStatement containingBlock)
        {
            if (this.ContainingBlock == containingBlock)
            {
                return(this);
            }
            var result = new VccAssertStatement(containingBlock, this);

            result.CopyTriggersFromTemplate(this);
            return(result);
        }
Example #3
0
 private void CopyTriggersFromTemplate(VccAssertStatement template)
 {
     IEnumerable<IEnumerable<Expression>>/*?*/ triggers = template.Compilation.ContractProvider.GetTriggersFor(template);
       if (triggers != null) {
     IEnumerable<IEnumerable<Expression>> copiedTriggers = CopyTriggers(triggers, this.ContainingBlock);
     this.Compilation.ContractProvider.AssociateTriggersWithQuantifier(this, copiedTriggers);
       }
 }
Example #4
0
 public override Statement MakeCopyFor(BlockStatement containingBlock)
 {
     if (this.ContainingBlock == containingBlock) return this;
       var result = new VccAssertStatement(containingBlock, this);
       result.CopyTriggersFromTemplate(this);
       return result;
 }
Example #5
0
 public VccAssertStatement(BlockStatement containingBlock, VccAssertStatement template)
     : base(containingBlock, template)
 {
 }
Example #6
0
 public VccAssertStatement(BlockStatement containingBlock, VccAssertStatement template)
     : base(containingBlock, template)
 {
 }