示例#1
0
文件: Context.cs 项目: ggrov/tacny
 public DynamicContext Copy() {
   var newM = Util.Copy.CopyMember(md);
   ITactic newTac = Util.Copy.CopyMember(tactic as MemberDecl) as ITactic;
   var new_target = newTarget != null ? Util.Copy.CopyMember(newTarget) : null;
   var newContext = new DynamicContext(newM, newTac, tac_call, tacticBody, localDeclarations, Util.Copy.CopyStatementDict(generatedStatements), tacCounter, new_target);
   newContext.activeCtor = activeCtor;
   newContext.isPartialyResolved = isPartialyResolved;
   newContext.whileStmt = whileStmt;
   return newContext;
 }
示例#2
0
文件: Context.cs 项目: ggrov/tacny
        public DynamicContext Copy()
        {
            var     newM       = Util.Copy.CopyMember(md);
            ITactic newTac     = Util.Copy.CopyMember(tactic as MemberDecl) as ITactic;
            var     new_target = newTarget != null?Util.Copy.CopyMember(newTarget) : null;

            var newContext = new DynamicContext(newM, newTac, tac_call, tacticBody, localDeclarations, Util.Copy.CopyStatementDict(generatedStatements), tacCounter, new_target);

            newContext.activeCtor         = activeCtor;
            newContext.isPartialyResolved = isPartialyResolved;
            newContext.whileStmt          = whileStmt;
            return(newContext);
        }