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 1
1
/*
2
- * Copyright 2013-2015 Sergey Ignatov, Alexander Zolotov, Florin Patan
2
+ * Copyright 2013-2016 Sergey Ignatov, Alexander Zolotov, Florin Patan
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
24
24
public class GoRecursiveVisitor extends GoVisitor {
25
25
@ Override
26
26
public void visitCompositeElement (@ NotNull GoCompositeElement o ) {
27
+ super .visitCompositeElement (o );
27
28
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 ();
32
31
}
33
32
}
34
33
35
34
@ Override
36
35
public void visitFile (@ NotNull PsiFile file ) {
36
+ super .visitFile (file );
37
37
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 ();
42
40
}
43
41
}
44
42
}
You can’t perform that action at this time.
0 commit comments