History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: BOO-439
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Doug H
Reporter: Ayende Rahien
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Boo

Ast attributes are not applied to index properties

Created: 14/Aug/05 05:00 PM   Updated: 24/Aug/05 11:26 PM
Component/s: Compiler
Affects Version/s: None
Fix Version/s: 0.6

Time Tracking:
Not Specified


 Description  « Hide
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



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Doug H - 14/Aug/05 05:48 PM
line 757 in boo.g add this: AddAttributes(p.Attributes);

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


Rodrigo B. de Oliveira - 14/Aug/05 06:59 PM
Thanks Doug!