Boo
  1. Boo
  2. BOO-439

Ast attributes are not applied to index properties

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.6
    • Component/s: Compiler
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Ast attributes are not applied for indexed properties, the sample code below should print "Indexed" but doesn't pring anything.
      A workaround is to apply it to the get/set

      class DemoAstAttribute(Boo.Lang.Compiler.AbstractAstAttribute):

      def Apply(node as Node):
      print node

      class DemoClass:
      [DemoAst]
      Indexed(i as int):
      get:
      return null

        Activity

        Hide
        Doug H added a comment -

        line 757 in boo.g add this: AddAttributes(p.Attributes);

        And remove this from line 765: AddAttributes(tm.Attributes);

        Show
        Doug H added a comment - line 757 in boo.g add this: AddAttributes(p.Attributes); And remove this from line 765: AddAttributes(tm.Attributes);
        Hide
        Rodrigo B. de Oliveira added a comment -

        Thanks Doug!

        Show
        Rodrigo B. de Oliveira added a comment - Thanks Doug!

          People

          • Assignee:
            Doug H
            Reporter:
            Ayende Rahien
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: