Package de.halirutan.mathematica.parsing.psi.impl.assignment

Examples of de.halirutan.mathematica.parsing.psi.impl.assignment.UpSetDefinitionSymbolVisitor


    cacheAssignedSymbols(visitor.getUnboundSymbols());
  }

  private void cacheFromUpSetAssignment(final PsiElement upSet) {
    final PsiElement lhs = upSet.getFirstChild();
    UpSetDefinitionSymbolVisitor visitor = new UpSetDefinitionSymbolVisitor();
    lhs.accept(visitor);
    cacheAssignedSymbols(visitor.getUnboundSymbols());
  }
View Full Code Here


    @Override
    public void visitUpSet(final UpSet upSet) {
      final PsiElement lhs = upSet.getFirstChild();
      if (lhs != null) {
        UpSetDefinitionSymbolVisitor visitor = new UpSetDefinitionSymbolVisitor();
        lhs.accept(visitor);
        final java.util.Set<Symbol> unboundSymbols = visitor.getUnboundSymbols();
        for (Symbol symbol : unboundSymbols) {
          addAssignment(symbol, lhs, UP_SET_ASSIGNMENT);
        }
      }
    }
View Full Code Here

    @Override
    public void visitUpSetDelayed(final UpSetDelayed upSetDelayed) {
      final PsiElement lhs = upSetDelayed.getFirstChild();
      if (lhs != null) {
        UpSetDefinitionSymbolVisitor visitor = new UpSetDefinitionSymbolVisitor();
        lhs.accept(visitor);
        final java.util.Set<Symbol> unboundSymbols = visitor.getUnboundSymbols();
        for (Symbol symbol : unboundSymbols) {
          addAssignment(symbol, lhs, UP_SET_DELAYED_ASSIGNMENT);
        }
      }
    }
View Full Code Here

          if (arg1 instanceof Symbol) {
            addAssignment((Symbol) arg1, functionCall,
                functionCall.matchesHead("TagSet") ? TAG_SET_ASSIGNMENT : TAG_SET_DELAYED_ASSIGNMENT);
          }
        } else if (functionCall.matchesHead("UpSet|UpSetDelayed")) {
          UpSetDefinitionSymbolVisitor visitor = new UpSetDefinitionSymbolVisitor();
          arg1.accept(visitor);
          for (Symbol symbol : visitor.getUnboundSymbols()) {
            addAssignment(symbol, arg1, functionCall.matchesHead("UpSet") ? UP_SET_ASSIGNMENT : UP_SET_DELAYED_ASSIGNMENT);
          }
        } else if (functionCall.matchesHead("SetAttributes")) {
          if (arg1 instanceof Symbol) {
            addAssignment((Symbol) arg1, functionCall, ATTRIBUTES_ASSIGNMENT);
View Full Code Here

  }


  private boolean visitUpSetDefinition(final PsiElement lhs) {
    if (lhs != null) {
      UpSetDefinitionSymbolVisitor definitionVisitor = new UpSetDefinitionSymbolVisitor();
      lhs.accept(definitionVisitor);
      final java.util.Set<Symbol> definitionSymbols = definitionVisitor.getUnboundSymbols();
      for (Symbol next : definitionSymbols) {
        if (next.getSymbolName().equals(myStartElement.getSymbolName())) {
          myReferringSymbol = next;
          return false;
        }
View Full Code Here

TOP

Related Classes of de.halirutan.mathematica.parsing.psi.impl.assignment.UpSetDefinitionSymbolVisitor

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.