Comments (9)
I guess you'll have to write a custom ActionSerializer to have the information you need. This should be easy, you can look at how the current serializer is done.
from gumtree.
BTW Can you help me locate the class file for C# entity type changes , like for JAVA it's
https://github.com/GumTreeDiff/gumtree/blob/develop/gen.jdt/src/main/java/com/github/gumtreediff/gen/jdt/cd/EntityType.java file
Thanks
from gumtree.
Good question ;)
Types come from srcML implementation, so maybe you'll find it in their code/doc.
from gumtree.
Thanks :)
from gumtree.
The entity types available for C# can be found in srcML
and for Javascript it can be found in the Token.java file in the Mozilla Rhino
from gumtree.
I have a found a untidy hack to get the line line number changes , from the position (offset of changes) given by gumTree. As of now I wrote a python script which takes the offset as an input and outputs the line number. As @jrfaller mentioned a neat way would be to implement a Serializer. I will try to implement it when I get some time :)
from gumtree.
I will mark it as closed for now. If you come up with a neat serializer don't forget to make a PR!
from gumtree.
Sure , I will try to do it soon :)
from gumtree.
@irajdeep Hi there, I am struggling on this too, for java files. Maybe you can give me a hand?
from gumtree.
Related Issues (20)
- Confusion about Move action HOT 1
- Error while running gumtree with textdiff option HOT 16
- 3.0 jdt tree generator does not handle the type arguments of MethodInvocation HOT 4
- No syntax exception raised in some cases for JDT HOT 16
- Order ignored? HOT 3
- Respect .gitignore HOT 9
- `textdiff` has inconsistent range output between formats HOT 3
- Support for renaming files HOT 1
- Docker Image HOT 1
- Reversed left and right in git gd command HOT 1
- Steps to get AST Diff for Python Files HOT 5
- ClassNotFound `org/simmetrics/StringMetrics` HOT 15
- Can't generate a parse tree I get this error HOT 1
- ast diff in with gumtree in the browser for file diff on Github
- generate edit script through command HOT 3
- use gumtree diff two commit edit script HOT 2
- use treesitter parse ast failed HOT 4
- JdtVisitor ignores optionalTagName for javadocs HOT 9
- What is the difference between monaco, classic, monaco-native? HOT 5
- Including PLSQL HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gumtree.