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

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

            _loweringDictionary[astNodeType].Add(handler);
        }