Git Product home page Git Product logo

Comments (9)

jrfaller avatar jrfaller commented on August 19, 2024

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.

irajdeep avatar irajdeep commented on August 19, 2024

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.

jrfaller avatar jrfaller commented on August 19, 2024

Good question ;)

Types come from srcML implementation, so maybe you'll find it in their code/doc.

from gumtree.

irajdeep avatar irajdeep commented on August 19, 2024

Thanks :)

from gumtree.

irajdeep avatar irajdeep commented on August 19, 2024

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.

irajdeep avatar irajdeep commented on August 19, 2024

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.

jrfaller avatar jrfaller commented on August 19, 2024

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.

irajdeep avatar irajdeep commented on August 19, 2024

Sure , I will try to do it soon :)

from gumtree.

Symbolk avatar Symbolk commented on August 19, 2024

@irajdeep Hi there, I am struggling on this too, for java files. Maybe you can give me a hand?

from gumtree.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.