public override ABnfGuess Clone() { var guess = new ALittleScriptGuessEnum(namespace_name, enum_name, enum_dec); guess.UpdateValue(); return(guess); }
public override ABnfGuessError GuessTypes(out List <ABnfGuess> guess_list) { guess_list = null; var name_dec = m_element.GetEnumNameDec(); if (name_dec == null) { return(new ABnfGuessError(m_element, "没有定义枚举名")); } var info = new ALittleScriptGuessEnum(m_namespace_name, name_dec.GetElementText(), m_element); info.UpdateValue(); guess_list = new List <ABnfGuess>() { info }; return(null); }