block_end_codeFragment.xsl

Weaving Rule that weaves a code fragment at the end of a block.
  • srcML element: src:block
  • advice type: end
  • codeModifier type: codeFragment

Example

int foo() {
  printf("Hello");
}

Code Modifier

<codeModifier type="codeFragment">
  <text>printf("Hello World")</text>
</codeModifier>

Modified Code

int foo() {
  printf("Hello");
  printf("Hello World");
}

Examples in AspectX Test Suite

CVS Id:
Author:
ibirrer
Copyright:
2004, P&P Software GmbH

Match Templates Summary

Calls named template addAtEndOfBlock provided by XWeaver

Match Templates Detail

Calls named template addAtEndOfBlock provided by XWeaver