public override ABnfGuess Clone()
        {
            var guess = new ALittleScriptGuessNamespace(namespace_name, namespace_dec);

            guess.UpdateValue();
            return(guess);
        }
Example #2
0
        public override ABnfGuessError GuessTypes(out List <ABnfGuess> guess_list)
        {
            guess_list = null;
            var name_dec = m_element.GetNamespaceNameDec();

            if (name_dec == null)
            {
                return(new ABnfGuessError(m_element, "没有定义命名域"));
            }

            var info = new ALittleScriptGuessNamespace(name_dec.GetElementText(), m_element);

            info.UpdateValue();

            guess_list = new List <ABnfGuess>()
            {
                info
            };
            return(null);
        }