public ScriptMethod(string srcBody, ScriptMethod parent = null, ScriptMethodType type = ScriptMethodType.None) { _srcBody = srcBody; _parent = parent; _scriptMethodType = type; _ParseSrcbody(); }
public bool FindScriptMethodType(ScriptMethodType type) { if (_scriptMethodType == type) { return(true); } if (_parent != null) { return(_parent.FindScriptMethodType(type)); } return(false); }