Search in sources :

Example 1 with ModuleStubImpl

use of org.elixir_lang.beam.psi.impl.ModuleStubImpl in project intellij-elixir by KronicDeth.

the class BeamFileImpl method buildModuleStub.

@Nullable
private static ModuleStub buildModuleStub(PsiFileStub<ElixirFile> parentStub, Beam beam) {
    ModuleStub moduleStub = null;
    if (beam != null) {
        Atoms atoms = beam.atoms();
        if (atoms != null) {
            String moduleName = atoms.moduleName();
            if (moduleName != null) {
                String name = defmoduleArgument(moduleName);
                moduleStub = new ModuleStubImpl(parentStub, name);
                buildCallDefinitions(moduleStub, beam, atoms);
            }
        }
    }
    return moduleStub;
}
Also used : ModuleStubImpl(org.elixir_lang.beam.psi.impl.ModuleStubImpl) Atoms(org.elixir_lang.beam.chunk.Atoms) ModuleStub(org.elixir_lang.beam.psi.stubs.ModuleStub) Nullable(org.jetbrains.annotations.Nullable)

Aggregations

Atoms (org.elixir_lang.beam.chunk.Atoms)1 ModuleStubImpl (org.elixir_lang.beam.psi.impl.ModuleStubImpl)1 ModuleStub (org.elixir_lang.beam.psi.stubs.ModuleStub)1 Nullable (org.jetbrains.annotations.Nullable)1