예제 #1
0
 /// <summary>
 /// Resets the replacer.
 /// </summary>
 public void Reset()
 {
     ParameterToReplace = null;
     Replacement        = null;
     InputSymbols.Clear();
     VisitDeclarationBody = true;
     NewType = null;
     ResetCounter();
 }
예제 #2
0
                protected PDASymbol GetInputSymbolByName(string name)
                {
                    if (InputSymbols.Where(s => s.Name == name).FirstOrDefault() == null)
                    {
                        Debug.Log(string.Format("No input symbol: {0}", name));
                    }

                    return(InputSymbols.Where(s => s.Name == name).FirstOrDefault());
                }
예제 #3
0
 protected PDASymbol GetInputSymbolByContent(object content)
 {
     return(InputSymbols.Where(s => (s.Content.GetType() == content.GetType()) &&
                               (s.Content == content)).FirstOrDefault());
 }
예제 #4
0
 protected List <PDASymbol> GetInputSymbolsByName(params string[] names)
 {
     return(InputSymbols.Where(s => names.Contains(s.Name)).ToList());
 }