forked from umple/umple
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed the injection of multiple methods at once.
The issue was that the StringBuilder token wasn't properly used by Umple's Internal Parser. It had the target methods in separate tokens, which a StringBuilder was intended to fix. Passing the StringBuilder's result into makeCodeInjection() fixed the issue. Fixes umple#680 Signed-off-by: Victoria Lacroix <victoria.a.lacroix@gmail.com>
- Loading branch information
Showing
3 changed files
with
43 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
cruise.umple/test/cruise/umple/compiler/680_injectMultipleMethods.ump
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
class A{ | ||
Integer x; | ||
Integer y; | ||
after setX,setY { | ||
//this code will be injected | ||
} | ||
} | ||
|
||
class B{ | ||
Integer x; | ||
Integer y; | ||
before setX,setY { | ||
//this code will be injected | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters