Package org.intellij.erlang.psi

Examples of org.intellij.erlang.psi.ErlangRecursiveVisitor


      @NotNull
      public Map<String, Void> map(final FileContent inputData) {
        final Map<String, Void> result = new THashMap<String, Void>();
        PsiFile file = inputData.getPsiFile();
        if (file instanceof ErlangFile) {
          file.accept(new ErlangRecursiveVisitor() {
            @Override
            public void visitQAtom(@NotNull ErlangQAtom o) {
              if (ErlangPsiImplUtil.standaloneAtom(o)) result.put(o.getText(), null);
            }
          });
View Full Code Here


    String text = editorDocument.getText();

    PsiFile file = console.getFile();
    final Map<String, ErlangQVar> context = file.getOriginalFile().getUserData(ErlangVarProcessor.ERLANG_VARIABLE_CONTEXT);
    if (context != null) { // todo: process only successful statements
      file.accept(new ErlangRecursiveVisitor() {
        @Override
        public void visitQVar(@NotNull ErlangQVar o) {
          String name = o.getName();
          if (!context.containsKey(name)) context.put(name, o);
        }
View Full Code Here

TOP

Related Classes of org.intellij.erlang.psi.ErlangRecursiveVisitor

Copyright © 2018 www.massapicom. 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.