File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright 2013-2015 Sergey Ignatov, Alexander Zolotov, Florin Patan
2+ * Copyright 2013-2016 Sergey Ignatov, Alexander Zolotov, Florin Patan
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
2424public class GoRecursiveVisitor extends GoVisitor {
2525 @ Override
2626 public void visitCompositeElement (@ NotNull GoCompositeElement o ) {
27+ super .visitCompositeElement (o );
2728 for (PsiElement psiElement : o .getChildren ()) {
28- if (psiElement instanceof GoCompositeElement ) {
29- psiElement .accept (this );
30- ProgressIndicatorProvider .checkCanceled ();
31- }
29+ psiElement .accept (this );
30+ ProgressIndicatorProvider .checkCanceled ();
3231 }
3332 }
3433
3534 @ Override
3635 public void visitFile (@ NotNull PsiFile file ) {
36+ super .visitFile (file );
3737 for (PsiElement psiElement : file .getChildren ()) {
38- if (psiElement instanceof GoCompositeElement ) {
39- psiElement .accept (this );
40- ProgressIndicatorProvider .checkCanceled ();
41- }
38+ psiElement .accept (this );
39+ ProgressIndicatorProvider .checkCanceled ();
4240 }
4341 }
4442}
You can’t perform that action at this time.
0 commit comments