lyriccoder

Results 48 comments of lyriccoder

@cyberjj999 Right, you've got the class `MethodDeclaration`. You've got what you need. I think you need to get the name of the method. This class has lots of fields. You...

Each node has attribute `children` (it's a list). An element of that list is a list or Node. In general you can traverse smth like this: ``` tree = javalang.parse.parse(open('file.java').read())...

I believe such the syntax is not supported by this version of the framework. So, if you want, you can implement it.

@cyberjj999 I've answered in your previous question. Hope, it's what you need. There also CDT framework (it's written on Java, Eclipse's framework). IT can do much more that the current...

`all I need is to know the start and end line number of a method.` It is possible to traverse over all children and check the maximum code_line: ``` def...

This framework does not provide opportunity to generate code from AST. A comment is a kind of AST node, it can be also a statement/expression, etc. I see that you...

you need to find such the name in `AnonymizeUtil` class. This framework doesn't support parameter extraction for Member reference. `a = new String()` `a` will have no type here, you...

Actually, you cannot know the source class name. Because you can only iterate to the end of the tree: class->method->member ref. Here, when you have reached `member ref ` leaf,...

Could you please provide the example of Java class? Seems you have a syntax error in your Java class

@yegor256 comment pls