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