internal State DefineState(SourceLocation location, string name, LocalsItemDescription[] earlyLocals, int numberOfEarlyLocals)
 {
     return this.dynamicModuleManager.DefineState(location, name, earlyLocals, numberOfEarlyLocals);
 }
 public State DefineState(SourceLocation location, string name, LocalsItemDescription[] earlyLocals, int numberOfEarlyLocals)
 {
     State state;
     lock (this)
     {
         if (!this.stateMap.TryGetValue(location, out state))
         {
             lock (this)
             {
                 state = new State(location, name, earlyLocals, numberOfEarlyLocals);
                 this.stateMap.Add(location, state);
                 this.states.Add(state);
             }
         }
     }
     return state;
 }
 internal System.Activities.Debugger.State DefineState(SourceLocation location, string name, LocalsItemDescription[] earlyLocals, int numberOfEarlyLocals)
 {
     System.Activities.Debugger.State item = new System.Activities.Debugger.State(location, name, earlyLocals, numberOfEarlyLocals);
     this.states.Add(item);
     return item;
 }