Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var code = @"class C { }";
- var classDeclaration = code.astTree()
- .compilationUnit()
- .classes().first();
- classDeclaration.replace(classDeclaration.add("M".methodDeclaration()))
- .formatedCode();
Add Comment
Please, Sign In to add comment