public static void Register(Type astNodeType, AstLoweringHandler handler)
        {
            if (!_loweringDictionary.ContainsKey(astNodeType))
            {
                _loweringDictionary[astNodeType] = new List<AstLoweringHandler>();
            }

            _loweringDictionary[astNodeType].Add(handler);
        }
Exemple #2
0
        public static void Register(Type astNodeType, AstLoweringHandler handler)
        {
            if (!_loweringDictionary.ContainsKey(astNodeType))
            {
                _loweringDictionary[astNodeType] = new List <AstLoweringHandler>();
            }

            _loweringDictionary[astNodeType].Add(handler);
        }