private void RemoteTargetGlobalAdd(SledLuaVarGlobalType variable) { if (Collection.Count > 0) { Collection[0].ValidationBeginning(); } // Add any locations LuaVarLocationService.AddLocations(variable); // Do any filtering variable.Visible = !LuaVariableFilterService.IsVariableFiltered(variable); // Figure out where to insert if (!LookingUp) { Collection[0].Variables.Add(variable); } else { if (ListInsert.Count > 0) { ListInsert[0].Globals.Add(variable); } else { SledOutDevice.OutLine( SledMessageType.Error, "[SledLuaGlobalVariableService] " + "Failed to add variable: {0}", variable.Name); } } }
private void RemoteTargetCallStackEnvVar(SledLuaVarEnvType variable) { var iCount = Collection.Count; if (iCount <= variable.Level) { return; } Collection[variable.Level].ValidationBeginning(); // Add any locations LuaVarLocationService.AddLocations(variable); // Do any filtering variable.Visible = !LuaVariableFilterService.IsVariableFiltered(variable); // Figure out where to insert if (!LookingUp) { Collection[variable.Level].Variables.Add(variable); } else { if (ListInsert.Count > 0) { ListInsert[0].EnvVars.Add(variable); } else { SledOutDevice.OutLine( SledMessageType.Error, "[SledLuaEnvironmentVariableService] " + "Failed to add environment variable: {0}", variable.Name); } } }