コード例 #1
0
        public override ABnfGuess ReplaceTemplate(Dictionary <string, ABnfGuess> fill_map)
        {
            var replace = sub_type.ReplaceTemplate(fill_map);

            if (replace == null)
            {
                return(null);
            }
            var guess = new ALittleScriptGuessList(replace, is_const, is_native);

            guess.UpdateValue();
            return(guess);
        }
コード例 #2
0
        public override ABnfGuess ReplaceTemplate(Dictionary <string, ABnfGuess> fill_map)
        {
            var key_replace = key_type.ReplaceTemplate(fill_map);

            if (key_replace == null)
            {
                return(null);
            }

            var value_replace = value_type.ReplaceTemplate(fill_map);

            if (value_replace == null)
            {
                return(null);
            }

            var guess = new ALittleScriptGuessMap(key_replace, value_replace, is_const);

            guess.UpdateValue();
            return(guess);
        }