Examples of ErlangFileStub


Examples of org.intellij.erlang.stubs.ErlangFileStub

  public StubBuilder getBuilder() {
    return new DefaultStubBuilder() {
      @Override
      protected StubElement createStubForFile(@NotNull PsiFile file) {
        if (file instanceof ErlangFile) {
          return new ErlangFileStub((ErlangFile) file);
        }
        return super.createStubForFile(file);
      }
    };
  }
View Full Code Here

Examples of org.intellij.erlang.stubs.ErlangFileStub

  }

  @NotNull
  @Override
  public ErlangFileStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException {
    return new ErlangFileStub(null, dataStream.readBoolean(), dataStream.readName());
  }
View Full Code Here

Examples of org.intellij.erlang.stubs.ErlangFileStub

  }

  @Nullable
  @Override
  public ErlangModule getModule() {
    ErlangFileStub stub = getStub();
    if (stub != null) {
      return ArrayUtil.getFirstElement(stub.getChildrenByType(ErlangTypes.ERL_MODULE, ErlangModuleStubElementType.ARRAY_FACTORY));
    }

    List<ErlangAttribute> attributes = PsiTreeUtil.getChildrenOfTypeAsList(this, ErlangAttribute.class);
    for (ErlangAttribute attribute : attributes) {
      ErlangModule module = attribute.getModule();
View Full Code Here

Examples of org.intellij.erlang.stubs.ErlangFileStub

  }

  @Override
  public boolean isExportedAll() {
    //TODO do we use stubs?
    ErlangFileStub stub = getStub();
    if (stub != null) {
      return stub.isExportAll();
    }
    return myExportAll.getValue();
  }
View Full Code Here

Examples of org.intellij.erlang.stubs.ErlangFileStub

  @NotNull
  @Override
  public Map<String, ErlangCallbackSpec> getCallbackMap() {
    //TODO do we use stubs?
    ErlangFileStub stub = getStub();
    if (stub != null) {
      Map<String, ErlangCallbackSpec> callbacksMap = new LinkedHashMap<String, ErlangCallbackSpec>();
      for (StubElement child : stub.getChildrenStubs()) {
        if (child instanceof ErlangCallbackSpecStub) {
          String name = ((ErlangCallbackSpecStub) child).getName();
          int arity = ((ErlangCallbackSpecStub) child).getArity();
          callbacksMap.put(name + "/" + arity, ((ErlangCallbackSpecStub) child).getPsi());
        }
View Full Code Here

Examples of org.intellij.erlang.stubs.ErlangFileStub

  public List<ErlangTypeDefinition> getTypes() {
    return myTypeValue.getValue();
  }

  private List<ErlangTypeDefinition> calcTypes() {
    ErlangFileStub stub = getStub();
    if (stub != null) {
      return getChildrenByType(stub, ErlangTypes.ERL_TYPE_DEFINITION, ErlangTypeDefinitionElementType.ARRAY_FACTORY);
    }

    final List<ErlangTypeDefinition> result = new ArrayList<ErlangTypeDefinition>();
View Full Code Here

Examples of org.intellij.erlang.stubs.ErlangFileStub

  public List<ErlangMacrosDefinition> getMacroses() {
    return myMacrosValue.getValue();
  }

  private List<ErlangMacrosDefinition> calcMacroses() {
    ErlangFileStub stub = getStub();
    if (stub != null) {
      return getChildrenByType(stub, ErlangTypes.ERL_MACROS_DEFINITION, ErlangMacrosDefinitionElementType.ARRAY_FACTORY);
    }

    final List<ErlangMacrosDefinition> result = new ArrayList<ErlangMacrosDefinition>();
View Full Code Here

Examples of org.intellij.erlang.stubs.ErlangFileStub

  public ErlangMacrosDefinition getMacros(@NotNull String name) {
    return myMacrosesMap.getValue().get(name);
  }

  private List<ErlangRecordDefinition> calcRecords() {
    ErlangFileStub stub = getStub();
    if (stub != null) {
      return getChildrenByType(stub, ErlangTypes.ERL_RECORD_DEFINITION, ErlangRecordDefinitionElementType.ARRAY_FACTORY);
    }

    final List<ErlangRecordDefinition> result = new ArrayList<ErlangRecordDefinition>();
View Full Code Here

Examples of org.intellij.erlang.stubs.ErlangFileStub

  public List<ErlangIncludeLib> getIncludeLibs() {
    return myIncludeLibValue.getValue();
  }

  private List<ErlangInclude> calcIncludes() {
    ErlangFileStub stub = getStub();
    if (stub != null) {
      return getChildrenByType(stub, ErlangTypes.ERL_INCLUDE, ErlangIncludeElementType.ARRAY_FACTORY);
    }

    final List<ErlangInclude> result = new ArrayList<ErlangInclude>();
View Full Code Here

Examples of org.intellij.erlang.stubs.ErlangFileStub

    });
    return result;
  }

  private List<ErlangIncludeLib> calcIncludeLibs() {
    ErlangFileStub stub = getStub();
    if (stub != null) {
      return getChildrenByType(stub, ErlangTypes.ERL_INCLUDE_LIB, ErlangIncludeLibElementType.ARRAY_FACTORY);
    }

    final List<ErlangIncludeLib> result = new ArrayList<ErlangIncludeLib>();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.