From 2858552ba299fdc2d376336be62246962c99fe9d Mon Sep 17 00:00:00 2001 From: "Pavel V. Talanov" Date: Tue, 13 May 2014 20:51:52 +0400 Subject: [PATCH] Add isValid() to PsiJetImportDirectiveStub --- .../org/jetbrains/jet/lang/psi/JetImportDirective.java | 2 +- .../jet/lang/psi/stubs/PsiJetImportDirectiveStub.java | 1 + .../stubs/elements/JetImportDirectiveElementType.java | 7 +++++-- .../psi/stubs/impl/PsiJetImportDirectiveStubImpl.java | 10 +++++++++- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetImportDirective.java b/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetImportDirective.java index 3644b8e4ecc..64e20eb6f81 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetImportDirective.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetImportDirective.java @@ -120,7 +120,7 @@ public class JetImportDirective extends JetElementImplStub private final boolean isAllUnder; @Nullable private final StringRef aliasName; + private final boolean isValid; public PsiJetImportDirectiveStubImpl( StubElement parent, boolean isAbsoluteInRootPackage, boolean isAllUnder, - @Nullable StringRef aliasName + @Nullable StringRef aliasName, + boolean isValid ) { super(parent, JetStubElementTypes.IMPORT_DIRECTIVE); this.isAbsoluteInRootPackage = isAbsoluteInRootPackage; this.isAllUnder = isAllUnder; this.aliasName = aliasName; + this.isValid = isValid; } @Override @@ -57,4 +60,9 @@ public class PsiJetImportDirectiveStubImpl extends StubBase public String getAliasName() { return StringRef.toString(aliasName); } + + @Override + public boolean isValid() { + return isValid; + } }