unit_add_comment.xsl
Weaving Rule that adds a comment to a unit (source code file)
- srcML element:
src:unit - advice type:
add - codeModifier type:
comment
Examples in AspectX Sample Library
- CleanupComments
- CleanupComments
CVS Id:
Author:
ibirrer
Copyright:
2004, P&P Software GmbH
Match Templates Summary
src:unit[ax:advice[@type='add' and position() = 1]/ax:codeModifier[@type='comment']] (mode: weaving) - source
Adds the the comment before the declaration
Match Templates Detail
src:unit[ax:advice[@type='add' and position() = 1]/ax:codeModifier[@type='comment']] (mode: weaving) - source
Adds the the comment before the declaration