public override ABnfGuess Clone() { var guess = new ALittleScriptGuessStruct(namespace_name, struct_name, struct_dec, is_const); guess.UpdateValue(); return(guess); }
public override ABnfGuessError GuessTypes(out List <ABnfGuess> guess_list) { guess_list = null; var struct_name_dec = m_element.GetStructNameDec(); if (struct_name_dec == null) { return(new ABnfGuessError(m_element, "没有定义结构体名")); } var info = new ALittleScriptGuessStruct(m_namespace_name, struct_name_dec.GetElementText(), m_element, false); info.UpdateValue(); guess_list = new List <ABnfGuess>() { info }; return(null); }