-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #154 from nette-intellij/mn-bug-fixes-02
- Loading branch information
Showing
23 changed files
with
359 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/main/java/com/jantvrdik/intellij/latte/indexes/LatteStubBasedPsiElement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.jantvrdik.intellij.latte.indexes; | ||
|
||
import com.intellij.extapi.psi.StubBasedPsiElementBase; | ||
import com.intellij.lang.ASTNode; | ||
import com.intellij.psi.stubs.IStubElementType; | ||
import com.intellij.psi.stubs.StubElement; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class LatteStubBasedPsiElement<T extends StubElement> extends StubBasedPsiElementBase<T> { | ||
public LatteStubBasedPsiElement(@NotNull T stub, @NotNull IStubElementType nodeType) { | ||
super(stub, nodeType); | ||
} | ||
|
||
public LatteStubBasedPsiElement(@NotNull ASTNode node) { | ||
super(node); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return this.getClass().getSimpleName() + "(" + getNode().getElementType().toString() + ")('" + getNode().getText() + "')"; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.