Пример #1
0
 /// <summary>
 /// Method that can be called by ActionList mechanism, that adds an element into the list.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="datacontext"></param>
 /// <param name="parameters"></param>
 private static void AddElementMethod <T>(DataContext datacontext, LocalVariables parameters)
 {
     ((ExtractionListBase <T>)parameters["list"]).AddElement((T)parameters["element"]);
 }
Пример #2
0
 /// <summary>
 /// Init new stack of variables.
 /// </summary>
 /// <param name="vars"></param>
 public ScopesStack(DataContext context, LocalVariables vars)
 {
     Push(context, vars);
 }
Пример #3
0
        /// <summary>
        /// Create new actions and add them into the parameter's ActionsToDo list.
        /// </summary>
        /// <param name="methods">List of methods to do.</param>
        public static void AddAction(ExtractionMethod[] methods, DataContext context, LocalVariables parameters)
        {
            foreach (var m in methods)
            {
                // create the action
                ActionItem newAction = new ActionItem(m, context, parameters);

                // add the action to all objects specified within the action parameters
                parameters.AddActionToParameters(newAction);
            }
        }