Beispiel #1
0
 internal VariableBreakpoint AddVariableBreakpoint(VariableBreakpoint breakpoint)
 {
     List<VariableBreakpoint> list;
     this.AddBreakpointCommon(breakpoint);
     if (!this._variableBreakpoints.TryGetValue(breakpoint.Variable, out list))
     {
         list = new List<VariableBreakpoint>();
         this._variableBreakpoints.Add(breakpoint.Variable, list);
     }
     list.Add(breakpoint);
     return breakpoint;
 }
 internal void Remove(VariableBreakpoint breakpoint)
 {
     if (breakpoint.AccessMode == VariableAccessMode.Write || breakpoint.AccessMode == VariableAccessMode.ReadWrite)
     {
         this.RemoveDictionaryBreakpoint <string>(this._variableWriteBreakpoints, breakpoint.Variable, (Breakpoint)breakpoint);
     }
     if (breakpoint.AccessMode != VariableAccessMode.Read && breakpoint.AccessMode != VariableAccessMode.ReadWrite)
     {
         return;
     }
     this.RemoveDictionaryBreakpoint <string>(this._variableReadBreakpoints, breakpoint.Variable, (Breakpoint)breakpoint);
 }
Beispiel #3
0
        internal VariableBreakpoint AddVariableBreakpoint(VariableBreakpoint breakpoint)
        {
            List <VariableBreakpoint> list;

            this.AddBreakpointCommon(breakpoint);
            if (!this._variableBreakpoints.TryGetValue(breakpoint.Variable, out list))
            {
                list = new List <VariableBreakpoint>();
                this._variableBreakpoints.Add(breakpoint.Variable, list);
            }
            list.Add(breakpoint);
            return(breakpoint);
        }
        internal Breakpoint NewVariableBreakpoint(
            string variableName,
            VariableAccessMode accessMode,
            ScriptBlock action)
        {
            ++this._numBreakpoints;
            VariableBreakpoint variableBreakpoint = new VariableBreakpoint(this._context, this._scriptPath, variableName, accessMode, action);

            if (accessMode == VariableAccessMode.Write || accessMode == VariableAccessMode.ReadWrite)
            {
                this.AddBreakpoint <string>(this._variableWriteBreakpoints, variableName, (Breakpoint)variableBreakpoint);
            }
            if (accessMode == VariableAccessMode.ReadWrite || accessMode == VariableAccessMode.Read)
            {
                this.AddBreakpoint <string>(this._variableReadBreakpoints, variableName, (Breakpoint)variableBreakpoint);
            }
            return((Breakpoint)variableBreakpoint);
        }
Beispiel #5
0
 internal void RemoveVariableBreakpoint(VariableBreakpoint breakpoint)
 {
     this._variableBreakpoints[breakpoint.Variable].Remove(breakpoint);
 }
Beispiel #6
0
 internal void RemoveVariableBreakpoint(VariableBreakpoint breakpoint)
 {
     this._variableBreakpoints[breakpoint.Variable].Remove(breakpoint);
 }
Beispiel #7
0
        internal VariableBreakpoint AddVariableBreakpoint(VariableBreakpoint breakpoint)
        {
            AddBreakpointCommon(breakpoint);

            List<VariableBreakpoint> breakpoints;
            if (!_variableBreakpoints.TryGetValue(breakpoint.Variable, out breakpoints))
            {
                breakpoints = new List<VariableBreakpoint>();
                _variableBreakpoints.Add(breakpoint.Variable, breakpoints);
            }
            breakpoints.Add(breakpoint);
            return breakpoint;
        }