private static TypeLoader<NonTerminalNode, int> LoadImplTypes() { TypeLoader<NonTerminalNode, int> loader = new TypeLoader<NonTerminalNode, int>(); loader.SearchDirectories = false; loader.LoadMany(t => t.GetCustomAttributes(typeof(SyntaxNodeAttribute), false).Select(attr => (int)((SyntaxNodeAttribute)attr).RuleConstant)); return loader; }
private static TypeLoader <NonTerminalNode, int> LoadImplTypes() { TypeLoader <NonTerminalNode, int> loader = new TypeLoader <NonTerminalNode, int>(); loader.SearchDirectories = false; loader.LoadMany((Type t) => { return(t.GetCustomAttributes(typeof(SyntaxNodeAttribute), false).Select(attr => (int)((SyntaxNodeAttribute)attr).RuleConstant)); }); return(loader); }