File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ object Angular2SourceUtil {
5858 template.withGreenStubOrAst(
5959 { stub ->
6060 for (el in stub.childrenStubs) {
61- if (el.stubType == = Angular2HtmlStubElementTypes .NG_CONTENT_SELECTOR ) {
61+ if (el.elementType == = Angular2HtmlStubElementTypes .NG_CONTENT_SELECTOR ) {
6262 result.add((el.psi as Angular2HtmlNgContentSelector ).selector)
6363 }
6464 }
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import com.intellij.psi.impl.FakePsiElement
1111import com.intellij.psi.stubs.IStubElementType
1212import com.intellij.psi.stubs.PsiFileStubImpl
1313import com.intellij.psi.stubs.StubElement
14+ import com.intellij.psi.tree.IElementType
1415import org.angular2.lang.metadata.stubs.MetadataElementStub
1516
1617abstract class MetadataElement <Stub : MetadataElementStub <* >>(private val myStub : Stub ) : FakePsiElement(), StubBasedPsiElement<Stub> {
@@ -39,10 +40,14 @@ abstract class MetadataElement<Stub : MetadataElementStub<*>>(private val myStub
3940 return TextRange .EMPTY_RANGE
4041 }
4142
42- override fun getElementType (): IStubElementType <* , * > {
43+ override fun getElementType (): IStubElementType <* , * >? {
4344 return myStub.stubType
4445 }
4546
47+ override fun getIElementType (): IElementType ? {
48+ return myStub.elementType
49+ }
50+
4651 override fun getStub (): Stub {
4752 return myStub
4853 }
You can’t perform that action at this time.
0 commit comments