/// <summary> /// Resets the replacer. /// </summary> public void Reset() { ParameterToReplace = null; Replacement = null; InputSymbols.Clear(); VisitDeclarationBody = true; NewType = null; ResetCounter(); }
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()); }
protected PDASymbol GetInputSymbolByContent(object content) { return(InputSymbols.Where(s => (s.Content.GetType() == content.GetType()) && (s.Content == content)).FirstOrDefault()); }
protected List <PDASymbol> GetInputSymbolsByName(params string[] names) { return(InputSymbols.Where(s => names.Contains(s.Name)).ToList()); }