示例#1
0
文件: Statements.cs 项目: tupipa/vcc
        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);
            }
        }
示例#2
0
文件: Statements.cs 项目: tupipa/vcc
        public override Statement MakeCopyFor(BlockStatement containingBlock)
        {
            if (this.ContainingBlock == containingBlock)
            {
                return(this);
            }
            var result = new VccAssertStatement(containingBlock, this);

            result.CopyTriggersFromTemplate(this);
            return(result);
        }
示例#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);
       }
 }
示例#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;
 }
示例#5
0
 public VccAssertStatement(BlockStatement containingBlock, VccAssertStatement template)
     : base(containingBlock, template)
 {
 }
示例#6
0
文件: Statements.cs 项目: tupipa/vcc
 public VccAssertStatement(BlockStatement containingBlock, VccAssertStatement template)
     : base(containingBlock, template)
 {
 }