diff options
Diffstat (limited to 'platform/core-api/src/com/intellij/psi/PsiWalkingState.java')
-rw-r--r-- | platform/core-api/src/com/intellij/psi/PsiWalkingState.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/platform/core-api/src/com/intellij/psi/PsiWalkingState.java b/platform/core-api/src/com/intellij/psi/PsiWalkingState.java index b6207e8bf364..6418a0b60804 100644 --- a/platform/core-api/src/com/intellij/psi/PsiWalkingState.java +++ b/platform/core-api/src/com/intellij/psi/PsiWalkingState.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2014 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -52,7 +52,10 @@ public abstract class PsiWalkingState extends WalkingState<PsiElement> { } protected PsiWalkingState(@NotNull PsiElementVisitor delegate) { - super(PsiTreeGuide.instance); + this(delegate, PsiTreeGuide.instance); + } + protected PsiWalkingState(@NotNull PsiElementVisitor delegate, @NotNull TreeGuide<PsiElement> guide) { + super(guide); myVisitor = delegate; } |