boo-lang / boo

The Boo Programming Language.
BSD 3-Clause "New" or "Revised" License
874 stars 148 forks source link

Macro attributes are not recorded in GetCustomAttributes metadata #89

Closed masonwheeler closed 6 years ago

masonwheeler commented 10 years ago
       asm = Assembly.GetAssembly(self.GetType())
       methods = asm.GetTypes().SelectMany({t as Type | t.GetMethods()})
       applied = methods.Where({m as MethodInfo | m.GetCustomAttributes(MyMacroAttribute, false).Any()}).ToArray()

Expected: The applied array should contain the method with the macro applied to it. Observed: The applied array is empty.