@NotNull public TSMetaModelImpl buildModel() { myResult = new TSMetaModelImpl(); myFiles.clear(); StubIndex.getInstance().processElements( DomElementClassIndex.KEY, Items.class.getName(), myProject, ProjectScope.getAllScope(myProject), PsiFile.class, this ); final TSMetaModelImpl result = myResult; myResult = null; return result; }
@Override public void indexStub(@NotNull ElementStub stub, @NotNull IndexSink sink) { final String namespaceKey = stub.getNamespaceKey(); if (StringUtil.isNotEmpty(namespaceKey)) { sink.occurrence(DomNamespaceKeyIndex.KEY, namespaceKey); } final String elementClass = stub.getElementClass(); if (elementClass != null) { sink.occurrence(DomElementClassIndex.KEY, elementClass); } }
@Override public void indexStub(@NotNull ElementStub stub, @NotNull IndexSink sink) { final String namespaceKey = stub.getNamespaceKey(); if(StringUtil.isNotEmpty(namespaceKey)) { sink.occurrence(DomNamespaceKeyIndex.KEY, namespaceKey); } final String elementClass = stub.getElementClass(); if(elementClass != null) { sink.occurrence(DomElementClassIndex.KEY, elementClass); } }