File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ func (v *JavaVisitor) VisitClassBodyDeclaration(ctx *javaAntlr.ClassBodyDeclarat
7171 for _ , child := range ctx .GetChildren () {
7272 switch node := child .(type ) {
7373 case * javaAntlr.MemberDeclarationContext :
74+ v .currentNode = v .currentClass
7475 v .VisitMemberDeclaration (node )
7576 case * javaAntlr.ModifierContext :
7677 if node .GetText () == STATIC {
@@ -83,7 +84,7 @@ func (v *JavaVisitor) VisitClassBodyDeclaration(ctx *javaAntlr.ClassBodyDeclarat
8384}
8485
8586func (v * JavaVisitor ) VisitMemberDeclaration (ctx * javaAntlr.MemberDeclarationContext ) interface {} {
86- classBlock := v .currentNode .( * ClassBlock )
87+ classBlock := v .currentClass
8788 for _ , child := range ctx .GetChildren () {
8889 switch node := child .(type ) {
8990 case * javaAntlr.FieldDeclarationContext :
You can’t perform that action at this time.
0 commit comments